19#ifndef BDSSDCOLLIMATOR_H
20#define BDSSDCOLLIMATOR_H
22#include "BDSHitCollimator.hh"
23#include "BDSSensitiveDetector.hh"
36class G4TouchableHistory;
66 virtual void Initialize(G4HCofThisEvent* HCE)
override;
71 G4TouchableHistory* rOHist)
override;
76 G4TouchableHistory* rOHist,
77 const std::vector<G4VHit*>& hits)
override;
80 virtual G4VHit*
last()
const override;
83 inline bool IsIon(
const int& pdgID)
const {
return pdgID > 1000000000;}
102 std::map<BDSBeamline*, std::map<G4int, G4int> >
mapping;
Extra G4Navigator to get coordinate transforms.
Information recorded for a single piece of energy deposition.
The sensitive detector class that provides sensitivity to collimators instances.
BDSHitsCollectionCollimator * collimatorCollection
The hits collection for this sensitive detector class that's owned by each instance.
virtual void Initialize(G4HCofThisEvent *HCE) override
BDSSDCollimator(BDSSDCollimator &)=delete
Assignment and copy constructor not implemented nor used.
virtual G4VHit * last() const override
Return the last collimator hit.
virtual G4bool ProcessHits(G4Step *aStep, G4TouchableHistory *rOHist) override
BDSAuxiliaryNavigator * auxNavigator
An auxiliary navigator object for coordinate transforms.
virtual G4bool ProcessHitsOrdered(G4Step *step, G4TouchableHistory *rOHist, const std::vector< G4VHit * > &hits) override
BDSSDCollimator & operator=(const BDSSDCollimator &)=delete
Assignment and copy constructor not implemented nor used.
G4String itsCollectionName
The name of the hits collection that's created and registered.
std::map< BDSBeamline *, std::map< G4int, G4int > > mapping
Virtual class to define interface for ordered multi-sensitive detector.