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