|
ATLAS Offline Software
|
Go to the documentation of this file.
10 #include "G4RunManager.hh"
15 : G4VSensitiveDetector(a_name), m_HitColl(hitCollectionName), m_numberInvalidHits(0), m_doPID(doPID)
24 G4cout <<
"Destructor: Sensitive Detector <" << SensitiveDetectorName <<
"> had " <<
m_numberInvalidHits
25 <<
" G4Step energy deposits outside the region determined by its Calculator." << G4endl;
36 if (a_step->GetTotalEnergyDeposit() == 0.)
52 id = a_step->GetPreStepPoint()->GetPhysicalVolume()->GetCopyNo();
67 if (atlasG4EvtUserInfo) {
78 if (energies[0] + energies[1] + energies[3] < 0.001 *
CLHEP::eV && std::abs(energies[2]) < 0.001 *
CLHEP::eV)
99 m_hitMap.insert(std::pair<uint32_t,CaloCalibrationHit*>(
hash,hit));
102 it->second->Add(hit);
116 const std::vector<G4double> &a_energies)
120 id = a_step->GetPreStepPoint()->GetPhysicalVolume()->GetCopyNo();
JetConstituentVector::iterator iterator
void Energies(const G4Step *, std::vector< G4double > &) const
The simple method to call from a calibration calculator: Examine the G4Step and return the energies r...
This class is attached to G4Event objects as UserInformation. It holds a pointer to the HepMC::GenEve...
G4bool SimpleHit(const Identifier &id, const std::vector< double > &energies)
SG::WriteHandle< CaloCalibrationHitContainer > m_HitColl
ZDC_G4CalibSD(const G4String &a_name, const G4String &hitCollectionName, bool doPID=false)
const std::string & name() const
Return the StoreGate ID for the referenced object.
G4int m_numberInvalidHits
std::map< uint32_t, CaloCalibrationHit * > m_hitMap
constexpr int UNDEFINED_ID
CaloG4::SimulationEnergies * m_simulationEnergies
G4bool SpecialHit(G4Step *a_step, const std::vector< G4double > &a_energies)
Class to store calorimeter calibration hit.
virtual bool isValid() override final
Can the handle be successfully dereferenced?
HepMC::ConstGenParticlePtr GetCurrentPrimaryGenParticle() const
return a pointer to the HepMC::GenParticle used to create the current G4PrimaryParticle.
std::vector< G4double > m_energies
G4bool ProcessHits(G4Step *a_step, G4TouchableHistory *) override