CMS 3D CMS Logo

CTPPSDiamondRecHit.h
Go to the documentation of this file.
1 /****************************************************************************
2  *
3  * This is a part of CTPPS offline software.
4  * Authors:
5  * Laurent Forthomme (laurent.forthomme@cern.ch)
6  * Nicola Minafra (nicola.minafra@cern.ch)
7  *
8  ****************************************************************************/
9 
10 #ifndef DataFormats_CTPPSReco_CTPPSDiamondRecHit
11 #define DataFormats_CTPPSReco_CTPPSDiamondRecHit
12 
15 
18 public:
20  CTPPSDiamondRecHit(float x,
21  float xWidth,
22  float y,
23  float yWidth,
24  float z,
25  float zWidth,
26  float t,
27  float tot,
28  float tPrecision,
29  int ootIdx,
30  const HPTDCErrorFlags &hptdcErr,
31  const bool mh)
33  tot_(tot),
35  tsIndex_(ootIdx),
36  hptdcErr_(hptdcErr),
37  mh_(mh) {}
38 
39  static constexpr int TIMESLICE_WITHOUT_LEADING = -10;
40 
41  inline void setToT(float tot) { tot_ = tot; }
42  inline float toT() const { return tot_; }
43 
44  inline void setTPrecision(float tPrecision) { tPrecision_ = tPrecision; }
45  inline float tPrecision() const { return tPrecision_; }
46 
47  inline void setOOTIndex(int i) { tsIndex_ = i; }
48  inline int ootIndex() const { return tsIndex_; }
49 
50  inline void setMultipleHits(bool mh) { mh_ = mh; }
51  inline bool multipleHits() const { return mh_; }
52 
53  inline void setHPTDCErrorFlags(const HPTDCErrorFlags &err) { hptdcErr_ = err; }
54  inline HPTDCErrorFlags hptdcErrorFlags() const { return hptdcErr_; }
55 
56 private:
58  float tot_;
60  float tPrecision_;
62  int tsIndex_;
66  bool mh_;
67 };
68 
69 #endif
CTPPSDiamondRecHit::mh_
bool mh_
Multiple hits detected.
Definition: CTPPSDiamondRecHit.h:71
mps_fire.i
i
Definition: mps_fire.py:355
CTPPSTimingRecHit::z
float z() const
Definition: CTPPSTimingRecHit.h:32
funct::false
false
Definition: Factorize.h:34
CTPPSTimingRecHit::zWidth
float zWidth() const
Definition: CTPPSTimingRecHit.h:41
CTPPSDiamondRecHit::setHPTDCErrorFlags
void setHPTDCErrorFlags(const HPTDCErrorFlags &err)
Definition: CTPPSDiamondRecHit.h:58
CTPPSDiamondRecHit::setTPrecision
void setTPrecision(float tPrecision)
Definition: CTPPSDiamondRecHit.h:49
CTPPSDiamondRecHit
Reconstructed hit in diamond detectors.
Definition: CTPPSDiamondRecHit.h:16
CTPPSDiamondRecHit::hptdcErrorFlags
HPTDCErrorFlags hptdcErrorFlags() const
Definition: CTPPSDiamondRecHit.h:59
CTPPSDiamondRecHit::tsIndex_
int tsIndex_
Time slice index.
Definition: CTPPSDiamondRecHit.h:67
HPTDCErrorFlags.h
CTPPSDiamondRecHit::tot_
float tot_
Time over threshold.
Definition: CTPPSDiamondRecHit.h:63
HPTDCErrorFlags
Definition: HPTDCErrorFlags.h:15
CTPPSDiamondRecHit::tPrecision
float tPrecision() const
Definition: CTPPSDiamondRecHit.h:50
CTPPSDiamondRecHit::ootIndex
int ootIndex() const
Definition: CTPPSDiamondRecHit.h:53
CTPPSTimingRecHit::yWidth
float yWidth() const
Definition: CTPPSTimingRecHit.h:38
OrderedSet.t
t
Definition: OrderedSet.py:90
CTPPSTimingRecHit.h
CTPPSTimingRecHit::xWidth
float xWidth() const
Definition: CTPPSTimingRecHit.h:35
CTPPSDiamondRecHit::setToT
void setToT(float tot)
Definition: CTPPSDiamondRecHit.h:46
CTPPSTimingRecHit::x
float x() const
Definition: CTPPSTimingRecHit.h:26
CTPPSDiamondRecHit::TIMESLICE_WITHOUT_LEADING
static constexpr int TIMESLICE_WITHOUT_LEADING
Definition: CTPPSDiamondRecHit.h:44
runTheMatrix.err
err
Definition: runTheMatrix.py:288
CTPPSDiamondRecHit::hptdcErr_
HPTDCErrorFlags hptdcErr_
List of error flags encountered by the HPTDC.
Definition: CTPPSDiamondRecHit.h:69
CTPPSDiamondRecHit::toT
float toT() const
Definition: CTPPSDiamondRecHit.h:47
CTPPSDiamondRecHit::setMultipleHits
void setMultipleHits(bool mh)
Definition: CTPPSDiamondRecHit.h:55
CTPPSDiamondRecHit::CTPPSDiamondRecHit
CTPPSDiamondRecHit()
Definition: CTPPSDiamondRecHit.h:24
CTPPSDiamondRecHit::multipleHits
bool multipleHits() const
Definition: CTPPSDiamondRecHit.h:56
CTPPSDiamondRecHit::setOOTIndex
void setOOTIndex(int i)
Definition: CTPPSDiamondRecHit.h:52
CTPPSTimingRecHit::y
float y() const
Definition: CTPPSTimingRecHit.h:29
CTPPSTimingRecHit
Reconstructed hit in timing detectors.
Definition: CTPPSTimingRecHit.h:13
CTPPSDiamondRecHit::tPrecision_
float tPrecision_
Expected timing precision.
Definition: CTPPSDiamondRecHit.h:65