8 #include <TVirtualMC.h>
22 int lowestBlackVolumeTrackID = -1;
25 int trackID = gMC->GetStack()->GetCurrentTrackNumber();
39 if (particle->IsPrimary()) {
42 return std::pair<int,int>(trackID, lowestBlackVolumeTrackID == -1 ?
43 trackID : lowestBlackVolumeTrackID);
46 trackID = particle->GetFirstMother();
47 particle = ((
PndStack*)gMC->GetStack())->GetParticle(trackID);