Import Geant4 11.3.0.beta source tree
This commit is contained in:
@@ -32,16 +32,17 @@
|
||||
#ifndef RE01Trajectory_h
|
||||
#define RE01Trajectory_h 1
|
||||
|
||||
#include "G4VTrajectory.hh"
|
||||
#include "G4Allocator.hh"
|
||||
#include <stdlib.h>
|
||||
#include "G4ThreeVector.hh"
|
||||
#include "G4ios.hh"
|
||||
#include "globals.hh"
|
||||
#include "G4ParticleDefinition.hh"
|
||||
#include "G4TrajectoryPoint.hh"
|
||||
#include "G4Track.hh"
|
||||
#include "G4ParticleDefinition.hh"
|
||||
#include "G4Step.hh"
|
||||
#include "G4ThreeVector.hh"
|
||||
#include "G4Track.hh"
|
||||
#include "G4TrajectoryPoint.hh"
|
||||
#include "G4VTrajectory.hh"
|
||||
#include "G4ios.hh"
|
||||
#include "globals.hh"
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <vector>
|
||||
|
||||
class G4Polyline;
|
||||
@@ -52,53 +53,49 @@ typedef std::vector<G4VTrajectoryPoint*> RE01TrajectoryPointContainer;
|
||||
|
||||
class RE01Trajectory : public G4VTrajectory
|
||||
{
|
||||
public:
|
||||
RE01Trajectory(const G4Track* aTrack);
|
||||
virtual ~RE01Trajectory();
|
||||
public:
|
||||
RE01Trajectory(const G4Track* aTrack);
|
||||
virtual ~RE01Trajectory();
|
||||
|
||||
virtual void ShowTrajectory(std::ostream& os=G4cout) const;
|
||||
virtual void DrawTrajectory() const;
|
||||
virtual const std::map<G4String,G4AttDef>* GetAttDefs() const;
|
||||
virtual std::vector<G4AttValue>* CreateAttValues() const;
|
||||
virtual void AppendStep(const G4Step* aStep);
|
||||
virtual void MergeTrajectory(G4VTrajectory* secondTrajectory);
|
||||
virtual void ShowTrajectory(std::ostream& os = G4cout) const;
|
||||
virtual void DrawTrajectory() const;
|
||||
virtual const std::map<G4String, G4AttDef>* GetAttDefs() const;
|
||||
virtual std::vector<G4AttValue>* CreateAttValues() const;
|
||||
virtual void AppendStep(const G4Step* aStep);
|
||||
virtual void MergeTrajectory(G4VTrajectory* secondTrajectory);
|
||||
|
||||
inline void* operator new(size_t);
|
||||
inline void operator delete(void*);
|
||||
inline int operator == (const RE01Trajectory& right) const
|
||||
{return (this==&right);}
|
||||
inline void* operator new(size_t);
|
||||
inline void operator delete(void*);
|
||||
inline int operator==(const RE01Trajectory& right) const { return (this == &right); }
|
||||
|
||||
virtual G4int GetTrackID() const { return fTrackID; }
|
||||
virtual G4int GetParentID() const { return fParentID; }
|
||||
virtual G4String GetParticleName() const { return fParticleName; }
|
||||
virtual G4double GetCharge() const { return fPDGCharge; }
|
||||
virtual G4int GetPDGEncoding() const { return fPDGEncoding; }
|
||||
virtual G4ThreeVector GetInitialMomentum() const { return fMomentum; }
|
||||
virtual int GetPointEntries() const { return fPositionRecord->size(); }
|
||||
virtual G4VTrajectoryPoint* GetPoint(G4int i) const
|
||||
{ return (*fPositionRecord)[i]; }
|
||||
|
||||
private:
|
||||
RE01TrajectoryPointContainer* fPositionRecord;
|
||||
G4int fTrackID;
|
||||
G4int fParentID;
|
||||
G4int fTrackStatus;
|
||||
G4ParticleDefinition* fParticleDefinition;
|
||||
G4String fParticleName;
|
||||
G4double fPDGCharge;
|
||||
G4int fPDGEncoding;
|
||||
G4ThreeVector fMomentum;
|
||||
G4ThreeVector fVertexPosition;
|
||||
G4double fGlobalTime;
|
||||
virtual G4int GetTrackID() const { return fTrackID; }
|
||||
virtual G4int GetParentID() const { return fParentID; }
|
||||
virtual G4String GetParticleName() const { return fParticleName; }
|
||||
virtual G4double GetCharge() const { return fPDGCharge; }
|
||||
virtual G4int GetPDGEncoding() const { return fPDGEncoding; }
|
||||
virtual G4ThreeVector GetInitialMomentum() const { return fMomentum; }
|
||||
virtual int GetPointEntries() const { return fPositionRecord->size(); }
|
||||
virtual G4VTrajectoryPoint* GetPoint(G4int i) const { return (*fPositionRecord)[i]; }
|
||||
|
||||
private:
|
||||
RE01TrajectoryPointContainer* fPositionRecord;
|
||||
G4int fTrackID;
|
||||
G4int fParentID;
|
||||
G4int fTrackStatus;
|
||||
G4ParticleDefinition* fParticleDefinition;
|
||||
G4String fParticleName;
|
||||
G4double fPDGCharge;
|
||||
G4int fPDGEncoding;
|
||||
G4ThreeVector fMomentum;
|
||||
G4ThreeVector fVertexPosition;
|
||||
G4double fGlobalTime;
|
||||
};
|
||||
|
||||
extern G4ThreadLocal G4Allocator<RE01Trajectory> * myTrajectoryAllocator;
|
||||
extern G4ThreadLocal G4Allocator<RE01Trajectory>* myTrajectoryAllocator;
|
||||
|
||||
inline void* RE01Trajectory::operator new(size_t)
|
||||
{
|
||||
if(!myTrajectoryAllocator)
|
||||
myTrajectoryAllocator = new G4Allocator<RE01Trajectory>;
|
||||
if (!myTrajectoryAllocator) myTrajectoryAllocator = new G4Allocator<RE01Trajectory>;
|
||||
return (void*)myTrajectoryAllocator->MallocSingle();
|
||||
}
|
||||
|
||||
@@ -108,4 +105,3 @@ inline void RE01Trajectory::operator delete(void* aTrajectory)
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user