34 #include "G4HCofThisEvent.hh"
45 fMuonCollection(0), fPositionResolution(0.)
75 if(edep==0.)
return true;
80 for(
int i=0;i<nHit;i++)
82 aHit = (*fMuonCollection)[i];
85 +
sqr(pos.
y()-hitpos.
y())+
sqr(pos.
z()-hitpos.
z());
virtual G4int GetCollectionID(G4int i)
RE05MuonSD(G4String name)
static const G4double pos
G4double fPositionResolution
G4StepPoint * GetPreStepPoint() const
Definition of the RE05MuonHit class.
void AddHitsCollection(G4int HCID, G4VHitsCollection *aHC)
virtual void EndOfEvent(G4HCofThisEvent *HCE)
RE05MuonHitsCollection * fMuonCollection
G4String SensitiveDetectorName
void SetPos(G4ThreeVector xyz)
virtual void Initialize(G4HCofThisEvent *HCE)
G4THitsCollection< RE05MuonHit > RE05MuonHitsCollection
Definition of the RE05MuonSD class.
void insert(G4String str)
const G4ThreeVector & GetPosition() const
G4double GetTotalEnergyDeposit() const
void AddEdep(G4double de)
void SetEdep(G4double de)
G4CollectionNameVector collectionName
static constexpr double cm
virtual G4bool ProcessHits(G4Step *aStep, G4TouchableHistory *ROhist)