34 #define DBG( msg ) G4cout<<msg<<G4endl
38 #define VDBG( vl , msg ) if ( vl<=verboseLevel ) G4cout<<msg<<G4endl
46 VDBG(1,
"Creating G4MultiSenstiveDetector with name: "<<name);
51 VDBG(2,
GetName()<<
" : Destructing G4MultiSensitiveDetector");
57 fSensitiveDetectors(rhs.fSensitiveDetectors)
113 result &= sd->Hit(aStep);
120 msg <<
GetName()<<
" : This method cannot be called for an instance of type G4MultiSensitiveDetector."
121 <<
" First retrieve a contained G4VSensitiveDetector with. i.e. GetSD and then "
122 <<
" call this method.";
130 VDBG(2,
GetName()<<
"Cloning an instance of G4MultiSensitiveDetector");
133 newInst->
AddSD( sd->Clone() );
sds_t fSensitiveDetectors
virtual G4int GetCollectionID(G4int i) final
std::ostringstream G4ExceptionDescription
virtual G4VSensitiveDetector * Clone() const
virtual void Initialize(G4HCofThisEvent *)
virtual void EndOfEvent(G4HCofThisEvent *)
void AddSD(G4VSensitiveDetector *sd)
virtual G4bool ProcessHits(G4Step *aStep, G4TouchableHistory *ROhist)
virtual ~G4MultiSensitiveDetector()
G4double GetTotalEnergyDeposit() const
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *comments)
void AddNewDetector(G4VSensitiveDetector *aSD)
G4MultiSensitiveDetector(G4String name)
static G4SDManager * GetSDMpointer()
G4VSensitiveDetector & operator=(const G4VSensitiveDetector &right)
G4MultiSensitiveDetector & operator=(const G4MultiSensitiveDetector &rhs)