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