]>
Commit | Line | Data |
---|---|---|
676fb573 | 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 | ||
676fb573 | 9 | AliLegoSensitiveDetector::AliLegoSensitiveDetector( |
10 | G4String name, AliLego* lego, | |
11 | G4VSensitiveDetector* standardSD) | |
12 | : TG4VSensitiveDetector(name), | |
13 | fLego(lego), | |
9bcb6317 | 14 | fStandardSD(standardSD) |
676fb573 | 15 | { |
16 | // | |
17 | } | |
18 | ||
19 | AliLegoSensitiveDetector::AliLegoSensitiveDetector( | |
20 | const AliLegoSensitiveDetector& right) | |
21 | : TG4VSensitiveDetector(right) | |
22 | { | |
23 | // | |
58c0119e | 24 | // copy stuff |
25 | *this = right; | |
676fb573 | 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; | |
676fb573 | 49 | |
50 | return *this; | |
51 | } | |
52 | ||
53 | // public methods | |
54 | ||
9bcb6317 | 55 | void AliLegoSensitiveDetector::UserProcessHits(const G4Track* track, |
56 | const G4Step* step) | |
676fb573 | 57 | { |
58 | // Calls StepManager of associated lego. | |
59 | // --- | |
60 | ||
61 | // let lego process step | |
676fb573 | 62 | fLego->StepManager(); |
676fb573 | 63 | } |
64 |