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