#include <Doxymodules_runAndEvent.h>
Definition at line 113 of file Doxymodules_runAndEvent.h.
◆ RE05MuonSD()
Definition at line 42 of file RE05MuonSD.cc.
45{
47 collectionName.insert(HCname="muonCollection");
49}
RE05MuonHitsCollection * fMuonCollection
G4double fPositionResolution
◆ ~RE05MuonSD()
RE05MuonSD::~RE05MuonSD |
( |
| ) |
|
|
virtual |
◆ Initialize()
Definition at line 58 of file RE05MuonSD.cc.
59{
60 static int HCID = -1;
62 (SensitiveDetectorName,collectionName[0]);
63 if(HCID<0)
64 { HCID = GetCollectionID(0); }
66}
G4THitsCollection< RE05MuonHit > RE05MuonHitsCollection
◆ ProcessHits()
Definition at line 70 of file RE05MuonSD.cc.
71{
72 G4double edep = aStep->GetTotalEnergyDeposit();
73
74 if(edep==0.) return true;
75
78 G4ThreeVector hitpos = aStep->GetPreStepPoint()->GetPosition();
79 for(int i=0;i<nHit;i++)
80 {
81 aHit = (*fMuonCollection)[i];
82 G4ThreeVector pos = aHit->
GetPos();
83 G4double dist2 = sqr(pos.x()-hitpos.x())
84 +sqr(pos.y()-hitpos.y())+sqr(pos.z()-hitpos.z());
87 return true;
88 }
89
92 aHit->
SetPos( aStep->GetPreStepPoint()->GetPosition() );
94
95 return true;
96}
void SetPos(G4ThreeVector xyz)
void AddEdep(G4double de)
void SetEdep(G4double de)
◆ EndOfEvent()
◆ clear()
void RE05MuonSD::clear |
( |
| ) |
|
|
virtual |
◆ DrawAll()
void RE05MuonSD::DrawAll |
( |
| ) |
|
|
virtual |
◆ PrintAll()
void RE05MuonSD::PrintAll |
( |
| ) |
|
|
virtual |
◆ fMuonCollection
◆ fPositionResolution
G4double RE05MuonSD::fPositionResolution |
|
private |
The documentation for this class was generated from the following files: