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