CMS 3D CMS Logo

Run3ScoutingPhoton.h
Go to the documentation of this file.
1 #ifndef DataFormats_Run3ScoutingPhoton_h
2 #define DataFormats_Run3ScoutingPhoton_h
3 
4 #include <vector>
5 #include <cstdint>
6 
7 // Class for holding photon 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  float sigmaIetaIeta,
20  float hOverE,
21  float ecalIso,
22  float hcalIso,
23  float trkIso,
24  float r9,
25  float sMin,
26  float sMaj,
27  uint32_t seedId,
28  uint32_t nClusters,
29  uint32_t nCrystals,
30  std::vector<float> energyMatrix,
31  std::vector<uint32_t> detIds,
32  std::vector<float> timingMatrix,
34  : pt_(pt),
35  eta_(eta),
36  phi_(phi),
37  m_(m),
42  hOverE_(hOverE),
45  trkIso_(trkIso),
46  r9_(r9),
47  sMin_(sMin),
48  sMaj_(sMaj),
49  seedId_(seedId),
56  //default constructor
58  : pt_(0),
59  eta_(0),
60  phi_(0),
61  m_(0),
62  rawEnergy_(0),
65  sigmaIetaIeta_(0),
66  hOverE_(0),
67  ecalIso_(0),
68  hcalIso_(0),
69  trkIso_(0),
70  r9_(0),
71  sMin_(0),
72  sMaj_(0),
73  seedId_(0),
74  nClusters_(0),
75  nCrystals_(0),
76  energyMatrix_(0),
77  timingMatrix_(0),
79 
80  //accessor functions
81  float pt() const { return pt_; }
82  float eta() const { return eta_; }
83  float phi() const { return phi_; }
84  float m() const { return m_; }
85  float rawEnergy() const { return rawEnergy_; }
86  float preshowerEnergy() const { return preshowerEnergy_; }
87  float corrEcalEnergyError() const { return corrEcalEnergyError_; }
88  float sigmaIetaIeta() const { return sigmaIetaIeta_; }
89  float hOverE() const { return hOverE_; }
90  float ecalIso() const { return ecalIso_; }
91  float hcalIso() const { return hcalIso_; }
92  float trkIso() const { return trkIso_; }
93  float r9() const { return r9_; }
94  float sMin() const { return sMin_; }
95  float sMaj() const { return sMaj_; }
96  uint32_t seedId() const { return seedId_; }
97  uint32_t nClusters() const { return nClusters_; }
98  uint32_t nCrystals() const { return nCrystals_; }
99  std::vector<float> const& energyMatrix() const { return energyMatrix_; }
100  std::vector<uint32_t> const& detIds() const { return detIds_; }
101  std::vector<float> const& timingMatrix() const { return timingMatrix_; }
103 
104 private:
105  float pt_;
106  float eta_;
107  float phi_;
108  float m_;
109  float rawEnergy_;
113  float hOverE_;
114  float ecalIso_;
115  float hcalIso_;
116  float trkIso_;
117  float r9_;
118  float sMin_;
119  float sMaj_;
120  uint32_t seedId_;
121  uint32_t nClusters_;
122  uint32_t nCrystals_;
123  std::vector<float> energyMatrix_;
124  std::vector<uint32_t> detIds_;
125  std::vector<float> timingMatrix_;
127 };
128 
129 typedef std::vector<Run3ScoutingPhoton> Run3ScoutingPhotonCollection;
130 
131 #endif
float corrEcalEnergyError() const
float preshowerEnergy() const
std::vector< float > const & timingMatrix() const
std::vector< uint32_t > const & detIds() const
uint32_t nCrystals() const
bool rechitZeroSuppression() const
uint32_t seedId() const
std::vector< float > energyMatrix_
std::vector< float > timingMatrix_
std::vector< Run3ScoutingPhoton > Run3ScoutingPhotonCollection
uint32_t nClusters() const
std::vector< uint32_t > detIds_
float sigmaIetaIeta() const
Run3ScoutingPhoton(float pt, float eta, float phi, float m, float rawEnergy, float preshowerEnergy, float corrEcalEnergyError, float sigmaIetaIeta, float hOverE, float ecalIso, float hcalIso, float trkIso, 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 & energyMatrix() const
float rawEnergy() const
def move(src, dest)
Definition: eostools.py:511