36#include "G4HCofThisEvent.hh"
37#include "G4TouchableHistory.hh"
45 collectionName.insert(HCname=
"trackerCollection");
56 (SensitiveDetectorName,collectionName[0]);
58 { HCID = GetCollectionID(0); }
65 G4double edep = aStep->GetTotalEnergyDeposit();
66 if(edep==0.)
return false;
70 newHit->
SetPos( aStep->GetPreStepPoint()->GetPosition() );
74 { newHit->
SetTrackID( aStep->GetTrack()->GetTrackID() ); }
Definition of the RE01TrackerHit class.
G4THitsCollection< RE01TrackerHit > RE01TrackerHitsCollection
Definition of the RE01TrackerSD class.
void SetEdep(G4double de)
void SetPos(G4ThreeVector xyz)
RE01TrackerHitsCollection * fTrackerCollection
virtual void Initialize(G4HCofThisEvent *HCE)
virtual G4bool ProcessHits(G4Step *aStep, G4TouchableHistory *ROhist)
virtual void EndOfEvent(G4HCofThisEvent *HCE)
RE01TrackerSD(G4String name)