#include <Doxymodules_eventgenerator.h>
◆ ExN04MuonSD()
ExN04MuonSD::ExN04MuonSD |
( |
G4String |
name | ) |
|
Definition at line 41 of file ExN04MuonSD.cc.
44{
46 collectionName.insert(HCname="muonCollection");
47}
G4double fPositionResolution
ExN04MuonHitsCollection * fMuonCollection
◆ ~ExN04MuonSD()
ExN04MuonSD::~ExN04MuonSD |
( |
| ) |
|
◆ Initialize()
Definition at line 53 of file ExN04MuonSD.cc.
54{
55 static int HCID = -1;
57 (SensitiveDetectorName,collectionName[0]);
58 if(HCID<0)
59 { HCID = GetCollectionID(0); }
61}
G4THitsCollection< ExN04MuonHit > ExN04MuonHitsCollection
◆ ProcessHits()
Definition at line 64 of file ExN04MuonSD.cc.
65{
66 G4double edep = aStep->GetTotalEnergyDeposit();
67
68 if(edep==0.) return true;
69
72 G4ThreeVector hitpos = aStep->GetPreStepPoint()->GetPosition();
73 for(int i=0;i<nHit;i++) {
74 aHit = (*fMuonCollection)[i];
75 G4ThreeVector pos = aHit->
GetPos();
76 G4double dist2 = sqr(pos.x()-hitpos.x())
77 +sqr(pos.y()-hitpos.y())+sqr(pos.z()-hitpos.z());
80 return true;
81 }
82
85 aHit->
SetPos( aStep->GetPreStepPoint()->GetPosition() );
87
88 return true;
89}
void SetPos(G4ThreeVector xyz)
void AddEdep(G4double de)
void SetEdep(G4double de)
◆ EndOfEvent()
◆ clear()
void ExN04MuonSD::clear |
( |
| ) |
|
|
virtual |
◆ DrawAll()
void ExN04MuonSD::DrawAll |
( |
| ) |
|
|
virtual |
◆ PrintAll()
void ExN04MuonSD::PrintAll |
( |
| ) |
|
|
virtual |
◆ fMuonCollection
◆ fPositionResolution
G4double ExN04MuonSD::fPositionResolution |
|
private |
The documentation for this class was generated from the following files: