27 #ifndef G4MULTISENSITIVEDETECTOR_H
28 #define G4MULTISENSITIVEDETECTOR_H
73 using sds_t = std::vector<G4VSensitiveDetector*>;
76 sds_t::size_type
GetSize()
const {
return fSensitiveDetectors.size(); }
79 void ClearSDs() { fSensitiveDetectors.clear(); }
82 sds_t fSensitiveDetectors;
85 #endif //G4MULTISENSITIVEDETECTOR_H
virtual G4int GetCollectionID(G4int i) final
sdsConstIter GetBegin() const
virtual G4VSensitiveDetector * Clone() const
virtual void Initialize(G4HCofThisEvent *)
virtual void EndOfEvent(G4HCofThisEvent *)
void AddSD(G4VSensitiveDetector *sd)
virtual G4bool ProcessHits(G4Step *aStep, G4TouchableHistory *ROhist)
std::vector< G4VSensitiveDetector * > sds_t
sds_t::const_iterator sdsConstIter
virtual ~G4MultiSensitiveDetector()
sdsConstIter GetEnd() const
G4MultiSensitiveDetector(G4String name)
G4MultiSensitiveDetector & operator=(const G4MultiSensitiveDetector &rhs)
sds_t::size_type GetSize() const
G4VSensitiveDetector * GetSD(const int i) const