11 #include <TVirtualMC.h>
12 #include <TParticle.h>
33 int copyNo, volumeID = gMC->CurrentVolID(copyNo);
40 Int_t trackID = gMC->GetStack()->GetCurrentTrackNumber();
56 TLorentzVector fPosOut, fMomOut;
57 gMC->TrackPosition(fPosOut);
58 gMC->TrackMomentum(fMomOut);
65 if (particle->GetPdgCode() == 2212) {
81 flgrid->
AddEntry(particle->GetPdgCode(), gMC->Etot() - particle->GetMass(), gMC->Edep(),
84 fPosOut.Vect() - gMC->TrackStep() * fMomOut.Vect().Unit(),
104 particle->IsPrimary(),
105 gMC->IsTrackEntering(), gMC->IsTrackExiting(), gMC->Etot());