#include <Doxymodules_eventgenerator.h>
◆ H02MuonSD()
Definition at line 39 of file H02MuonSD.cc.
42{
44 collectionName.insert("muonHit");
45}
H02MuonHitsCollection * fHitCollection
◆ ~H02MuonSD()
H02MuonSD::~H02MuonSD |
( |
| ) |
|
◆ Initialize()
Definition at line 53 of file H02MuonSD.cc.
54{
55 static int HCID=-1;
57 collectionName[0]);
58 if(HCID<0) HCID= GetCollectionID(0);
60}
G4THitsCollection< H02MuonHit > H02MuonHitsCollection
◆ ProcessHits()
Definition at line 63 of file H02MuonSD.cc.
64{
66 if(particle-> GetPDGCharge() == 0.) return false;
67
69
70 if(prestep-> GetStepStatus() != fGeomBoundary) return false;
71
72 G4ThreeVector vmom= prestep-> GetMomentum();
73 G4ThreeVector vpos= prestep-> GetPosition();
74 G4double tof= prestep-> GetGlobalTime();
75
77 G4int id= volume-> GetCopyNo();
78 if(volume-> GetName() == "ENDCAP_MUON_PV") id +=10;
79
81 new H02MuonHit(
id, particle-> GetParticleName(), vmom, vpos, tof);
83 return true;
84
85}
◆ EndOfEvent()
◆ clear()
void H02MuonSD::clear |
( |
| ) |
|
|
virtual |
◆ DrawAll()
void H02MuonSD::DrawAll |
( |
| ) |
|
|
virtual |
◆ PrintAll()
void H02MuonSD::PrintAll |
( |
| ) |
|
|
virtual |
Definition at line 103 of file H02MuonSD.cc.
104{
106 G4cout << "------------------------------------------" << G4endl
107 << "*** Muon System Hit (#hits=" << nHit << ")" << G4endl;
109}
◆ fHitCollection
The documentation for this class was generated from the following files: