68 auto charge = step->GetTrack()->GetDefinition()->GetPDGCharge();
69 if (charge==0.)
return true;
71 auto preStepPoint = step->GetPreStepPoint();
73 auto touchable = step->GetPreStepPoint()->GetTouchable();
74 auto motherPhysical = touchable->GetVolume(1);
75 auto copyNo = motherPhysical->GetCopyNo();
77 auto worldPos = preStepPoint->GetPosition();
79 = touchable->GetHistory()->GetTopTransform().TransformPoint(worldPos);
82 hit->SetWorldPos(worldPos);
83 hit->SetLocalPos(localPos);
84 hit->SetTime(preStepPoint->GetGlobalTime());