35 #include "G4HCofThisEvent.hh"
46 fHitsCollection(nullptr), fHCID(-1)
80 if (
edep==0.)
return true;
84 auto columnNo = touchable->GetCopyNumber(3);
86 auto hit = (*fHitsCollection)[hitID];
89 if (hit->GetColumnID()<0) {
90 hit->SetColumnID(columnNo);
92 auto depth = touchable->GetHistory()->GetDepth();
93 auto transform = touchable->GetHistory()->GetTransform(depth-2);
95 hit->SetRot(transform.NetRotation());
96 hit->SetPos(transform.NetTranslation());
G4int GetCollectionID(G4String colName)
const G4VTouchable * GetTouchable() const
G4THitsCollection< B5HadCalorimeterHit > B5HadCalorimeterHitsCollection
G4StepPoint * GetPreStepPoint() const
Definition of the B5HadCalorimeterHit class.
B5HadCalorimeterSD(G4String name)
void AddHitsCollection(G4int HCID, G4VHitsCollection *aHC)
G4String SensitiveDetectorName
B5HadCalorimeterHitsCollection * fHitsCollection
virtual void Initialize(G4HCofThisEvent *HCE)
void insert(G4String str)
constexpr G4int kNofHadRows
constexpr G4int kNofHadColumns
G4double GetTotalEnergyDeposit() const
G4int GetCopyNumber(G4int depth=0) const
virtual G4bool ProcessHits(G4Step *aStep, G4TouchableHistory *ROhist)
virtual ~B5HadCalorimeterSD()
static G4SDManager * GetSDMpointer()
G4CollectionNameVector collectionName
Definition of the B5HadCalorimeterSD class.