31 #include "G4HCofThisEvent.hh"
59 HCE-> AddHitsCollection(HCID, hitCollection);
66 if(particle-> GetPDGCharge() == 0.)
return false;
74 G4double tof= prestep-> GetGlobalTime();
77 G4int id= volume-> GetCopyNo();
78 if(volume->
GetName() ==
"ENDCAP_MUON_PV")
id +=10;
81 new H02MuonHit(
id, particle-> GetParticleName(), vmom, vpos, tof);
82 hitCollection-> insert(aHit);
105 G4int nHit= hitCollection-> entries();
106 G4cout <<
"------------------------------------------" <<
G4endl
107 <<
"*** Muon System Hit (#hits=" << nHit <<
")" <<
G4endl;
108 hitCollection-> PrintAllHits();
G4String SensitiveDetectorName
virtual G4bool ProcessHits(G4Step *astep, G4TouchableHistory *ROhist)
G4THitsCollection< H02MuonHit > H02MuonHitsCollection
virtual G4int GetCollectionID(G4int i)
G4GLOB_DLL std::ostream G4cout
void insert(G4String str)
virtual void EndOfEvent(G4HCofThisEvent *HCE)
G4CollectionNameVector collectionName
virtual void Initialize(G4HCofThisEvent *HCE)
Definition of the H02MuonHit class.
Definition of the H02MuonSD class.