51 if (verboseLevel>5) G4cout <<
"Process Hit" << G4endl;
53 G4double edep = aStep->GetTotalEnergyDeposit();
57 if (aStep->GetTrack()->GetDefinition() != G4Geantino::GeantinoDefinition() &&
58 aStep->GetTrack()->GetDefinition() != G4ChargedGeantino::ChargedGeantinoDefinition())
65 const G4TouchableHistory* myTouch =
dynamic_cast<const G4TouchableHistory*
>(aStep->GetPreStepPoint()->GetTouchable());
67 G4cout<<
"HGTDSensorGmxSD::ProcessHits: dynamic cast failed"<<G4endl;
71 for (
int i=0;i<myTouch->GetHistoryDepth();i++){
72 std::string detname = myTouch->GetVolume(i)->GetLogicalVolume()->GetName();
73 int copyno = myTouch->GetVolume(i)->GetCopyNo();
74 G4cout <<
"Volume " << detname <<
" Copy Nr. " << copyno << G4endl;
81 G4ThreeVector startCoord = aStep->GetPreStepPoint()->GetPosition();
82 G4ThreeVector endCoord = aStep->GetPostStepPoint()->GetPosition();
86 const G4AffineTransform transformation = myTouch->GetHistory()->GetTopTransform();
88 G4ThreeVector localPosition1 = transformation.TransformPoint(startCoord);
89 G4ThreeVector localPosition2 = transformation.TransformPoint(endCoord);
91 HepGeom::Point3D<double> lP1,lP2;
106 std::string physVolName = myTouch->GetVolume()->GetName();
113 aStep->GetPreStepPoint()->GetGlobalTime(),
125 const int id = myTouch->GetVolume()->GetCopyNo();
130 aStep->GetPreStepPoint()->GetGlobalTime(),