33 #include "G4HCofThisEvent.hh"
44 fHitsCollection(nullptr), fHCID(-1)
72 if (
charge==0.)
return true;
77 auto motherPhysical = touchable->
GetVolume(1);
78 auto copyNo = motherPhysical->
GetCopyNo();
80 auto worldPos = preStepPoint->GetPosition();
82 = touchable->GetHistory()->GetTopTransform().TransformPoint(worldPos);
85 hit->SetWorldPos(worldPos);
86 hit->SetLocalPos(localPos);
87 hit->SetTime(preStepPoint->GetGlobalTime());