]> git.uio.no Git - u/mrichter/AliRoot.git/blob - AliGeant4/AliLegoSensitiveDetector.cxx
The argument of SetHighWaterMark declared const
[u/mrichter/AliRoot.git] / AliGeant4 / AliLegoSensitiveDetector.cxx
1 // $Id$ //
2 // Category: geometry
3 //
4 // See the class description in the header file.
5
6 #include "AliLegoSensitiveDetector.h"
7 #include "AliLego.h"
8
9 AliLegoSensitiveDetector::AliLegoSensitiveDetector(
10                              G4String name, AliLego* lego, 
11                              G4VSensitiveDetector* standardSD)
12   : TG4VSensitiveDetector(name),
13     fLego(lego),
14     fStandardSD(standardSD)
15 {
16 //
17 }
18
19 AliLegoSensitiveDetector::AliLegoSensitiveDetector(
20                                  const AliLegoSensitiveDetector& right)
21   : TG4VSensitiveDetector(right)                             
22 {
23 //
24   fLego = right.fLego;
25   fStandardSD = right.fStandardSD;
26 }
27
28 AliLegoSensitiveDetector::AliLegoSensitiveDetector() {
29 //
30 }
31
32 AliLegoSensitiveDetector::~AliLegoSensitiveDetector() {
33 //
34 }
35
36 // operators
37
38 AliLegoSensitiveDetector& 
39 AliLegoSensitiveDetector::operator=(const AliLegoSensitiveDetector &right)
40 {
41   // check assignement to self
42   if (this == &right) return *this;
43   
44   // base class assignement
45   TG4VSensitiveDetector::operator=(right);
46
47   fLego = right.fLego;
48   fStandardSD = right.fStandardSD;
49   
50   return *this;
51 }
52
53 // public methods
54
55 void AliLegoSensitiveDetector::UserProcessHits(const G4Track* track,
56                                                const G4Step* step)
57 {
58 // Calls StepManager of associated lego.
59 // ---
60
61   // let lego process step
62   fLego->StepManager();
63 }
64