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