Geant4  10.03.p03
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
RE01TrackInformation Class Reference

#include <RE01TrackInformation.hh>

Inheritance diagram for RE01TrackInformation:
Collaboration diagram for RE01TrackInformation:

Public Member Functions

 RE01TrackInformation ()
 
 RE01TrackInformation (const G4Track *aTrack)
 
 RE01TrackInformation (const RE01TrackInformation *aTrackInfo)
 
virtual ~RE01TrackInformation ()
 
voidoperator new (size_t)
 
void operator delete (void *aTrackInfo)
 
RE01TrackInformationoperator= (const RE01TrackInformation &right)
 
void SetSourceTrackInformation (const G4Track *aTrack)
 
virtual void Print () const
 
G4int GetTrackingStatus () const
 
void SetTrackingStatus (G4int i)
 
G4int GetSourceTrackID () const
 
void SetSuspendedStepID (G4int i)
 
G4int GetSuspendedStepID () const
 
- Public Member Functions inherited from G4VUserTrackInformation
 G4VUserTrackInformation ()
 
 G4VUserTrackInformation (const G4String &infoType)
 
 G4VUserTrackInformation (const G4VUserTrackInformation &)
 
G4VUserTrackInformationoperator= (const G4VUserTrackInformation &)
 
virtual ~G4VUserTrackInformation ()
 
const G4StringGetType () const
 

Additional Inherited Members

- Protected Attributes inherited from G4VUserTrackInformation
G4StringpType
 

Detailed Description

Definition at line 43 of file RE01TrackInformation.hh.

Constructor & Destructor Documentation

RE01TrackInformation::RE01TrackInformation ( )

Definition at line 41 of file RE01TrackInformation.cc.

43 {
44  fOriginalTrackID = 0;
45  fParticleDefinition = 0;
46  fOriginalPosition = G4ThreeVector(0.,0.,0.);
47  fOriginalMomentum = G4ThreeVector(0.,0.,0.);
48  fOriginalEnergy = 0.;
49  fOriginalTime = 0.;
50  fTrackingStatus = 1;
51  fSourceTrackID = -1;
52  fSourceDefinition = 0;
53  fSourcePosition = G4ThreeVector(0.,0.,0.);
54  fSourceMomentum = G4ThreeVector(0.,0.,0.);
55  fSourceEnergy = 0.;
56  fSourceTime = 0.;
57  fSuspendedStepID = -1;
58 }
CLHEP::Hep3Vector G4ThreeVector
RE01TrackInformation::RE01TrackInformation ( const G4Track aTrack)

Definition at line 61 of file RE01TrackInformation.cc.

63 {
64  fOriginalTrackID = aTrack->GetTrackID();
65  fParticleDefinition = aTrack->GetDefinition();
66  fOriginalPosition = aTrack->GetPosition();
67  fOriginalMomentum = aTrack->GetMomentum();
68  fOriginalEnergy = aTrack->GetTotalEnergy();
69  fOriginalTime = aTrack->GetGlobalTime();
70  fTrackingStatus = 1;
71  fSourceTrackID = -1;
72  fSourceDefinition = 0;
73  fSourcePosition = G4ThreeVector(0.,0.,0.);
74  fSourceMomentum = G4ThreeVector(0.,0.,0.);
75  fSourceEnergy = 0.;
76  fSourceTime = 0.;
77  fSuspendedStepID = -1;
78 }
G4ParticleDefinition * GetDefinition() const
CLHEP::Hep3Vector G4ThreeVector
const G4ThreeVector & GetPosition() const
G4int GetTrackID() const
G4double GetGlobalTime() const
G4ThreeVector GetMomentum() const
G4double GetTotalEnergy() const

Here is the call graph for this function:

RE01TrackInformation::RE01TrackInformation ( const RE01TrackInformation aTrackInfo)

Definition at line 82 of file RE01TrackInformation.cc.

84 {
85  fOriginalTrackID = aTrackInfo->fOriginalTrackID;
86  fParticleDefinition = aTrackInfo->fParticleDefinition;
87  fOriginalPosition = aTrackInfo->fOriginalPosition;
88  fOriginalMomentum = aTrackInfo->fOriginalMomentum;
89  fOriginalEnergy = aTrackInfo->fOriginalEnergy;
90  fOriginalTime = aTrackInfo->fOriginalTime;
91  fTrackingStatus = aTrackInfo->fTrackingStatus;
92  fSourceTrackID = aTrackInfo->fSourceTrackID;
93  fSourceDefinition = aTrackInfo->fSourceDefinition;
94  fSourcePosition = aTrackInfo->fSourcePosition;
95  fSourceMomentum = aTrackInfo->fSourceMomentum;
96  fSourceEnergy = aTrackInfo->fSourceEnergy;
97  fSourceTime = aTrackInfo->fSourceTime;
98  fSuspendedStepID = -1;
99 }
RE01TrackInformation::~RE01TrackInformation ( )
virtual

