Belle II Software  release-05-02-19
ECLTriggerCell.h
1 /**************************************************************************
2  * BASF2 (Belle Analysis Framework 2) *
3  * Copyright(C) 2018 - Belle II Collaboration *
4  * *
5  * Author: The Belle II Collaboration *
6  * Contributors: Torben Ferber (torben.ferber@desy.de) *
7  * *
8  * This software is provided "as is" without any warranty. *
9  **************************************************************************/
10 
11 #pragma once
12 
13 #include <framework/datastore/RelationsObject.h>
14 
15 namespace Belle2 {
22  class ECLTriggerCell : public RelationsObject {
23 
24  public:
25 
29  ECLTriggerCell() :
31  m_thetaId(0),
32  m_phiId(0),
33  m_TCId(0),
34  m_hitWindow(std::numeric_limits<int>::quiet_NaN()),
35  m_FADC(0.),
36  m_timing(std::numeric_limits<double>::quiet_NaN()),
37  m_evtTiming(std::numeric_limits<double>::quiet_NaN()),
38  m_revoGDL(std::numeric_limits<double>::quiet_NaN()),
39  m_revoFAM(std::numeric_limits<double>::quiet_NaN()),
41  {}
42 
44  void setTCId(unsigned int tcid) { m_TCId = tcid; }
45 
47  void setFADC(float fadc) { m_FADC = fadc; }
48 
50  void setTiming(float timing) { m_timing = timing; }
51 
53  void setEvtTiming(float evttiming) { m_evtTiming = evttiming; }
54 
56  void setRevoGDL(float revogdl) { m_revoGDL = revogdl; }
57 
59  void setRevoFAM(float revofam) { m_revoFAM = revofam; }
60 
62  void setThetaId(unsigned int thetaid) { m_thetaId = thetaid; }
63 
65  void setPhiId(unsigned int phiid) { m_phiId = phiid; }
66 
68  void setECLCalDigitEnergy(float energy) { m_ECLCalDigitEnergy = energy; }
69 
71  void setIsHighestFADC(bool ishighest) { m_isHighestFADC = ishighest; }
72 
74  void setHitWin(int hitwin) { m_hitWindow = hitwin; }
75 
76 
78  unsigned int getTCId() const
79  {
80  return m_TCId;
81  }
82 
84  float getFADC() const
85  {
86  return m_FADC;
87  }
88 
90  float getTiming() const
91  {
92  return m_timing;
93  }
94 
96  float getEvtTiming() const
97  {
98  return m_evtTiming;
99  }
100 
102  float getRevoGDL() const
103  {
104  return m_revoGDL;
105  }
106 
108  float getRevoFAM() const
109  {
110  return m_revoFAM;
111  }
112 
114  float getThetaId() const
115  {
116  return m_thetaId;
117  }
118 
120  float getPhiId() const
121  {
122  return m_phiId;
123  }
124 
126  float getECLCalDigitEnergy() const
127  {
129  }
130 
132  bool isHighestFADC() const
133  {
135  }
136 
138  int getHitWin() const
139  {
140  return m_hitWindow;
141  }
142 
143  private:
144 
145  bool m_isHighestFADC;
146  unsigned int m_thetaId;
147  unsigned int m_phiId;
148  unsigned int m_TCId;
149  int m_hitWindow;
150  float m_FADC;
151  float m_timing;
152  float m_evtTiming;
153  float m_revoGDL;
154  float m_revoFAM;
159  };
160 
162 } // end namespace Belle2
Belle2::ECLTriggerCell::m_revoGDL
float m_revoGDL
revoGDL for this TC (revolution global decision logic)
Definition: ECLTriggerCell.h:161
Belle2::ECLTriggerCell::ECLTriggerCell
ECLTriggerCell()
Default constructor.
Definition: ECLTriggerCell.h:37
Belle2::ECLTriggerCell::getTiming
float getTiming() const
Get m_timing.
Definition: ECLTriggerCell.h:98
Belle2::ECLTriggerCell::setTCId
void setTCId(unsigned int tcid)
Set m_TCId.
Definition: ECLTriggerCell.h:52
Belle2::ECLTriggerCell::m_revoFAM
float m_revoFAM
revoFAM for this TC
Definition: ECLTriggerCell.h:162
Belle2::ECLTriggerCell::setRevoFAM
void setRevoFAM(float revofam)
Set m_revoFAM.
Definition: ECLTriggerCell.h:67
Belle2::ECLTriggerCell::setEvtTiming
void setEvtTiming(float evttiming)
Set m_evtTimingTC.
Definition: ECLTriggerCell.h:61
Belle2::ECLTriggerCell::m_TCId
unsigned int m_TCId
TC Id (1..576)
Definition: ECLTriggerCell.h:156
Belle2::ECLTriggerCell::isHighestFADC
bool isHighestFADC() const
Get m_isHighestFADC.
Definition: ECLTriggerCell.h:140
Belle2::ECLTriggerCell::m_ECLCalDigitEnergy
float m_ECLCalDigitEnergy
sum of all ECLCalDigits for this TC
Definition: ECLTriggerCell.h:163
Belle2::ECLTriggerCell::setFADC
void setFADC(float fadc)
Set m_FADC.
Definition: ECLTriggerCell.h:55
Belle2::ECLTriggerCell::getTCId
unsigned int getTCId() const
Get m_TCId.
Definition: ECLTriggerCell.h:86
Belle2::ECLTriggerCell::ClassDef
ClassDef(ECLTriggerCell, 2)
class definition
Belle2::ECLTriggerCell::getRevoFAM
float getRevoFAM() const
Get m_revoFAM.
Definition: ECLTriggerCell.h:116
Belle2::ECLTriggerCell::m_FADC
float m_FADC
FADC for this TC (flash analogue-to-digital)
Definition: ECLTriggerCell.h:158
Belle2::ECLTriggerCell::getThetaId
float getThetaId() const
Get m_thetaId.
Definition: ECLTriggerCell.h:122
Belle2::ECLTriggerCell::getEvtTiming
float getEvtTiming() const
Get m_evtTiming.
Definition: ECLTriggerCell.h:104
Belle2::ECLTriggerCell::m_evtTiming
float m_evtTiming
event timing for this TC
Definition: ECLTriggerCell.h:160
Belle2::ECLTriggerCell::getPhiId
float getPhiId() const
Get m_phiId.
Definition: ECLTriggerCell.h:128
Belle2::ECLTriggerCell::m_thetaId
unsigned int m_thetaId
theta id for this TC
Definition: ECLTriggerCell.h:154
Belle2::ECLTriggerCell::getHitWin
int getHitWin() const
Get m_hitWindow.
Definition: ECLTriggerCell.h:146
Belle2::ECLTriggerCell::m_isHighestFADC
bool m_isHighestFADC
true if this TC has the highest FADC value in the event
Definition: ECLTriggerCell.h:153
Belle2
Abstract base class for different kinds of events.
Definition: MillepedeAlgorithm.h:19
Belle2::ECLTriggerCell::setThetaId
void setThetaId(unsigned int thetaid)
Set m_thetaId.
Definition: ECLTriggerCell.h:70
Belle2::ECLTriggerCell
ECL Trigger cells.
Definition: ECLTriggerCell.h:30
Belle2::ECLTriggerCell::setHitWin
void setHitWin(int hitwin)
Set m_hitWindow.
Definition: ECLTriggerCell.h:82
Belle2::RelationsObject
RelationsInterface< TObject > RelationsObject
Provides interface for getting/adding relations to objects in StoreArrays.
Definition: RelationsObject.h:443
Belle2::ECLTriggerCell::setTiming
void setTiming(float timing)
Set m_timingTC.
Definition: ECLTriggerCell.h:58
Belle2::ECLTriggerCell::m_timing
float m_timing
timing for this TC
Definition: ECLTriggerCell.h:159
Belle2::ECLTriggerCell::setIsHighestFADC
void setIsHighestFADC(bool ishighest)
Set m_isHighestFADC.
Definition: ECLTriggerCell.h:79
Belle2::ECLTriggerCell::getFADC
float getFADC() const
Get m_FADC.
Definition: ECLTriggerCell.h:92
Belle2::ECLTriggerCell::setRevoGDL
void setRevoGDL(float revogdl)
Set m_revoGDLTC.
Definition: ECLTriggerCell.h:64
Belle2::ECLTriggerCell::getRevoGDL
float getRevoGDL() const
Get m_revoGDL.
Definition: ECLTriggerCell.h:110
Belle2::ECLTriggerCell::setPhiId
void setPhiId(unsigned int phiid)
Set m_phiId.
Definition: ECLTriggerCell.h:73
Belle2::ECLTriggerCell::getECLCalDigitEnergy
float getECLCalDigitEnergy() const
Get m_ECLCalDigitEnergy.
Definition: ECLTriggerCell.h:134
Belle2::ECLTriggerCell::m_hitWindow
int m_hitWindow
hit window of this TC
Definition: ECLTriggerCell.h:157
Belle2::ECLTriggerCell::setECLCalDigitEnergy
void setECLCalDigitEnergy(float energy)
Set m_ECLCalDigitEnergy.
Definition: ECLTriggerCell.h:76
Belle2::ECLTriggerCell::m_phiId
unsigned int m_phiId
phi id for this TC
Definition: ECLTriggerCell.h:155