#include <G4IT.hh>
Inheritance diagram for G4IT:
Public Member Functions | |
G4IT () | |
G4IT (G4Track *) | |
virtual | ~G4IT () |
void * | operator new (size_t) |
void | operator delete (void *aIT) |
virtual void | Print () const |
virtual const G4String & | GetName () const =0 |
virtual G4bool | diff (const G4IT &right) const =0 |
virtual G4bool | equal (const G4IT &right) const =0 |
G4bool | operator< (const G4IT &right) const |
G4bool | operator== (const G4IT &right) const |
G4bool | operator!= (const G4IT &right) const |
void | SetTrack (G4Track *) |
G4Track * | GetTrack () |
const G4Track * | GetTrack () const |
void | RecordCurrentPositionNTime () |
void | SetPrevious (G4IT *) |
void | SetNext (G4IT *) |
G4IT * | GetPrevious () |
G4IT * | GetNext () |
const G4IT * | GetPrevious () const |
const G4IT * | GetNext () const |
void | SetITBox (G4ITBox *) |
const G4ITBox * | GetITBox () const |
void | TakeOutBox () |
void | SetNode (G4KDNode *) |
void | SetParentID (int, int) |
void | GetParentID (int &, int &) |
const G4ThreeVector & | GetPreStepPosition () const |
G4double | GetPreStepLocalTime () const |
G4double | GetPreStepGlobalTime () const |
G4KDNode * | GetNode () const |
G4TrackingInformation * | GetTrackingInfo () |
G4TrackListNode * | GetTrackListNode () |
void | SetTrackListNode (G4TrackListNode *node) |
virtual const G4ITType | GetITType () const =0 |
Protected Member Functions | |
G4IT (const G4IT &) | |
G4IT & | operator= (const G4IT &) |
Protected Attributes | |
G4Track * | fpTrack |
Definition at line 82 of file G4IT.hh.
G4IT::G4IT | ( | ) |
Definition at line 61 of file G4IT.cc.
00061 : G4VUserTrackInformation("G4IT"), 00062 fpTrack (0), 00063 fpPreviousIT(0), fpNextIT(0), 00064 fTrackingInformation() 00065 // fpTrackingInformation(new G4TrackingInformation()) 00066 { 00067 fpITBox=0; 00068 fpKDNode = 0 ; 00069 fpTrackNode = 0; 00070 fParentID_A = 0; 00071 fParentID_B = 0; 00072 }
G4IT::G4IT | ( | G4Track * | ) |
Definition at line 111 of file G4IT.cc.
References fpTrack, and RecordCurrentPositionNTime().
00111 : G4VUserTrackInformation("G4IT"), 00112 fpPreviousIT(0), fpNextIT(0), 00113 fTrackingInformation() 00114 // fpTrackingInformation(new G4TrackingInformation()) 00115 { 00116 fpITBox = 0; 00117 fpTrack = aTrack; 00118 fpKDNode = 0 ; 00119 fpTrackNode = 0; 00120 fParentID_A = 0; 00121 fParentID_B = 0; 00122 RecordCurrentPositionNTime(); 00123 }
G4IT::~G4IT | ( | ) | [virtual] |
Definition at line 139 of file G4IT.cc.
References TakeOutBox().
00140 { 00141 TakeOutBox(); 00142 00143 // if(fpTrackingInformation) 00144 // { 00145 // delete fpTrackingInformation; 00146 // fpTrackingInformation = 0; 00147 // } 00148 00149 // Note : 00150 // G4ITTrackingManager will delete fTrackNode. 00151 // fKDNode will be deleted when the KDTree is rebuilt 00152 }
G4IT::G4IT | ( | const G4IT & | ) | [protected] |
Definition at line 75 of file G4IT.cc.
00075 : G4VUserTrackInformation("G4IT"), 00076 fpTrack (0), 00077 fpPreviousIT(0), fpNextIT(0), 00078 fTrackingInformation() 00079 // fpTrackingInformation(new G4TrackingInformation()) 00080 { 00081 fpITBox=0; 00082 fpKDNode = 0 ; 00083 fpTrackNode = 0; 00084 fParentID_A = 0; 00085 fParentID_B = 0; 00086 }
const G4ITBox * G4IT::GetITBox | ( | ) | const [inline] |
virtual const G4ITType G4IT::GetITType | ( | ) | const [pure virtual] |
Referenced by G4ITModelProcessor::DoCalculateStep(), operator<(), operator==(), and G4AllITManager::Push().
virtual const G4String& G4IT::GetName | ( | ) | const [pure virtual] |
Implemented in G4Molecule.
Referenced by G4TrackList::CheckFlag(), G4DNABrownianTransportation::Diffusion(), G4TrackList::Flag(), G4VITManager::iterator::PrintNext(), and G4TrackList::Unflag().
const G4IT * G4IT::GetNext | ( | ) | const [inline] |
G4IT * G4IT::GetNext | ( | ) | [inline] |
G4KDNode * G4IT::GetNode | ( | ) | const [inline] |
void G4IT::GetParentID | ( | int & | , | |
int & | ||||
) | [inline] |
G4double G4IT::GetPreStepGlobalTime | ( | ) | const [inline] |
Definition at line 229 of file G4IT.hh.
References G4TrackingInformation::GetPreStepGlobalTime().
00230 { 00231 return fTrackingInformation.GetPreStepGlobalTime(); 00232 }
G4double G4IT::GetPreStepLocalTime | ( | ) | const [inline] |
Definition at line 234 of file G4IT.hh.
References G4TrackingInformation::GetPreStepLocalTime().
00235 { 00236 return fTrackingInformation.GetPreStepLocalTime(); 00237 }
const G4ThreeVector & G4IT::GetPreStepPosition | ( | ) | const [inline] |
Definition at line 239 of file G4IT.hh.
References G4TrackingInformation::GetPreStepPosition().
00240 { 00241 return fTrackingInformation.GetPreStepPosition(); 00242 }
const G4IT * G4IT::GetPrevious | ( | ) | const [inline] |
G4IT * G4IT::GetPrevious | ( | ) | [inline] |
const G4Track * G4IT::GetTrack | ( | ) | const [inline] |
G4Track * G4IT::GetTrack | ( | ) | [inline] |
Definition at line 207 of file G4IT.hh.
References fpTrack.
Referenced by G4ITStepProcessor::FindTransportationStep(), and G4VITManager::iterator::PrintNext().
00208 { 00209 return fpTrack; 00210 }
G4TrackingInformation* G4IT::GetTrackingInfo | ( | ) | [inline] |
Definition at line 134 of file G4IT.hh.
Referenced by G4ITStepProcessor::DoDefinePhysicalStepLength(), G4ITStepProcessor::DoStepping(), G4ITStepProcessor::InitDefineStep(), G4ITStepProcessor::SetTrack(), G4ITStepProcessor::SetupMembers(), and G4VITProcess::StartTracking().
G4TrackListNode* G4IT::GetTrackListNode | ( | ) | [inline] |
Definition at line 136 of file G4IT.hh.
Referenced by G4TrackList::Flag(), and G4TrackList::Unflag().
void G4IT::operator delete | ( | void * | aIT | ) | [inline] |
Reimplemented in G4Molecule.
Definition at line 169 of file G4IT.hh.
References aITAllocator.
00170 { aITAllocator.FreeSingle((G4IT *) aIT);}
void * G4IT::operator new | ( | size_t | ) | [inline] |
Reimplemented in G4Molecule.
Definition at line 162 of file G4IT.hh.
References aITAllocator.
00163 { 00164 void *aIT; 00165 aIT = (void *) aITAllocator.MallocSingle(); 00166 return aIT; 00167 }
Definition at line 187 of file G4IT.cc.
References operator==().
00188 { 00189 return !(this->operator==(right)); 00190 }
Definition at line 89 of file G4IT.cc.
References FatalException, fpTrack, and G4Exception().
00090 { 00091 G4ExceptionDescription exceptionDescription; 00092 exceptionDescription << "The assignment operator of G4IT should not be used, this feature is not supported." 00093 << "If really needed, please contact the developers."; 00094 G4Exception("G4IT::operator=(const G4IT& right)","G4IT001",FatalException,exceptionDescription); 00095 00096 if(this == &right) return *this; 00097 00098 fpTrack = 0; 00099 fpITBox = 0; 00100 fpPreviousIT = 0; 00101 fpNextIT = 0; 00102 fpKDNode = 0 ; 00103 fParentID_A = 0; 00104 fParentID_B = 0; 00105 // fpTrackingInformation = 0; 00106 fpTrackNode = 0; 00107 00108 return *this; 00109 }
Definition at line 178 of file G4IT.cc.
References GetITType().
Referenced by operator!=().
00179 { 00180 if(GetITType() == right.GetITType() ) 00181 { 00182 return this->equal(right); 00183 } 00184 return false; 00185 }
virtual void G4IT::Print | ( | ) | const [inline, virtual] |
void G4IT::RecordCurrentPositionNTime | ( | ) |
Definition at line 157 of file G4IT.cc.
References fpTrack, and G4TrackingInformation::RecordCurrentPositionNTime().
Referenced by G4IT().
00158 { 00159 if(fpTrack) 00160 { 00161 fTrackingInformation.RecordCurrentPositionNTime(fpTrack); 00162 } 00163 }
void G4IT::SetITBox | ( | G4ITBox * | ) | [inline] |
void G4IT::SetNext | ( | G4IT * | ) | [inline] |
void G4IT::SetNode | ( | G4KDNode * | ) | [inline] |
void G4IT::SetParentID | ( | int | , | |
int | ||||
) | [inline] |
void G4IT::SetPrevious | ( | G4IT * | ) | [inline] |
void G4IT::SetTrack | ( | G4Track * | ) | [inline] |
void G4IT::SetTrackListNode | ( | G4TrackListNode * | node | ) | [inline] |
Definition at line 137 of file G4IT.hh.
Referenced by G4TrackList::EraseTrackListNode(), and G4TrackList::Flag().
void G4IT::TakeOutBox | ( | ) |
Definition at line 125 of file G4IT.cc.
References G4ITBox::Extract(), and InactiveNode().
Referenced by ~G4IT().
00126 { 00127 if(fpITBox) 00128 { 00129 fpITBox->Extract(this); 00130 } 00131 00132 if(fpKDNode) 00133 { 00134 InactiveNode(fpKDNode); 00135 fpKDNode = 0; 00136 } 00137 }
G4Track* G4IT::fpTrack [protected] |
Definition at line 144 of file G4IT.hh.
Referenced by G4Molecule::BuildTrack(), G4IT(), GetTrack(), operator=(), RecordCurrentPositionNTime(), SetTrack(), and G4Molecule::~G4Molecule().