33 #define DBG( msg ) G4cout<<msg<<G4endl
37 #define VDBG( vl , msg ) if ( vl<=verboseLevel ) G4cout<<msg<<G4endl
45 VDBG(1,
"Creating G4MultiSenstiveDetector with name: "<<name);
50 VDBG(2,
GetName()<<
" : Destructing G4MultiSensitiveDetector");
56 fSensitiveDetectors(rhs.fSensitiveDetectors)
112 result &= sd->Hit(aStep);
119 msg <<
GetName()<<
" : This method cannot be called for an instance of type G4MultiSensitiveDetector."
120 <<
" First retrieve a contained G4VSensitiveDetector with. i.e. GetSD and then "
121 <<
" call this method.";
129 VDBG(2,
GetName()<<
"Cloning an instance of G4MultiSensitiveDetector");
132 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)
G4MultiSensitiveDetector(G4String name)
G4VSensitiveDetector & operator=(const G4VSensitiveDetector &right)
G4MultiSensitiveDetector & operator=(const G4MultiSensitiveDetector &rhs)