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();