11 #include "TLorentzVector.h"
12 #include "TParticle.h"
13 #include "TVirtualMC.h"
28 : fPointCollection(new TClonesArray(
"FairRadLenPoint")),
31 fPosIn(TLorentzVector(0,0,0,0)),
32 fPosOut(TLorentzVector(0,0,0,0)),
33 fMomIn(TLorentzVector(0,0,0,0)),
34 fMomOut(TLorentzVector(0,0,0,0)),
74 if ( gMC->IsTrackEntering() ) {
78 fTime = gMC->TrackTime() * 1.0e09;
80 gMC->TrackPosition(
fPosIn);
81 gMC->TrackMomentum(
fMomIn);
88 if ( gMC->IsTrackExiting() ||
90 gMC->IsTrackDisappeared() ) {
92 fTrackID = gMC->GetStack()->GetCurrentTrackNumber();
96 Int_t tsize = clref.GetEntriesFast();