]> git.uio.no Git - u/mrichter/AliRoot.git/blame - TGeant4/TG4VSensitiveDetector.cxx
only comments added
[u/mrichter/AliRoot.git] / TGeant4 / TG4VSensitiveDetector.cxx
CommitLineData
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
10G4int TG4VSensitiveDetector::fgSDCounter = 0;
11
12TG4VSensitiveDetector::TG4VSensitiveDetector(G4String sdName)
13 : G4VSensitiveDetector(sdName)
14{
15//
16 fID = fgSDCounter++;
17}
18
19TG4VSensitiveDetector::TG4VSensitiveDetector(G4String sdName, G4int id)
20 : G4VSensitiveDetector(sdName),
21 fID(id)
22{
23//
24 fgSDCounter++;
25}
26
27TG4VSensitiveDetector::TG4VSensitiveDetector(
28 const TG4VSensitiveDetector& right)
29 : G4VSensitiveDetector(right)
30{
31//
32 fID = right.fID;
33
34 fgSDCounter++;;
35}
36
37TG4VSensitiveDetector::TG4VSensitiveDetector()
38 : G4VSensitiveDetector("")
39{
40//
41}
42
43TG4VSensitiveDetector::~TG4VSensitiveDetector() {
44//
45}
46
47// operators
48
49TG4VSensitiveDetector& 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}