59 if (verboseLevel>5) G4cout <<
"Process Hit" << G4endl;
61 G4double edep = aStep->GetTotalEnergyDeposit();
64 if(aStep->GetTrack()->GetDefinition() != G4Geantino::GeantinoDefinition() &&
65 aStep->GetTrack()->GetDefinition() != G4ChargedGeantino::ChargedGeantinoDefinition())
73 const G4TouchableHistory *myTouch =
dynamic_cast<const G4TouchableHistory*
>(aStep->GetPreStepPoint()->GetTouchable());
75 G4cout <<
"PixelSensorGmxSD::ProcessHits bad dynamic_cast" << G4endl;
79 for (
int i=0;i<myTouch->GetHistoryDepth();i++){
80 std::string detname=myTouch->GetVolume(i)->GetLogicalVolume()->GetName();
81 int copyno=myTouch->GetVolume(i)->GetCopyNo();
82 G4cout <<
"Volume " <<detname <<
" Copy Nr. " << copyno << G4endl;
88 G4ThreeVector coord1 = aStep->GetPreStepPoint()->GetPosition();
89 G4ThreeVector coord2 = aStep->GetPostStepPoint()->GetPosition();
95 const G4AffineTransform transformation = myTouch->GetHistory()->GetTopTransform();
96 G4ThreeVector localPosition1 = transformation.TransformPoint(coord1);
97 G4ThreeVector localPosition2 = transformation.TransformPoint(coord2);
99 HepGeom::Point3D<double> lP1,lP2;
113 std::string physVolName = myTouch->GetVolume(0)->GetName();
121 aStep->GetPreStepPoint()->GetGlobalTime(),
122 std::move(mcParticleLink),
130 int id = myTouch->GetVolume()->GetCopyNo();
135 aStep->GetPreStepPoint()->GetGlobalTime(),
136 std::move(mcParticleLink),