]>
Commit | Line | Data |
---|---|---|
2817d3e2 | 1 | // $Id$ // |
2 | // Category: geometry | |
3 | // | |
4 | // See the class description in the header file. | |
5 | ||
6 | #include "TG4VSensitiveDetector.h" | |
7 | ||
8 | #include "TG4StepManager.h" | |
9 | ||
10 | G4int TG4VSensitiveDetector::fgSDCounter = 0; | |
11 | ||
12 | TG4VSensitiveDetector::TG4VSensitiveDetector(G4String sdName) | |
13 | : G4VSensitiveDetector(sdName) | |
14 | { | |
15 | // | |
16 | fID = fgSDCounter++; | |
17 | } | |
18 | ||
19 | TG4VSensitiveDetector::TG4VSensitiveDetector(G4String sdName, G4int id) | |
20 | : G4VSensitiveDetector(sdName), | |
21 | fID(id) | |
22 | { | |
23 | // | |
24 | fgSDCounter++; | |
25 | } | |
26 | ||
27 | TG4VSensitiveDetector::TG4VSensitiveDetector( | |
28 | const TG4VSensitiveDetector& right) | |
29 | : G4VSensitiveDetector(right) | |
30 | { | |
31 | // | |
32 | fID = right.fID; | |
33 | ||
34 | fgSDCounter++;; | |
35 | } | |
36 | ||
37 | TG4VSensitiveDetector::TG4VSensitiveDetector() | |
38 | : G4VSensitiveDetector("") | |
39 | { | |
40 | // | |
41 | } | |
42 | ||
43 | TG4VSensitiveDetector::~TG4VSensitiveDetector() { | |
44 | // | |
45 | } | |
46 | ||
47 | // operators | |
48 | ||
49 | TG4VSensitiveDetector& TG4VSensitiveDetector::operator=( | |
50 | const TG4VSensitiveDetector &right) | |
51 | { | |
52 | // check assignement to self | |
53 | if (this == &right) return *this; | |
54 | ||
55 | // base class assignement | |
56 | TG4VSensitiveDetector::operator=(right); | |
57 | ||
58 | fID = right.fID; | |
59 | ||
60 | return *this; | |
61 | } |