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