13 #include "TGeoManager.h"
15 #include "TVirtualMC.h"
31 , fUserPlacement(kFALSE)
32 , fPsdPoints(new TClonesArray(
"CbmPsdPoint"))
130 LOG(info) <<
"Importing PSD geometry from ROOT file " << fgeoName.Data();
146 LOG(info) << fName <<
": " <<
fPsdPoints->GetEntriesFast()
147 <<
" points registered in this event.";
156 if (TMath::Abs(gMC->TrackCharge()) <= 0)
return kFALSE;
160 if (gMC->IsTrackEntering()) {
161 fTrackID = gMC->GetStack()->GetCurrentTrackNumber();
167 gMC->TrackPosition(
fPos);
168 gMC->TrackMomentum(
fMom);
169 fTime = gMC->TrackTime() * 1.0e09;
178 if (gMC->IsTrackExiting() || gMC->IsTrackStop()
179 || gMC->IsTrackDisappeared()) {
202 TObjArray* daughters = node->GetVolume()->GetNodes();
203 for (Int_t iDaughter = 0; iDaughter < daughters->GetEntriesFast();
205 TGeoNode* daughter =
dynamic_cast<TGeoNode*
>(daughters->At(iDaughter));
208 TGeoVolume* daughterVolume = daughter->GetVolume();
210 AddSensitiveVolume(daughterVolume);