Belle II Software light-2406-ragdoll
ECLTriggerCell.h
1/**************************************************************************
2 * basf2 (Belle II Analysis Software Framework) *
3 * Author: The Belle II Collaboration *
4 * *
5 * See git log for contributors and copyright holders. *
6 * This file is licensed under LGPL-3.0, see LICENSE.md. *
7 **************************************************************************/
8
9#pragma once
10
11#include <framework/datastore/RelationsObject.h>
12
13namespace Belle2 {
21
22 public:
23
28 m_isHighestFADC(false),
29 m_thetaId(0),
30 m_phiId(0),
31 m_TCId(0),
32 m_hitWindow(std::numeric_limits<int>::quiet_NaN()),
33 m_FADC(0.),
34 m_timing(std::numeric_limits<double>::quiet_NaN()),
35 m_evtTiming(std::numeric_limits<double>::quiet_NaN()),
36 m_revoGDL(std::numeric_limits<double>::quiet_NaN()),
37 m_revoFAM(std::numeric_limits<double>::quiet_NaN()),
39 {}
40
42 void setTCId(unsigned int tcid) { m_TCId = tcid; }
43
45 void setFADC(float fadc) { m_FADC = fadc; }
46
48 void setTiming(float timing) { m_timing = timing; }
49
51 void setEvtTiming(float evttiming) { m_evtTiming = evttiming; }
52
54 void setRevoGDL(float revogdl) { m_revoGDL = revogdl; }
55
57 void setRevoFAM(float revofam) { m_revoFAM = revofam; }
58
60 void setThetaId(unsigned int thetaid) { m_thetaId = thetaid; }
61
63 void setPhiId(unsigned int phiid) { m_phiId = phiid; }
64
66 void setECLCalDigitEnergy(float energy) { m_ECLCalDigitEnergy = energy; }
67
69 void setIsHighestFADC(bool ishighest) { m_isHighestFADC = ishighest; }
70
72 void setHitWin(int hitwin) { m_hitWindow = hitwin; }
73
74
76 unsigned int getTCId() const
77 {
78 return m_TCId;
79 }
80
82 float getFADC() const
83 {
84 return m_FADC;
85 }
86
88 float getTiming() const
89 {
90 return m_timing;
91 }
92
94 float getEvtTiming() const
95 {
96 return m_evtTiming;
97 }
98
100 float getRevoGDL() const
101 {
102 return m_revoGDL;
103 }
104
106 float getRevoFAM() const
107 {
108 return m_revoFAM;
109 }
110
112 float getThetaId() const
113 {
114 return m_thetaId;
115 }
116
118 float getPhiId() const
119 {
120 return m_phiId;
121 }
122
125 {
126 return m_ECLCalDigitEnergy;
127 }
128
130 bool isHighestFADC() const
131 {
132 return m_isHighestFADC;
133 }
134
136 int getHitWin() const
137 {
138 return m_hitWindow;
139 }
140
141 private:
142
144 unsigned int m_thetaId;
145 unsigned int m_phiId;
146 unsigned int m_TCId;
148 float m_FADC;
149 float m_timing;
151 float m_revoGDL;
152 float m_revoFAM;
157 };
158
160} // end namespace Belle2
ECL Trigger cells.
bool isHighestFADC() const
Get m_isHighestFADC.
float m_evtTiming
event timing for this TC
void setHitWin(int hitwin)
Set m_hitWindow.
int getHitWin() const
Get m_hitWindow.
void setThetaId(unsigned int thetaid)
Set m_thetaId.
unsigned int m_TCId
TC Id (1..576)
int m_hitWindow
hit window of this TC
void setRevoGDL(float revogdl)
Set m_revoGDLTC.
float m_timing
timing for this TC
unsigned int m_thetaId
theta id for this TC
unsigned int m_phiId
phi id for this TC
void setFADC(float fadc)
Set m_FADC.
float getTiming() const
Get m_timing.
float m_revoFAM
revoFAM for this TC
ClassDef(ECLTriggerCell, 2)
class definition
float m_revoGDL
revoGDL for this TC (revolution global decision logic)
void setRevoFAM(float revofam)
Set m_revoFAM.
float getRevoFAM() const
Get m_revoFAM.
void setIsHighestFADC(bool ishighest)
Set m_isHighestFADC.
unsigned int getTCId() const
Get m_TCId.
void setPhiId(unsigned int phiid)
Set m_phiId.
void setEvtTiming(float evttiming)
Set m_evtTimingTC.
void setTCId(unsigned int tcid)
Set m_TCId.
float getEvtTiming() const
Get m_evtTiming.
float getPhiId() const
Get m_phiId.
void setTiming(float timing)
Set m_timingTC.
void setECLCalDigitEnergy(float energy)
Set m_ECLCalDigitEnergy.
float getECLCalDigitEnergy() const
Get m_ECLCalDigitEnergy.
float getRevoGDL() const
Get m_revoGDL.
float getFADC() const
Get m_FADC.
float getThetaId() const
Get m_thetaId.
float m_ECLCalDigitEnergy
sum of all ECLCalDigits for this TC
float m_FADC
FADC for this TC (flash analogue-to-digital)
ECLTriggerCell()
Default constructor.
bool m_isHighestFADC
true if this TC has the highest FADC value in the event
Defines interface for accessing relations of objects in StoreArray.
Abstract base class for different kinds of events.
Definition: ClusterUtils.h:24
STL namespace.