27#ifndef G4MULTISENSITIVEDETECTOR_H
28#define G4MULTISENSITIVEDETECTOR_H
77 using sds_t = std::vector<G4VSensitiveDetector*>;
81 return fSensitiveDetectors[i];
83 sds_t::size_type
GetSize()
const {
return fSensitiveDetectors.size(); }
86 void ClearSDs() { fSensitiveDetectors.clear(); }
90 sds_t fSensitiveDetectors;
sdsConstIter GetEnd() const
G4MultiSensitiveDetector & operator=(const G4MultiSensitiveDetector &rhs)
virtual G4int GetCollectionID(G4int i) final
void AddSD(G4VSensitiveDetector *sd)
virtual void Initialize(G4HCofThisEvent *)
std::vector< G4VSensitiveDetector * > sds_t
virtual void EndOfEvent(G4HCofThisEvent *)
virtual G4bool ProcessHits(G4Step *aStep, G4TouchableHistory *ROhist)
virtual ~G4MultiSensitiveDetector()
virtual G4VSensitiveDetector * Clone() const
sdsConstIter GetBegin() const
sds_t::const_iterator sdsConstIter
sds_t::size_type GetSize() const
G4VSensitiveDetector * GetSD(const int i) const