#include <ZDC_G4CalibSD.h>
Definition at line 22 of file ZDC_G4CalibSD.h.
◆ ZDC_G4CalibSD() [1/2]
| ZDC_G4CalibSD::ZDC_G4CalibSD |
( |
const G4String & | a_name, |
|
|
const G4String & | hitCollectionName, |
|
|
bool | doPID = false ) |
Definition at line 14 of file ZDC_G4CalibSD.cxx.
16{
18}
CaloG4::SimulationEnergies * m_simulationEnergies
G4int m_numberInvalidHits
SG::WriteHandle< CaloCalibrationHitContainer > m_HitColl
◆ ~ZDC_G4CalibSD()
| ZDC_G4CalibSD::~ZDC_G4CalibSD |
( |
| ) |
|
|
virtual |
Definition at line 20 of file ZDC_G4CalibSD.cxx.
21{
23 {
24 G4cout <<
"Destructor: Sensitive Detector <" << SensitiveDetectorName <<
"> had " <<
m_numberInvalidHits
25 << " G4Step energy deposits outside the region determined by its Calculator." << G4endl;
26 }
28}
◆ ZDC_G4CalibSD() [2/2]
◆ EndOfAthenaEvent()
| void ZDC_G4CalibSD::EndOfAthenaEvent |
( |
| ) |
|
Definition at line 125 of file ZDC_G4CalibSD.cxx.
126{
127
128
131
132
134 {
136 }
137
138
140}
std::map< uint32_t, CaloCalibrationHit * > m_hitMap
◆ FRIEND_TEST() [1/4]
◆ FRIEND_TEST() [2/4]
| ZDC_G4CalibSD::FRIEND_TEST |
( |
ZDC_G4CalibSDtest | , |
|
|
ProcessHits | ) |
|
private |
◆ FRIEND_TEST() [3/4]
| ZDC_G4CalibSD::FRIEND_TEST |
( |
ZDC_G4CalibSDtest | , |
|
|
SimpleHit | ) |
|
private |
◆ FRIEND_TEST() [4/4]
| ZDC_G4CalibSD::FRIEND_TEST |
( |
ZDC_G4CalibSDtest | , |
|
|
SpecialHit | ) |
|
private |
◆ operator=()
◆ ProcessHits()
| G4bool ZDC_G4CalibSD::ProcessHits |
( |
G4Step * | a_step, |
|
|
G4TouchableHistory * | ) |
|
override |
Definition at line 30 of file ZDC_G4CalibSD.cxx.
31{
32
33
34
35
36 if (a_step->GetTotalEnergyDeposit() == 0.)
37 return false;
38
39
40
41
42
43
44
46
47
49
50
52 id = a_step->GetPreStepPoint()->GetPhysicalVolume()->GetCopyNo();
53
54
56}
std::vector< G4double > m_energies
G4bool SimpleHit(const Identifier &id, const std::vector< double > &energies)
◆ SimpleHit()
| G4bool ZDC_G4CalibSD::SimpleHit |
( |
const Identifier & | id, |
|
|
const std::vector< double > & | energies ) |
|
protected |
Definition at line 59 of file ZDC_G4CalibSD.cxx.
60{
61
62
66 AtlasG4EventUserInfo * atlasG4EvtUserInfo = dynamic_cast<AtlasG4EventUserInfo*>(G4RunManager::GetRunManager()->GetCurrentEvent()->GetUserInformation());
67 if (atlasG4EvtUserInfo) {
70 }
71 }
72
73
74
75
76
77
78 if (energies[0] + energies[1] + energies[3] < 0.001 * CLHEP::eV && std::abs(energies[2]) < 0.001 * CLHEP::eV)
79 {
80 return true;
81 }
82
83
84 CaloCalibrationHit *hit = new CaloCalibrationHit(id,
85 energies[0],
86 energies[1],
87 energies[2],
88 energies[3],
89 particleID,
90 particleUID);
91
92
94
95 std::map<uint32_t,CaloCalibrationHit*>::iterator
it =
m_hitMap.find(hash);
96
98
99 m_hitMap.insert(std::pair<uint32_t,CaloCalibrationHit*>(hash,hit));
100 }else{
101
102 it->second->Add(hit);
103 delete hit;
104 }
105
106 return true;
107}
HepMC::ConstGenParticlePtr GetCurrentPrimaryGenParticle() const
return a pointer to the HepMC::GenParticle used to create the current G4PrimaryParticle.
constexpr int UNDEFINED_ID
◆ SpecialHit()
| G4bool ZDC_G4CalibSD::SpecialHit |
( |
G4Step * | a_step, |
|
|
const std::vector< G4double > & | a_energies ) |
Definition at line 115 of file ZDC_G4CalibSD.cxx.
117{
118
120 id = a_step->GetPreStepPoint()->GetPhysicalVolume()->GetCopyNo();
121
123}
◆ m_doPID
| G4bool ZDC_G4CalibSD::m_doPID |
|
private |
◆ m_energies
| std::vector<G4double> ZDC_G4CalibSD::m_energies |
|
private |
◆ m_HitColl
◆ m_hitMap
◆ m_id
◆ m_numberInvalidHits
| G4int ZDC_G4CalibSD::m_numberInvalidHits |
|
private |
◆ m_simulationEnergies
◆ m_zdc_eep
The documentation for this class was generated from the following files: