CMS 3D CMS Logo

Run3ScoutingElectron.h
Go to the documentation of this file.
1 #ifndef DataFormats_Run3ScoutingElectron_h
2 #define DataFormats_Run3ScoutingElectron_h
3 
4 #include <vector>
5 #include <cstdint>
6 
7 // Class for holding electron information, for use in data scouting
8 // IMPORTANT: the content of this class should be changed only in backwards compatible ways!
10 public:
11  //constructor with values for all data fields
13  float eta,
14  float phi,
15  float m,
16  float rawEnergy,
17  float preshowerEnergy,
18  float corrEcalEnergyError,
19  std::vector<float> trkd0,
20  std::vector<float> trkdz,
21  std::vector<float> trkpt,
22  std::vector<float> trketa,
23  std::vector<float> trkphi,
24  std::vector<float> trkpMode,
25  std::vector<float> trketaMode,
26  std::vector<float> trkphiMode,
27  std::vector<float> trkqoverpModeError,
28  std::vector<float> trkchi2overndf,
29  float dEtaIn,
30  float dPhiIn,
31  float sigmaIetaIeta,
32  float hOverE,
33  float ooEMOop,
34  int missingHits,
35  std::vector<int> trkcharge,
36  float trackfbrem,
37  float ecalIso,
38  float hcalIso,
39  float trackIso,
40  float r9,
41  float sMin,
42  float sMaj,
43  uint32_t seedId,
44  uint32_t nClusters,
45  uint32_t nCrystals,
46  std::vector<float> energyMatrix,
47  std::vector<uint32_t> detIds,
48  std::vector<float> timingMatrix,
50  : pt_(pt),
51  eta_(eta),
52  phi_(phi),
53  m_(m),
57  trkd0_(std::move(trkd0)),
58  trkdz_(std::move(trkdz)),
59  trkpt_(std::move(trkpt)),
67  dEtaIn_(dEtaIn),
68  dPhiIn_(dPhiIn),
70  hOverE_(hOverE),
78  r9_(r9),
79  sMin_(sMin),
80  sMaj_(sMaj),
81  seedId_(seedId),
88  //default constructor
90  : pt_(0),
91  eta_(0),
92  phi_(0),
93  m_(0),
94  rawEnergy_(0),
97  trkd0_(0),
98  trkdz_(0),
99  trkpt_(0),
100  trketa_(0),
101  trkphi_(0),
102  trkpMode_(0),
103  trketaMode_(0),
104  trkphiMode_(0),
106  trkchi2overndf_(0),
107  dEtaIn_(0),
108  dPhiIn_(0),
109  sigmaIetaIeta_(0),
110  hOverE_(0),
111  ooEMOop_(0),
112  missingHits_(0),
113  trkcharge_(0),
114  trackfbrem_(0),
115  ecalIso_(0),
116  hcalIso_(0),
117  trackIso_(0),
118  r9_(0),
119  sMin_(0),
120  sMaj_(0),
121  seedId_(0),
122  nClusters_(0),
123  nCrystals_(0),
125 
126  //accessor functions
127  float pt() const { return pt_; }
128  float eta() const { return eta_; }
129  float phi() const { return phi_; }
130  float m() const { return m_; }
131  float rawEnergy() const { return rawEnergy_; }
132  float preshowerEnergy() const { return preshowerEnergy_; }
133  float corrEcalEnergyError() const { return corrEcalEnergyError_; }
134  std::vector<float> const& trkd0() const { return trkd0_; }
135  std::vector<float> const& trkdz() const { return trkdz_; }
136  std::vector<float> const& trkpt() const { return trkpt_; }
137  std::vector<float> const& trketa() const { return trketa_; }
138  std::vector<float> const& trkphi() const { return trkphi_; }
139  std::vector<float> const& trkpMode() const { return trkpMode_; }
140  std::vector<float> const& trketaMode() const { return trketaMode_; }
141  std::vector<float> const& trkphiMode() const { return trkphiMode_; }
142  std::vector<float> const& trkqoverpModeError() const { return trkqoverpModeError_; }
143  std::vector<float> const& trkchi2overndf() const { return trkchi2overndf_; }
144  float dEtaIn() const { return dEtaIn_; }
145  float dPhiIn() const { return dPhiIn_; }
146  float sigmaIetaIeta() const { return sigmaIetaIeta_; }
147  float hOverE() const { return hOverE_; }
148  float ooEMOop() const { return ooEMOop_; }
149  int missingHits() const { return missingHits_; }
150  std::vector<int> const& trkcharge() const { return trkcharge_; }
151  float trackfbrem() const { return trackfbrem_; }
152  float ecalIso() const { return ecalIso_; }
153  float hcalIso() const { return hcalIso_; }
154  float trackIso() const { return trackIso_; }
155  float r9() const { return r9_; }
156  float sMin() const { return sMin_; }
157  float sMaj() const { return sMaj_; }
158  uint32_t seedId() const { return seedId_; }
159  uint32_t nClusters() const { return nClusters_; }
160  uint32_t nCrystals() const { return nCrystals_; }
161  std::vector<float> const& energyMatrix() const { return energyMatrix_; }
162  std::vector<uint32_t> const& detIds() const { return detIds_; }
163  std::vector<float> const& timingMatrix() const { return timingMatrix_; }
165 
166 private:
167  float pt_;
168  float eta_;
169  float phi_;
170  float m_;
171  float rawEnergy_;
174  std::vector<float> trkd0_;
175  std::vector<float> trkdz_;
176  std::vector<float> trkpt_;
177  std::vector<float> trketa_;
178  std::vector<float> trkphi_;
179  std::vector<float> trkpMode_;
180  std::vector<float> trketaMode_;
181  std::vector<float> trkphiMode_;
182  std::vector<float> trkqoverpModeError_;
183  std::vector<float> trkchi2overndf_;
184  float dEtaIn_;
185  float dPhiIn_;
187  float hOverE_;
188  float ooEMOop_;
190  std::vector<int> trkcharge_;
191  float trackfbrem_;
192  float ecalIso_;
193  float hcalIso_;
194  float trackIso_;
195  float r9_;
196  float sMin_;
197  float sMaj_;
198  uint32_t seedId_;
199  uint32_t nClusters_;
200  uint32_t nCrystals_;
201  std::vector<float> energyMatrix_;
202  std::vector<uint32_t> detIds_;
203  std::vector<float> timingMatrix_;
205 };
206 
207 typedef std::vector<Run3ScoutingElectron> Run3ScoutingElectronCollection;
208 
209 #endif
bool rechitZeroSuppression() const
std::vector< float > const & trkphi() const
std::vector< float > timingMatrix_
std::vector< float > trkpt_
std::vector< float > const & trketaMode() const
std::vector< float > const & trkpt() const
std::vector< float > const & energyMatrix() const
std::vector< float > trkchi2overndf_
std::vector< float > trkphi_
std::vector< float > const & trkd0() const
std::vector< float > energyMatrix_
std::vector< float > trkdz_
uint32_t nCrystals() const
std::vector< float > const & trkpMode() const
float corrEcalEnergyError() const
std::vector< float > trkd0_
std::vector< float > const & trkchi2overndf() const
std::vector< float > const & trkqoverpModeError() const
std::vector< int > const & trkcharge() const
std::vector< float > trkphiMode_
std::vector< Run3ScoutingElectron > Run3ScoutingElectronCollection
Run3ScoutingElectron(float pt, float eta, float phi, float m, float rawEnergy, float preshowerEnergy, float corrEcalEnergyError, std::vector< float > trkd0, std::vector< float > trkdz, std::vector< float > trkpt, std::vector< float > trketa, std::vector< float > trkphi, std::vector< float > trkpMode, std::vector< float > trketaMode, std::vector< float > trkphiMode, std::vector< float > trkqoverpModeError, std::vector< float > trkchi2overndf, float dEtaIn, float dPhiIn, float sigmaIetaIeta, float hOverE, float ooEMOop, int missingHits, std::vector< int > trkcharge, float trackfbrem, float ecalIso, float hcalIso, float trackIso, float r9, float sMin, float sMaj, uint32_t seedId, uint32_t nClusters, uint32_t nCrystals, std::vector< float > energyMatrix, std::vector< uint32_t > detIds, std::vector< float > timingMatrix, bool rechitZeroSuppression)
std::vector< float > const & timingMatrix() const
std::vector< int > trkcharge_
std::vector< float > const & trketa() const
std::vector< float > trketa_
std::vector< float > const & trkphiMode() const
std::vector< float > trketaMode_
std::vector< uint32_t > detIds_
std::vector< uint32_t > const & detIds() const
std::vector< float > const & trkdz() const
uint32_t nClusters() const
def move(src, dest)
Definition: eostools.py:511
std::vector< float > trkqoverpModeError_
std::vector< float > trkpMode_