35 #include "G4HCofThisEvent.hh"
46 fHitsCollection(nullptr), fHCID(-1)
78 if (
edep==0.)
return true;
84 auto hit = (*fHitsCollection)[copyNo];
86 if (!(hit->GetLogV())) {
88 hit->SetLogV(physical->GetLogicalVolume());
G4int GetCollectionID(G4String colName)
const G4VTouchable * GetTouchable() const
virtual ~B5EmCalorimeterSD()
G4StepPoint * GetPreStepPoint() const
void AddHitsCollection(G4int HCID, G4VHitsCollection *aHC)
virtual G4VPhysicalVolume * GetVolume(G4int depth=0) const
G4String SensitiveDetectorName
virtual G4bool ProcessHits(G4Step *aStep, G4TouchableHistory *ROhist)
void insert(G4String str)
G4double GetTotalEnergyDeposit() const
virtual G4int GetCopyNo() const =0
Definition of the B5EmCalorimeterSD class.
B5EmCalorimeterHitsCollection * fHitsCollection
virtual void Initialize(G4HCofThisEvent *HCE)
G4THitsCollection< B5EmCalorimeterHit > B5EmCalorimeterHitsCollection
static G4SDManager * GetSDMpointer()
G4CollectionNameVector collectionName
constexpr G4int kNofEmCells
B5EmCalorimeterSD(G4String name)
Definition of the B5EmCalorimeterHit class.