CMS 3D CMS Logo

L1ScoutingCalo.h
Go to the documentation of this file.
1 #ifndef DataFormats_L1Scouting_L1ScoutingCalo_h
2 #define DataFormats_L1Scouting_L1ScoutingCalo_h
3 
5 
6 namespace l1ScoutingRun3 {
7 
8  class CaloObject {
9  public:
10  CaloObject() : hwEt_(0), hwEta_(0), hwPhi_(0), hwIso_(0) {}
11 
12  CaloObject(int hwEt, int hwEta, int hwPhi, int iso) : hwEt_(hwEt), hwEta_(hwEta), hwPhi_(hwPhi), hwIso_(iso) {}
13 
14  void setHwEt(int hwEt) { hwEt_ = hwEt; }
15  void setHwEta(int hwEta) { hwEta_ = hwEta; }
16  void setHwPhi(int hwPhi) { hwPhi_ = hwPhi; }
17  void setHwIso(int hwIso) { hwIso_ = hwIso; }
18 
19  int hwEt() const { return hwEt_; }
20  int hwEta() const { return hwEta_; }
21  int hwPhi() const { return hwPhi_; }
22  int hwIso() const { return hwIso_; }
23 
24  private:
25  int hwEt_;
26  int hwEta_;
27  int hwPhi_;
28  int hwIso_;
29  };
30 
31  class Jet : public CaloObject {
32  public:
33  Jet() : CaloObject(0, 0, 0, 0) {}
34 
35  Jet(int hwEt, int hwEta, int hwPhi, int hwQual) : CaloObject(hwEt, hwEta, hwPhi, hwQual) {}
36 
37  // store quality instead of iso
38  void setHwQual(int hwQual) { setHwIso(hwQual); }
39  int hwQual() const { return hwIso(); }
40  };
41 
42  class EGamma : public CaloObject {
43  public:
44  EGamma() : CaloObject(0, 0, 0, 0) {}
45 
46  EGamma(int hwEt, int hwEta, int hwPhi, int iso) : CaloObject(hwEt, hwEta, hwPhi, iso) {}
47  };
48 
49  class Tau : public CaloObject {
50  public:
51  Tau() : CaloObject(0, 0, 0, 0) {}
52 
53  Tau(int hwEt, int hwEta, int hwPhi, int iso) : CaloObject(hwEt, hwEta, hwPhi, iso) {}
54  };
55 
56  class BxSums {
57  public:
59  : hwTotalEt_(0),
60  hwTotalEtEm_(0),
61  hwTotalHt_(0),
62  hwMissEt_(0),
63  hwMissEtPhi_(0),
64  hwMissHt_(0),
65  hwMissHtPhi_(0),
66  hwMissEtHF_(0),
67  hwMissEtHFPhi_(0),
68  hwMissHtHF_(0),
69  hwMissHtHFPhi_(0),
70  hwAsymEt_(0),
71  hwAsymHt_(0),
72  hwAsymEtHF_(0),
73  hwAsymHtHF_(0),
74  minBiasHFP0_(0),
75  minBiasHFM0_(0),
76  minBiasHFP1_(0),
77  minBiasHFM1_(0),
78  towerCount_(0),
79  centrality_(0) {}
80 
82  int hwTotalEtEm,
83  int hwTotalHt,
84  int hwMissEt,
85  int hwMissEtPhi,
86  int hwMissHt,
87  int hwMissHtPhi,
88  int hwMissEtHF,
89  int hwMissEtHFPhi,
90  int hwMissHtHF,
91  int hwMissHtHFPhi,
92  int hwAsymEt,
93  int hwAsymHt,
94  int hwAsymEtHF,
95  int hwAsymHtHF,
96  int minBiasHFP0,
97  int minBiasHFM0,
98  int minBiasHFP1,
99  int minBiasHFM1,
100  int towerCount,
101  int centrality)
123 
145 
146  const int hwTotalEt() const { return hwTotalEt_; }
147  const int hwTotalEtEm() const { return hwTotalEtEm_; }
148  const int minBiasHFP0() const { return minBiasHFP0_; }
149  const int hwTotalHt() const { return hwTotalHt_; }
150  const int towerCount() const { return towerCount_; }
151  const int minBiasHFM0() const { return minBiasHFM0_; }
152  const int hwMissEt() const { return hwMissEt_; }
153  const int hwMissEtPhi() const { return hwMissEtPhi_; }
154  const int hwAsymEt() const { return hwAsymEt_; }
155  const int minBiasHFP1() const { return minBiasHFP1_; }
156  const int hwMissHt() const { return hwMissHt_; }
157  const int hwMissHtPhi() const { return hwMissHtPhi_; }
158  const int hwAsymHt() const { return hwAsymHt_; }
159  const int minBiasHFM1() const { return minBiasHFM1_; }
160  const int hwMissEtHF() const { return hwMissEtHF_; }
161  const int hwMissEtHFPhi() const { return hwMissEtHFPhi_; }
162  const int hwAsymEtHF() const { return hwAsymEtHF_; }
163  const int hwMissHtHF() const { return hwMissHtHF_; }
164  const int hwMissHtHFPhi() const { return hwMissHtHFPhi_; }
165  const int hwAsymHtHF() const { return hwAsymHtHF_; }
166  const int centrality() const { return centrality_; }
167 
168  private:
190  };
191 
196 
197 } // namespace l1ScoutingRun3
198 #endif // DataFormats_L1Scouting_L1ScoutingCalo_h
const int hwTotalEt() const
void setHwTotalEtEm(int hwTotalEtEm)
const int minBiasHFM0() const
Jet(int hwEt, int hwEta, int hwPhi, int hwQual)
const int hwAsymEt() const
void setHwMissEtHFPhi(int hwMissEtHFPhi)
void setMinBiasHFM0(int minBiasHFM0)
void setMinBiasHFP0(int minBiasHFP0)
const int minBiasHFP0() const
const int minBiasHFM1() const
const int hwTotalHt() const
void setHwAsymHtHF(int hwAsymHtHF)
const int minBiasHFP1() const
const int hwMissEt() const
const int hwMissHtHF() const
OrbitCollection< Jet > JetOrbitCollection
EGamma(int hwEt, int hwEta, int hwPhi, int iso)
const int centrality() const
const int hwMissEtHFPhi() const
const int hwAsymHt() const
OrbitCollection< EGamma > EGammaOrbitCollection
void setHwMissEtHF(int hwMissEtHF)
const int hwMissHt() const
const int hwAsymEtHF() const
void setHwAsymHt(int hwAsymHt)
Definition: Jet.py:1
void setHwMissHtHF(int hwMissHtHF)
const int hwAsymHtHF() const
void setHwTotalHt(int hwTotalHt)
void setHwQual(int hwQual)
const int hwMissEtHF() const
const int hwTotalEtEm() const
OrbitCollection< Tau > TauOrbitCollection
void setHwAsymEtHF(int hwAsymEtHF)
void setCentrality(int centrality)
void setTowerCount(int towerCount)
void setHwMissHt(int hwMissHt)
Definition: Tau.py:1
void setHwAsymEt(int hwAsymEt)
void setMinBiasHFM1(int minBiasHFM1)
const int towerCount() const
CaloObject(int hwEt, int hwEta, int hwPhi, int iso)
void setMinBiasHFP1(int minBiasHFP1)
BxSums(int hwTotalEt, int hwTotalEtEm, int hwTotalHt, int hwMissEt, int hwMissEtPhi, int hwMissHt, int hwMissHtPhi, int hwMissEtHF, int hwMissEtHFPhi, int hwMissHtHF, int hwMissHtHFPhi, int hwAsymEt, int hwAsymHt, int hwAsymEtHF, int hwAsymHtHF, int minBiasHFP0, int minBiasHFM0, int minBiasHFP1, int minBiasHFM1, int towerCount, int centrality)
Tau(int hwEt, int hwEta, int hwPhi, int iso)
OrbitCollection< BxSums > BxSumsOrbitCollection
void setHwMissEtPhi(int hwMissEtPhi)
void setHwTotalEt(int hwTotalEt)
void setHwMissHtPhi(int hwMissHtPhi)
const int hwMissHtPhi() const
const int hwMissEtPhi() const
const int hwMissHtHFPhi() const
void setHwMissEt(int hwMissEt)
void setHwMissHtHFPhi(int hwMissHtHFPhi)