CbmRoot
CbmMuchPixelHit.cxx
Go to the documentation of this file.
1 
6 #include "CbmMuchPixelHit.h"
7 
8 #include "CbmHit.h" // for kMUCHPIXELHIT
9 
10 #include <TVector3.h> // for TVector3
11 
12 CbmMuchPixelHit::CbmMuchPixelHit() : CbmPixelHit(), fPlaneId(-1), fFlag(0) {
14 }
15 
17 
19  Double_t x,
20  Double_t y,
21  Double_t z,
22  Double_t dx,
23  Double_t dy,
24  Double_t dz,
25  Double_t dxy,
26  Int_t refId,
27  Int_t planeId,
28  Double_t t,
29  Double_t dt)
30  : CbmPixelHit(address, x, y, z, dx, dy, dz, dxy, refId)
31  , fPlaneId(planeId)
32  , fFlag(0) {
34  SetTime(t);
35  SetTimeError(dt);
36 }
37 
39  const TVector3& pos,
40  const TVector3& err,
41  Double_t dxy,
42  Int_t refId,
43  Int_t planeId)
44  : CbmPixelHit(address, pos, err, dxy, refId), fPlaneId(planeId), fFlag(0) {
46  SetTime(-1);
47  SetTimeError(-1.);
48 }
49 
51  const TVector3& pos,
52  const TVector3& err,
53  Double_t dxy,
54  Int_t refId,
55  Int_t planeId,
56  Double_t /*time*/,
57  Double_t /*dtime*/)
58  : CbmPixelHit(address, pos, err, dxy, refId), fPlaneId(planeId), fFlag(0) {
60  SetTime(-1);
61  SetTimeError(-1.);
62 }
63 
ClassImp
ClassImp(CbmMuchPixelHit)
CbmHit::SetType
void SetType(HitType type)
Sets hit type.
Definition: CbmHit.h:112
CbmHit.h
CbmMuchPixelHit::~CbmMuchPixelHit
virtual ~CbmMuchPixelHit()
Destructor.
Definition: CbmMuchPixelHit.cxx:16
CbmHit::SetTimeError
void SetTimeError(Double_t error)
Definition: CbmHit.h:89
CbmHit::SetTime
void SetTime(Double_t time)
Definition: CbmHit.h:84
x
Double_t x
Definition: CbmMvdSensorDigiToHitTask.cxx:68
CbmMuchPixelHit.h
Class for pixel hits in MUCH detector.
y
Double_t y
Definition: CbmMvdSensorDigiToHitTask.cxx:68
pos
TVector3 pos
Definition: CbmMvdSensorDigiToHitTask.cxx:60
CbmPixelHit
Definition: CbmPixelHit.h:21
kMUCHPIXELHIT
@ kMUCHPIXELHIT
Definition: CbmHit.h:23
CbmMuchPixelHit
Definition: CbmMuchPixelHit.h:17
CbmMuchPixelHit::CbmMuchPixelHit
CbmMuchPixelHit()
Default constructor.
Definition: CbmMuchPixelHit.cxx:12