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