#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 15 of file ZDC_G4CalibSD.cxx.
17{
19}
CaloG4::SimulationEnergies * m_simulationEnergies
std::string m_hitCollectionName
G4int m_numberInvalidHits
◆ ~ZDC_G4CalibSD()
| ZDC_G4CalibSD::~ZDC_G4CalibSD |
( |
| ) |
|
|
virtual |
Definition at line 21 of file ZDC_G4CalibSD.cxx.
22{
24 {
25 G4cout <<
"Destructor: Sensitive Detector <" << SensitiveDetectorName <<
"> had " <<
m_numberInvalidHits
26 << " G4Step energy deposits outside the region determined by its Calculator." << G4endl;
27 }
29}
◆ ZDC_G4CalibSD() [2/2]
◆ FRIEND_TEST() [1/3]
| ZDC_G4CalibSD::FRIEND_TEST |
( |
ZDC_G4CalibSDtest | , |
|
|
ProcessHits | ) |
|
private |
◆ FRIEND_TEST() [2/3]
| ZDC_G4CalibSD::FRIEND_TEST |
( |
ZDC_G4CalibSDtest | , |
|
|
SimpleHit | ) |
|
private |
◆ FRIEND_TEST() [3/3]
| ZDC_G4CalibSD::FRIEND_TEST |
( |
ZDC_G4CalibSDtest | , |
|
|
SpecialHit | ) |
|
private |
◆ getHitCollection()
Definition at line 119 of file ZDC_G4CalibSD.cxx.
120{
122 if (!eventInfo) {
123 return nullptr;
124 }
125 auto hitCollections = eventInfo->GetHitCollectionMap();
126 return hitCollections ? hitCollections->Find<ZDC_CalibrationHitContainerBuilder>(
m_hitCollectionName) : nullptr;
127}
static AtlasG4EventUserInfo * GetEventUserInfo()
◆ operator=()
◆ ProcessHits()
| G4bool ZDC_G4CalibSD::ProcessHits |
( |
G4Step * | a_step, |
|
|
G4TouchableHistory * | ) |
|
override |
Definition at line 31 of file ZDC_G4CalibSD.cxx.
32{
33
34
35
36
37 if (a_step->GetTotalEnergyDeposit() == 0.)
38 return false;
39
40
41
42
43
44
45
47
48
50
51
53 id = a_step->GetPreStepPoint()->GetPhysicalVolume()->GetCopyNo();
54
55
57}
std::vector< G4double > m_energies
G4bool SimpleHit(const Identifier &id, const std::vector< double > &energies)
◆ SimpleHit()
Definition at line 60 of file ZDC_G4CalibSD.cxx.
61{
65 return false;
66 }
67 }
68
69
73 AtlasG4EventUserInfo * atlasG4EvtUserInfo = dynamic_cast<AtlasG4EventUserInfo*>(G4RunManager::GetRunManager()->GetCurrentEvent()->GetUserInformation());
74 if (atlasG4EvtUserInfo) {
77 }
78 }
79
80
81
82
83
84
85 if (energies[0] + energies[1] + energies[3] < 0.001 * CLHEP::eV && std::abs(energies[2]) < 0.001 * CLHEP::eV)
86 {
87 return true;
88 }
89
90
91 auto hit = std::make_unique<CaloCalibrationHit>(id,
92 energies[0],
93 energies[1],
94 energies[2],
95 energies[3],
96 particleID,
97 particleUID);
99
100 return true;
101}
HepMC::ConstGenParticlePtr GetCurrentPrimaryGenParticle() const
return a pointer to the HepMC::GenParticle used to create the current G4PrimaryParticle.
ZDC_CalibrationHitContainerBuilder * m_HitColl
ZDC_CalibrationHitContainerBuilder * getHitCollection() const
constexpr int UNDEFINED_ID
◆ SpecialHit()
| G4bool ZDC_G4CalibSD::SpecialHit |
( |
G4Step * | a_step, |
|
|
const std::vector< G4double > & | a_energies ) |
Definition at line 109 of file ZDC_G4CalibSD.cxx.
111{
112
114 id = a_step->GetPreStepPoint()->GetPhysicalVolume()->GetCopyNo();
115
117}
◆ m_doPID
| G4bool ZDC_G4CalibSD::m_doPID |
|
private |
◆ m_energies
| std::vector<G4double> ZDC_G4CalibSD::m_energies |
|
private |
◆ m_HitColl
◆ m_hitCollectionName
| std::string ZDC_G4CalibSD::m_hitCollectionName |
|
private |
◆ 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: