60 if (verboseLevel>5) G4cout <<
"Process Hit" << G4endl;
62 G4double edep = aStep->GetTotalEnergyDeposit();
66 if (aStep->GetTrack()->GetDefinition() != G4Geantino::GeantinoDefinition() &&
67 aStep->GetTrack()->GetDefinition() != G4ChargedGeantino::ChargedGeantinoDefinition())
74 const G4TouchableHistory* myTouch =
dynamic_cast<const G4TouchableHistory*
>(aStep->GetPreStepPoint()->GetTouchable());
76 G4cout<<
"HGTDSensorGmxSD::ProcessHits: dynamic cast failed"<<G4endl;
80 for (
int i=0;i<myTouch->GetHistoryDepth();i++){
81 std::string detname = myTouch->GetVolume(i)->GetLogicalVolume()->GetName();
82 int copyno = myTouch->GetVolume(i)->GetCopyNo();
83 G4cout <<
"Volume " << detname <<
" Copy Nr. " << copyno << G4endl;
90 G4ThreeVector startCoord = aStep->GetPreStepPoint()->GetPosition();
91 G4ThreeVector endCoord = aStep->GetPostStepPoint()->GetPosition();
95 const G4AffineTransform transformation = myTouch->GetHistory()->GetTopTransform();
97 G4ThreeVector localPosition1 = transformation.TransformPoint(startCoord);
98 G4ThreeVector localPosition2 = transformation.TransformPoint(endCoord);
100 HepGeom::Point3D<double> lP1,lP2;
115 std::string physVolName = myTouch->GetVolume()->GetName();
122 aStep->GetPreStepPoint()->GetGlobalTime(),
134 const int id = myTouch->GetVolume()->GetCopyNo();
139 aStep->GetPreStepPoint()->GetGlobalTime(),