41 double edep = aStep->GetTotalEnergyDeposit();
43 if (aStep->GetTrack()->GetDefinition() != G4Geantino::GeantinoDefinition() &&
44 aStep->GetTrack()->GetDefinition() != G4ChargedGeantino::ChargedGeantinoDefinition())
49 const G4TouchableHistory *myTouch =
dynamic_cast<const G4TouchableHistory*
>(aStep->GetPreStepPoint()->GetTouchable());
51 G4cout <<
"SctSensorGmxSD::ProcessHits bad dynamic_cast" << G4endl;
57 G4ThreeVector coord1 = aStep->GetPreStepPoint()->GetPosition();
58 G4ThreeVector coord2 = aStep->GetPostStepPoint()->GetPosition();
59 const G4AffineTransform transformation = myTouch->GetHistory()->GetTopTransform();
60 G4ThreeVector localPosition1 = transformation.TransformPoint(coord1);
61 G4ThreeVector localPosition2 = transformation.TransformPoint(coord2);
62 HepGeom::Point3D<double> lP1, lP2;
80 std::string physVolName = myTouch->GetVolume(0)->GetName();
87 aStep->GetPreStepPoint()->GetGlobalTime(),
88 std::move(particleLink),
98 const int id = myTouch->GetVolume(0)->GetCopyNo();
100 m_HitColl->Emplace(lP1, lP2, edep, aStep->GetPreStepPoint()->GetGlobalTime(), std::move(particleLink),
id);