34 #include "G4HCofThisEvent.hh"
45 fHitsCollection(nullptr), fHCID(-1)
73 if (charge==0.)
return true;
78 auto motherPhysical = touchable->
GetVolume(1);
79 auto copyNo = motherPhysical->
GetCopyNo();
81 auto worldPos = preStepPoint->GetPosition();
83 = touchable->GetHistory()->GetTopTransform().TransformPoint(worldPos);
86 hit->SetWorldPos(worldPos);
87 hit->SetLocalPos(localPos);
88 hit->SetTime(preStepPoint->GetGlobalTime());
90 fHitsCollection->
insert(hit);
virtual G4bool ProcessHits(G4Step *aStep, G4TouchableHistory *ROhist)
G4String SensitiveDetectorName
G4ParticleDefinition * GetDefinition() const
G4int GetCollectionID(G4String colName)
Definition of the B5DriftChamberSD class.
virtual ~B5DriftChamberSD()
const G4VTouchable * GetTouchable() const
virtual void Initialize(G4HCofThisEvent *HCE)
B5DriftChamberSD(G4String name)
G4StepPoint * GetPreStepPoint() const
void insert(G4String str)
G4THitsCollection< B5DriftChamberHit > B5DriftChamberHitsCollection
void AddHitsCollection(G4int HCID, G4VHitsCollection *aHC)
virtual G4VPhysicalVolume * GetVolume(G4int depth=0) const
static G4SDManager * GetSDMpointer()
virtual G4int GetCopyNo() const =0
G4CollectionNameVector collectionName
G4Track * GetTrack() const
G4double GetPDGCharge() const
Definition of the B5DriftChamberHit class.