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 d0,
17  float dz,
18  float dEtaIn,
19  float dPhiIn,
20  float sigmaIetaIeta,
21  float hOverE,
22  float ooEMOop,
23  int missingHits,
24  int charge,
25  float ecalIso,
26  float hcalIso,
27  float trackIso,
28  float r9,
29  float sMin,
30  float sMaj,
31  uint32_t seedId,
32  std::vector<float> energyMatrix,
33  std::vector<uint32_t> detIds,
34  std::vector<float> timingMatrix,
36  : pt_(pt),
37  eta_(eta),
38  phi_(phi),
39  m_(m),
40  d0_(d0),
41  dz_(dz),
42  dEtaIn_(dEtaIn),
43  dPhiIn_(dPhiIn),
45  hOverE_(hOverE),
48  charge_(charge),
52  r9_(r9),
53  sMin_(sMin),
54  sMaj_(sMaj),
55  seedId_(seedId),
60  //default constructor
62  : pt_(0),
63  eta_(0),
64  phi_(0),
65  m_(0),
66  d0_(0),
67  dz_(0),
68  dEtaIn_(0),
69  dPhiIn_(0),
70  sigmaIetaIeta_(0),
71  hOverE_(0),
72  ooEMOop_(0),
73  missingHits_(0),
74  charge_(0),
75  ecalIso_(0),
76  hcalIso_(0),
77  trackIso_(0),
78  r9_(0),
79  sMin_(0),
80  sMaj_(0),
81  seedId_(0),
83 
84  //accessor functions
85  float pt() const { return pt_; }
86  float eta() const { return eta_; }
87  float phi() const { return phi_; }
88  float m() const { return m_; }
89  float d0() const { return d0_; }
90  float dz() const { return dz_; }
91  float dEtaIn() const { return dEtaIn_; }
92  float dPhiIn() const { return dPhiIn_; }
93  float sigmaIetaIeta() const { return sigmaIetaIeta_; }
94  float hOverE() const { return hOverE_; }
95  float ooEMOop() const { return ooEMOop_; }
96  int missingHits() const { return missingHits_; }
97  int charge() const { return charge_; }
98  float ecalIso() const { return ecalIso_; }
99  float hcalIso() const { return hcalIso_; }
100  float trackIso() const { return trackIso_; }
101  float r9() const { return r9_; }
102  float sMin() const { return sMin_; }
103  float sMaj() const { return sMaj_; }
104  uint32_t seedId() const { return seedId_; }
105  std::vector<float> const& energyMatrix() const { return energyMatrix_; }
106  std::vector<uint32_t> const& detIds() const { return detIds_; }
107  std::vector<float> const& timingMatrix() const { return timingMatrix_; }
109 
110 private:
111  float pt_;
112  float eta_;
113  float phi_;
114  float m_;
115  float d0_;
116  float dz_;
117  float dEtaIn_;
118  float dPhiIn_;
120  float hOverE_;
121  float ooEMOop_;
123  int charge_;
124  float ecalIso_;
125  float hcalIso_;
126  float trackIso_;
127  float r9_;
128  float sMin_;
129  float sMaj_;
130  uint32_t seedId_;
131  std::vector<float> energyMatrix_;
132  std::vector<uint32_t> detIds_;
133  std::vector<float> timingMatrix_;
135 };
136 
137 typedef std::vector<Run3ScoutingElectron> Run3ScoutingElectronCollection;
138 
139 #endif
bool rechitZeroSuppression() const
std::vector< float > timingMatrix_
std::vector< float > const & energyMatrix() const
Run3ScoutingElectron(float pt, float eta, float phi, float m, float d0, float dz, float dEtaIn, float dPhiIn, float sigmaIetaIeta, float hOverE, float ooEMOop, int missingHits, int charge, float ecalIso, float hcalIso, float trackIso, float r9, float sMin, float sMaj, uint32_t seedId, std::vector< float > energyMatrix, std::vector< uint32_t > detIds, std::vector< float > timingMatrix, bool rechitZeroSuppression)
std::vector< float > energyMatrix_
std::vector< Run3ScoutingElectron > Run3ScoutingElectronCollection
std::vector< float > const & timingMatrix() const
std::vector< uint32_t > detIds_
std::vector< uint32_t > const & detIds() const
def move(src, dest)
Definition: eostools.py:511