// $Id$ // // Category: geometry // // See the class description in the header file. #include "AliLegoSensitiveDetector.h" #include "AliLego.h" AliLegoSensitiveDetector::AliLegoSensitiveDetector( G4String name, AliLego* lego, G4VSensitiveDetector* standardSD) : TG4VSensitiveDetector(name), fLego(lego), fStandardSD(standardSD) { // } AliLegoSensitiveDetector::AliLegoSensitiveDetector( const AliLegoSensitiveDetector& right) : TG4VSensitiveDetector(right) { // fLego = right.fLego; fStandardSD = right.fStandardSD; } AliLegoSensitiveDetector::AliLegoSensitiveDetector() { // } AliLegoSensitiveDetector::~AliLegoSensitiveDetector() { // } // operators AliLegoSensitiveDetector& AliLegoSensitiveDetector::operator=(const AliLegoSensitiveDetector &right) { // check assignement to self if (this == &right) return *this; // base class assignement TG4VSensitiveDetector::operator=(right); fLego = right.fLego; fStandardSD = right.fStandardSD; return *this; } // public methods void AliLegoSensitiveDetector::UserProcessHits(const G4Track* track, const G4Step* step) { // Calls StepManager of associated lego. // --- // let lego process step fLego->StepManager(); }