10#include "G4RunManager.hh"
25 G4cout <<
"Destructor: Sensitive Detector <" << SensitiveDetectorName <<
"> had " <<
m_numberInvalidHits
26 <<
" G4Step energy deposits outside the region determined by its Calculator." << G4endl;
37 if (a_step->GetTotalEnergyDeposit() == 0.)
53 id = a_step->GetPreStepPoint()->GetPhysicalVolume()->GetCopyNo();
74 if (atlasG4EvtUserInfo) {
85 if (energies[0] + energies[1] + energies[3] < 0.001 * CLHEP::eV && std::abs(energies[2]) < 0.001 * CLHEP::eV)
91 auto hit = std::make_unique<CaloCalibrationHit>(
id,
110 const std::vector<G4double> &a_energies)
114 id = a_step->GetPreStepPoint()->GetPhysicalVolume()->GetCopyNo();
125 auto hitCollections = eventInfo->GetHitCollectionMap();
This class is attached to G4Event objects as UserInformation.
HepMC::ConstGenParticlePtr GetCurrentPrimaryGenParticle() const
return a pointer to the HepMC::GenParticle used to create the current G4PrimaryParticle.
static AtlasG4EventUserInfo * GetEventUserInfo()
This class implements the calculations requires to categorize the energies deposited during the simul...
CaloG4::SimulationEnergies * m_simulationEnergies
std::vector< G4double > m_energies
std::string m_hitCollectionName
G4bool SimpleHit(const Identifier &id, const std::vector< double > &energies)
G4int m_numberInvalidHits
ZDC_CalibrationHitContainerBuilder * m_HitColl
G4bool SpecialHit(G4Step *a_step, const std::vector< G4double > &a_energies)
ZDC_G4CalibSD(const G4String &a_name, const G4String &hitCollectionName, bool doPID=false)
ZDC_CalibrationHitContainerBuilder * getHitCollection() const
G4bool ProcessHits(G4Step *a_step, G4TouchableHistory *) override
constexpr int UNDEFINED_ID