Definition at line 102 of file RE01TrackInformation.cc.

103 {;}

Member Function Documentation

G4int RE01TrackInformation::GetSourceTrackID ( ) const
inline

Definition at line 62 of file RE01TrackInformation.hh.

62 {return fSourceTrackID;}

Here is the caller graph for this function:

G4int RE01TrackInformation::GetSuspendedStepID ( ) const
inline

Definition at line 64 of file RE01TrackInformation.hh.

64 {return fSuspendedStepID;}

Here is the caller graph for this function:

G4int RE01TrackInformation::GetTrackingStatus ( ) const
inline

Definition at line 60 of file RE01TrackInformation.hh.

60 {return fTrackingStatus;}

Here is the caller graph for this function:

void RE01TrackInformation::operator delete ( void aTrackInfo)
inline

Definition at line 104 of file RE01TrackInformation.hh.

105 { aTrackInformationAllocator->FreeSingle((RE01TrackInformation*)aTrackInfo);}
G4ThreadLocal G4Allocator< RE01TrackInformation > * aTrackInformationAllocator
void * RE01TrackInformation::operator new ( size_t  )
inline

Definition at line 97 of file RE01TrackInformation.hh.

98 {
101  return (void*)aTrackInformationAllocator->MallocSingle();
102 }
G4ThreadLocal G4Allocator< RE01TrackInformation > * aTrackInformationAllocator
RE01TrackInformation & RE01TrackInformation::operator= ( const RE01TrackInformation right)

Definition at line 107 of file RE01TrackInformation.cc.

108 {
109  fOriginalTrackID = aTrackInfo.fOriginalTrackID;
110  fParticleDefinition = aTrackInfo.fParticleDefinition;
111  fOriginalPosition = aTrackInfo.fOriginalPosition;
112  fOriginalMomentum = aTrackInfo.fOriginalMomentum;
113  fOriginalEnergy = aTrackInfo.fOriginalEnergy;
114  fOriginalTime = aTrackInfo.fOriginalTime;
115  fTrackingStatus = aTrackInfo.fTrackingStatus;
116  fSourceTrackID = aTrackInfo.fSourceTrackID;
117  fSourceDefinition = aTrackInfo.fSourceDefinition;
118  fSourcePosition = aTrackInfo.fSourcePosition;
119  fSourceMomentum = aTrackInfo.fSourceMomentum;
120  fSourceEnergy = aTrackInfo.fSourceEnergy;
121  fSourceTime = aTrackInfo.fSourceTime;
122  fSuspendedStepID = -1;
123 
124  return *this;
125 }
void RE01TrackInformation::Print ( void  ) const
virtual

Reimplemented from G4VUserTrackInformation.

Definition at line 139 of file RE01TrackInformation.cc.

140 {
141  G4cout
142  << "Source track ID " << fSourceTrackID << " ("
143  << fSourceDefinition->GetParticleName() << ","
144  << fSourceEnergy/GeV << "[GeV]) at " << fSourcePosition << G4endl;
145  G4cout
146  << "Original primary track ID " << fOriginalTrackID << " ("
147  << fParticleDefinition->GetParticleName() << ","
148  << fOriginalEnergy/GeV << "[GeV])" << G4endl;
149 }
const G4String & GetParticleName() const
G4GLOB_DLL std::ostream G4cout
static constexpr double GeV
Definition: G4SIunits.hh:217
#define G4endl
Definition: G4ios.hh:61

Here is the call graph for this function:

void RE01TrackInformation::SetSourceTrackInformation ( const G4Track aTrack)

Definition at line 128 of file RE01TrackInformation.cc.

129 {
130  fSourceTrackID = aTrack->GetTrackID();
131  fSourceDefinition = aTrack->GetDefinition();
132  fSourcePosition = aTrack->GetPosition();
133  fSourceMomentum = aTrack->GetMomentum();
134  fSourceEnergy = aTrack->GetTotalEnergy();
135  fSourceTime = aTrack->GetGlobalTime();
136 }
G4ParticleDefinition * GetDefinition() const
const G4ThreeVector & GetPosition() const
G4int GetTrackID() const
G4double GetGlobalTime() const
G4ThreeVector GetMomentum() const
G4double GetTotalEnergy() const

Here is the call graph for this function:

Here is the caller graph for this function:

void RE01TrackInformation::SetSuspendedStepID ( G4int  i)
inline

Definition at line 63 of file RE01TrackInformation.hh.

63 {fSuspendedStepID = i;}

Here is the caller graph for this function:

void RE01TrackInformation::SetTrackingStatus ( G4int  i)
inline

Definition at line 61 of file RE01TrackInformation.hh.

61 {fTrackingStatus = i;}

Here is the caller graph for this function:


The documentation for this class was generated from the following files: