CbmRoot
Loading...
Searching...
No Matches
CbmRichHit.h
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, Andrey Lebedev, Florian Uhlig, Denis Bertini [committer] */
4
13#ifndef CBMRICHHIT_H_
14#define CBMRICHHIT_H_
15
16#include "CbmPixelHit.h" // for CbmPixelHit
17
18#include <Rtypes.h> // for ClassDef
19
20#include <cstdint>
21#include <string> // for string
22
23class CbmRichHit : public CbmPixelHit {
24
25public:
29 CbmRichHit();
30
34 CbmRichHit(double x, double y);
35
39 CbmRichHit(double x, double y, double ts, double tot);
40
44 virtual ~CbmRichHit();
45
49 virtual std::string ToString() const;
50
54 virtual int32_t GetPlaneId() const { return 0; }
55
57 virtual void SetPmtId(int32_t det) { fPmtId = det; }
58 //virtual void SetNPhotons (int32_t n) { fNPhotons = n; }
59 //virtual void SetAmplitude(double amp) { fAmplitude = amp; }
60 void SetToT(double tot) { fToT = tot; }
61 void SetIsNoiseNN(bool isNoiseNN) { fIsNoiseNN = isNoiseNN; }
62
64 virtual int32_t GetPmtId() const { return fPmtId; }
65 //virtual int32_t GetNPhotons() const { return fNPhotons; }
66 //virtual double GetAmplitude() const { return fAmplitude; }
67 double GetToT() const { return fToT; }
68 bool GetIsNoiseNN() const { return fIsNoiseNN; }
69
71 // double GetTimestamp() const { return GetTime(); }
72 // void SetTimestamp(double ts) { SetTime(ts); }
73
74private:
75 int32_t fPmtId; // photomultiplier number
76 //int32_t fNPhotons; // number of photons in this hit
77 //double fAmplitude; // hit amplitude
78
79 double fToT; // hit time-over-threshold
80 // Flag for mRICH noise hit classification
81 // if true -> hit is classified as noise and excluded from ringfinding
83
85};
86
87#endif // CBMRICHHIT_H_
ClassDef(CbmPixelHit, 1)
virtual int32_t GetPmtId() const
Definition CbmRichHit.h:64
int32_t fPmtId
Definition CbmRichHit.h:75
void SetIsNoiseNN(bool isNoiseNN)
Definition CbmRichHit.h:61
virtual int32_t GetPlaneId() const
Inherited from CbmBaseHit.
Definition CbmRichHit.h:54
virtual ~CbmRichHit()
Destructor.
virtual void SetPmtId(int32_t det)
Definition CbmRichHit.h:57
bool GetIsNoiseNN() const
Definition CbmRichHit.h:68
bool fIsNoiseNN
Definition CbmRichHit.h:82
CbmRichHit()
Default constructor.
void SetToT(double tot)
Definition CbmRichHit.h:60
virtual std::string ToString() const
Inherited from CbmBaseHit.
double GetToT() const
Definition CbmRichHit.h:67
double fToT
Definition CbmRichHit.h:79