Geant4.10
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions
RE01TrackInformation Class Reference

#include <RE01TrackInformation.hh>

Inheritance diagram for RE01TrackInformation:
G4VUserTrackInformation

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
 
- 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 }
CLHEP::Hep3Vector G4ThreeVector
RE01TrackInformation::RE01TrackInformation ( const G4Track aTrack)

Definition at line 60 of file RE01TrackInformation.cc.

References G4Track::GetDefinition(), G4Track::GetGlobalTime(), G4Track::GetMomentum(), G4Track::GetPosition(), G4Track::GetTotalEnergy(), and G4Track::GetTrackID().

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

Definition at line 80 of file RE01TrackInformation.cc.

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

Definition at line 99 of file RE01TrackInformation.cc.

100 {;}

Member Function Documentation

G4int RE01TrackInformation::GetSourceTrackID ( ) const
inline

Definition at line 62 of file RE01TrackInformation.hh.

Referenced by RE01Trajectory::RE01Trajectory().

62 {return fSourceTrackID;}
G4int RE01TrackInformation::GetTrackingStatus ( ) const
inline
void RE01TrackInformation::operator delete ( void aTrackInfo)
inline

Definition at line 102 of file RE01TrackInformation.hh.

References aTrackInformationAllocator.

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

Definition at line 95 of file RE01TrackInformation.hh.

References aTrackInformationAllocator.

96 {
99  return (void*)aTrackInformationAllocator->MallocSingle();
100 }
G4ThreadLocal G4Allocator< RE01TrackInformation > * aTrackInformationAllocator
RE01TrackInformation & RE01TrackInformation::operator= ( const RE01TrackInformation right)

Definition at line 104 of file RE01TrackInformation.cc.

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

Reimplemented from G4VUserTrackInformation.

Definition at line 135 of file RE01TrackInformation.cc.

References G4cout, G4endl, G4ParticleDefinition::GetParticleName(), and python.hepunit::GeV.

136 {
137  G4cout
138  << "Source track ID " << fSourceTrackID << " ("
139  << fSourceDefinition->GetParticleName() << ","
140  << fSourceEnergy/GeV << "[GeV]) at " << fSourcePosition << G4endl;
141  G4cout
142  << "Original primary track ID " << fOriginalTrackID << " ("
143  << fParticleDefinition->GetParticleName() << ","
144  << fOriginalEnergy/GeV << "[GeV])" << G4endl;
145 }
const G4String & GetParticleName() const
G4GLOB_DLL std::ostream G4cout
#define G4endl
Definition: G4ios.hh:61
void RE01TrackInformation::SetSourceTrackInformation ( const G4Track aTrack)

Definition at line 124 of file RE01TrackInformation.cc.

References G4Track::GetDefinition(), G4Track::GetGlobalTime(), G4Track::GetMomentum(), G4Track::GetPosition(), G4Track::GetTotalEnergy(), and G4Track::GetTrackID().

Referenced by RE01StackingAction::ClassifyNewTrack().

125 {
126  fSourceTrackID = aTrack->GetTrackID();
127  fSourceDefinition = aTrack->GetDefinition();
128  fSourcePosition = aTrack->GetPosition();
129  fSourceMomentum = aTrack->GetMomentum();
130  fSourceEnergy = aTrack->GetTotalEnergy();
131  fSourceTime = aTrack->GetGlobalTime();
132 }
G4ParticleDefinition * GetDefinition() const
const G4ThreeVector & GetPosition() const
G4int GetTrackID() const
G4double GetGlobalTime() const
G4ThreeVector GetMomentum() const
G4double GetTotalEnergy() const
void RE01TrackInformation::SetTrackingStatus ( G4int  i)
inline

Definition at line 61 of file RE01TrackInformation.hh.

Referenced by RE01StackingAction::ClassifyNewTrack().

61 {fTrackingStatus = i;}

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