#include <Doxymodules_field.h>
Definition at line 56 of file Doxymodules_field.h.
◆ F02CalorimeterSD()
Definition at line 48 of file F02CalorimeterSD.cc.
53{
54 collectionName.insert("CalCollection");
55}
F02DetectorConstruction * fDetector
◆ ~F02CalorimeterSD()
F02CalorimeterSD::~F02CalorimeterSD |
( |
| ) |
|
|
override |
◆ Initialize()
Definition at line 66 of file F02CalorimeterSD.cc.
67{
69 (SensitiveDetectorName,collectionName[0]);
70 for (G4int j=0;j<1; j++) {
fHitID[j] = -1;};
71}
G4THitsCollection< F02CalorHit > F02CalorHitsCollection
F02CalorHitsCollection * fCalCollection
◆ ProcessHits()
Definition at line 75 of file F02CalorimeterSD.cc.
76{
77 G4double edep = step->GetTotalEnergyDeposit();
78 G4double stepl = 0.;
79
80 stepl = step->GetStepLength();
81
82 if ((edep == 0.) && (stepl == 0.) ) return false;
83
84 auto theTouchable
86
88
89 G4int number = 0;
91 {
95 if (verboseLevel>0)
96 G4cout << " New Calorimeter Hit on F02: " << number << G4endl;
97 }
98 else
99 {
101 (*fCalCollection)[
fHitID[number]]->AddAbs(edep,stepl);
102 if (verboseLevel>0)
103 G4cout << " Energy added to F02: " << number << G4endl;
104 }
105
106 return true;
107}
const G4VPhysicalVolume * GetAbsorber()
◆ EndOfEvent()
Definition at line 111 of file F02CalorimeterSD.cc.
112{
113 static G4int hcID = -1;
114 if (hcID<0)
115 { hcID = G4SDManager::GetSDMpointer()->GetCollectionID(collectionName[0]); }
117}
◆ fCalCollection
◆ fDetector
◆ fHitID
G4int* F02CalorimeterSD::fHitID = nullptr |
|
private |
The documentation for this class was generated from the following files: