31 #include "G4HCofThisEvent.hh"
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);
106 G4cout <<
"------------------------------------------" <<
G4endl
107 <<
"*** Muon System Hit (#hits=" << nHit <<
")" <<
G4endl;
virtual G4int GetCollectionID(G4int i)
Definition of the H02MuonSD class.
virtual void Initialize(G4HCofThisEvent *HCE)
G4String SensitiveDetectorName
void insert(G4String str)
virtual G4bool ProcessHits(G4Step *astep, G4TouchableHistory *ROhist)
H02MuonHitsCollection * hitCollection
Definition of the H02MuonHit class.
virtual void EndOfEvent(G4HCofThisEvent *HCE)
G4THitsCollection< H02MuonHit > H02MuonHitsCollection
G4CollectionNameVector collectionName
G4GLOB_DLL std::ostream G4cout