CbmRoot
Loading...
Searching...
No Matches
CbmMuchPixelHit.cxx
Go to the documentation of this file.
1/* Copyright (C) 2009-2020 GSI/JINR-LIT, Darmstadt/Dubna
2 SPDX-License-Identifier: GPL-3.0-only
3 Authors: Andrey Lebedev [committer], Florian Uhlig, Mikhail Ryzhinskiy */
4
10#include "CbmMuchPixelHit.h"
11
12#include "CbmHit.h" // for kMUCHPIXELHIT
13
14#include <TVector3.h> // for TVector3
15
17
19
20CbmMuchPixelHit::CbmMuchPixelHit(int32_t address, double x, double y, double z, double dx, double dy, double dz,
21 double dxy, int32_t refId, int32_t planeId, double t, double dt)
22 : CbmPixelHit(address, x, y, z, dx, dy, dz, dxy, refId)
23 , fPlaneId(planeId)
24 , fFlag(0)
25{
27 SetTime(t);
28 SetTimeError(dt);
29}
30
31CbmMuchPixelHit::CbmMuchPixelHit(int32_t address, const TVector3& pos, const TVector3& err, double dxy, int32_t refId,
32 int32_t planeId)
33 : CbmPixelHit(address, pos, err, dxy, refId)
34 , fPlaneId(planeId)
35 , fFlag(0)
36{
38 SetTime(-1);
39 SetTimeError(-1.);
40}
41
42CbmMuchPixelHit::CbmMuchPixelHit(int32_t address, const TVector3& pos, const TVector3& err, double dxy, int32_t refId,
43 int32_t planeId, double /*time*/, double /*dtime*/)
44 : CbmPixelHit(address, pos, err, dxy, refId)
45 , fPlaneId(planeId)
46 , fFlag(0)
47{
49 SetTime(-1);
50 SetTimeError(-1.);
51}
52
@ kMUCHPIXELHIT
Definition CbmHit.h:28
ClassImp(CbmMuchPixelHit)
Class for pixel hits in MUCH detector.
void SetTimeError(double error)
Definition CbmHit.h:91
void SetType(HitType type)
Sets hit type.
Definition CbmHit.h:112
void SetTime(double time)
Definition CbmHit.h:85
virtual ~CbmMuchPixelHit()
Destructor.
CbmMuchPixelHit()
Default constructor.