4 // See the class description in the header file.
6 #include "AliSensitiveDetector.h"
12 AliSensitiveDetector::AliSensitiveDetector(G4String sdName, AliModule* module)
13 : TG4VSensitiveDetector(sdName),
19 AliSensitiveDetector::AliSensitiveDetector(G4String sdName, AliModule* module,
21 : TG4VSensitiveDetector(sdName, id),
27 AliSensitiveDetector::AliSensitiveDetector(const AliSensitiveDetector& right)
28 : TG4VSensitiveDetector(right)
31 fModule = right.fModule;
34 AliSensitiveDetector::AliSensitiveDetector(){
38 AliSensitiveDetector::~AliSensitiveDetector() {
45 AliSensitiveDetector::operator=(const AliSensitiveDetector& right)
47 // check assignement to self
48 if (this == &right) return *this;
50 // base class assignement
51 TG4VSensitiveDetector::operator=(right);
53 fModule = right.fModule;
60 void AliSensitiveDetector::UserProcessHits(const G4Track* track,
63 // Calls StepManager of associated AliModule.
66 // add energy deposit of the current step
69 gAlice->AddEnergyDeposit(
70 fID, step->GetTotalEnergyDeposit()/TG3Units::Energy());
72 // let AliModule process the step
73 fModule->StepManager();