CbmRoot
Loading...
Searching...
No Matches
CbmRichHit.cxx
Go to the documentation of this file.
1/* Copyright (C) 2006-2020 GSI Helmholtzzentrum fuer Schwerionenforschung, Darmstadt
2 SPDX-License-Identifier: GPL-3.0-only
3 Authors: Boris Polichtchouk, Florian Uhlig, Andrey Lebedev, Denis Bertini [committer] */
4
9#include "CbmRichHit.h"
10
11#include "CbmHit.h" // for kRICHHIT
12
13#include <sstream> // for operator<<, basic_ostream, stringstream
14
15using std::endl;
16using std::stringstream;
17
19 : CbmPixelHit()
20 , fPmtId(0)
21 ,
22 // fNPhotons(0),
23 // fAmplitude(0.),
24 fToT(0.)
25 , fIsNoiseNN(false)
26{
28 SetTime(0.);
29}
30
31CbmRichHit::CbmRichHit(double x, double y)
32 : CbmPixelHit()
33 , fPmtId(0)
34 ,
35 // fNPhotons(0),
36 // fAmplitude(0.),
37 fToT(0.)
38 , fIsNoiseNN(false)
39{
41 SetX(x);
42 SetY(y);
43 SetTime(0.);
44}
45
46CbmRichHit::CbmRichHit(double x, double y, double ts, double tot)
47 : CbmPixelHit()
48 , fPmtId(0)
49 ,
50 // fNPhotons(0),
51 // fAmplitude(0.),
52 fToT(tot)
53 , fIsNoiseNN(false)
54{
56 SetX(x);
57 SetY(y);
58 SetTime(ts);
59}
60
62
63std::string CbmRichHit::ToString() const
64{
65 stringstream ss;
66 ss << "CbmRichHit: address=" << GetAddress() << " pos=(" << GetX() << "," << GetY() << "," << GetZ() << ") err=("
67 << GetDx() << "," << GetDy() << "," << GetDz() << ") dxy=" << GetDxy() << " refId=" << GetRefId() << " isNoiseNN="
68 << GetIsNoiseNN()
69 // << " pmtId=" << GetPmtId() << " nofPhotons=" << GetNPhotons()
70 // << " amplitude=" << GetAmplitude()
71 << endl;
72 return ss.str();
73}
74
ClassImp(CbmConverterManager)
@ kRICHHIT
Definition CbmHit.h:27
double GetDz() const
Definition CbmHit.h:72
void SetType(HitType type)
Sets hit type.
Definition CbmHit.h:112
int32_t GetAddress() const
Definition CbmHit.h:74
double GetZ() const
Definition CbmHit.h:71
void SetTime(double time)
Definition CbmHit.h:85
int32_t GetRefId() const
Definition CbmHit.h:73
double GetDy() const
Definition CbmPixelHit.h:76
double GetDx() const
Definition CbmPixelHit.h:75
void SetX(double x)
Definition CbmPixelHit.h:92
double GetY() const
Definition CbmPixelHit.h:74
void SetY(double y)
Definition CbmPixelHit.h:93
double GetX() const
Definition CbmPixelHit.h:73
double GetDxy() const
Definition CbmPixelHit.h:77
virtual ~CbmRichHit()
Destructor.
bool GetIsNoiseNN() const
Definition CbmRichHit.h:68
CbmRichHit()
Default constructor.
virtual std::string ToString() const
Inherited from CbmBaseHit.