34#include "G4HCofThisEvent.hh"
35#include "G4TouchableHistory.hh"
42 collectionName.insert(HCname=
"trackerCollection");
53 (SensitiveDetectorName,collectionName[0]);
55 { HCID = GetCollectionID(0); }
62 G4double edep = aStep->GetTotalEnergyDeposit();
63 if(edep==0.)
return false;
67 newHit->
SetPos( aStep->GetPreStepPoint()->GetPosition() );
Definition of the ExN04TrackerHit class.
G4THitsCollection< ExN04TrackerHit > ExN04TrackerHitsCollection
Definition of the ExN04TrackerSD class.
void SetPos(G4ThreeVector xyz)
void SetEdep(G4double de)
ExN04TrackerSD(G4String name)
ExN04TrackerHitsCollection * fTrackerCollection
virtual G4bool ProcessHits(G4Step *aStep, G4TouchableHistory *ROhist)
virtual void EndOfEvent(G4HCofThisEvent *HCE)
virtual void Initialize(G4HCofThisEvent *HCE)