72{
73 auto edep = step->GetTotalEnergyDeposit();
74 if (edep==0.) return true;
75
76 auto touchable = step->GetPreStepPoint()->GetTouchable();
77 auto physical = touchable->GetVolume();
78 auto copyNo = physical->GetCopyNo();
79
80 auto hit = (*fHitsCollection)[copyNo];
81
82 if (!(hit->GetLogV())) {
83
84 hit->SetLogV(physical->GetLogicalVolume());
86 transform.Invert();
87 hit->SetRot(transform.NetRotation());
88 hit->SetPos(transform.NetTranslation());
89 }
90
91 hit->AddEdep(edep);
92
93 return true;
94}