]> git.uio.no Git - u/mrichter/AliRoot.git/blame - AliGeant4/AliLegoSensitiveDetector.cxx
moved from geometry to digits+hits
[u/mrichter/AliRoot.git] / AliGeant4 / AliLegoSensitiveDetector.cxx
CommitLineData
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 9AliLegoSensitiveDetector::AliLegoSensitiveDetector(
10 G4String name, AliLego* lego,
11 G4VSensitiveDetector* standardSD)
12 : TG4VSensitiveDetector(name),
13 fLego(lego),
9bcb6317 14 fStandardSD(standardSD)
676fb573 15{
16//
17}
18
19AliLegoSensitiveDetector::AliLegoSensitiveDetector(
20 const AliLegoSensitiveDetector& right)
21 : TG4VSensitiveDetector(right)
22{
23//
58c0119e 24 // copy stuff
25 *this = right;
676fb573 26}
27
28AliLegoSensitiveDetector::AliLegoSensitiveDetector() {
29//
30}
31
32AliLegoSensitiveDetector::~AliLegoSensitiveDetector() {
33//
34}
35
36// operators
37
38AliLegoSensitiveDetector&
39AliLegoSensitiveDetector::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 55void 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