34 #include "G4HCofThisEvent.hh"
45 fHitsCollection(nullptr), fHCID(-1)
72 if (
edep==0.)
return true;
77 auto hitTime = preStepPoint->GetGlobalTime();
91 (*fHitsCollection)[ix]->SetTime(hitTime);
97 auto physical = touchable->GetVolume();
98 hit->SetLogV(physical->GetLogicalVolume());
99 auto transform = touchable->GetHistory()->GetTopTransform();
101 hit->SetRot(transform.NetRotation());
102 hit->SetPos(transform.NetTranslation());
G4int GetCollectionID(G4String colName)
B5HodoscopeSD(G4String name)
const G4VTouchable * GetTouchable() const
G4StepPoint * GetPreStepPoint() const
virtual G4bool ProcessHits(G4Step *aStep, G4TouchableHistory *ROhist)
void AddHitsCollection(G4int HCID, G4VHitsCollection *aHC)
virtual G4VPhysicalVolume * GetVolume(G4int depth=0) const
Definition of the B5HodoscopeSD class.
G4String SensitiveDetectorName
G4THitsCollection< B5HodoscopeHit > B5HodoscopeHitsCollection
void insert(G4String str)
virtual void Initialize(G4HCofThisEvent *HCE)
G4double GetTotalEnergyDeposit() const
virtual G4int GetCopyNo() const =0
static G4SDManager * GetSDMpointer()
G4CollectionNameVector collectionName
B5HodoscopeHitsCollection * fHitsCollection
Definition of the B5HodoscopeHit class.