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());
G4String SensitiveDetectorName
virtual void Initialize(G4HCofThisEvent *HCE)
G4int GetCollectionID(G4String colName)
virtual G4bool ProcessHits(G4Step *aStep, G4TouchableHistory *ROhist)
Definition of the B5EmCalorimeterSD class.
const G4VTouchable * GetTouchable() const
G4StepPoint * GetPreStepPoint() const
Definition of the B5EmCalorimeterHit class.
void insert(G4String str)
G4double GetTotalEnergyDeposit() const
void AddHitsCollection(G4int HCID, G4VHitsCollection *aHC)
B5EmCalorimeterSD(G4String name)
virtual G4VPhysicalVolume * GetVolume(G4int depth=0) const
static G4SDManager * GetSDMpointer()
virtual G4int GetCopyNo() const =0
virtual ~B5EmCalorimeterSD()
G4CollectionNameVector collectionName
constexpr G4int kNofEmCells
G4THitsCollection< B5EmCalorimeterHit > B5EmCalorimeterHitsCollection