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 sigmaIetaIeta,
17  float hOverE,
18  float ecalIso,
19  float hcalIso,
20  float trkIso,
21  float r9,
22  float sMin,
23  float sMaj,
24  uint32_t seedId,
25  std::vector<float> energyMatrix,
26  std::vector<uint32_t> detIds,
27  std::vector<float> timingMatrix,
29  : pt_(pt),
30  eta_(eta),
31  phi_(phi),
32  m_(m),
34  hOverE_(hOverE),
37  trkIso_(trkIso),
38  r9_(r9),
39  sMin_(sMin),
40  sMaj_(sMaj),
41  seedId_(seedId),
46  //default constructor
48  : pt_(0),
49  eta_(0),
50  phi_(0),
51  m_(0),
52  sigmaIetaIeta_(0),
53  hOverE_(0),
54  ecalIso_(0),
55  hcalIso_(0),
56  trkIso_(0),
57  r9_(0),
58  sMin_(0),
59  sMaj_(0),
60  seedId_(0),
61  energyMatrix_(0),
62  timingMatrix_(0),
64 
65  //accessor functions
66  float pt() const { return pt_; }
67  float eta() const { return eta_; }
68  float phi() const { return phi_; }
69  float m() const { return m_; }
70  float sigmaIetaIeta() const { return sigmaIetaIeta_; }
71  float hOverE() const { return hOverE_; }
72  float ecalIso() const { return ecalIso_; }
73  float hcalIso() const { return hcalIso_; }
74  float trkIso() const { return trkIso_; }
75  float r9() const { return r9_; }
76  float sMin() const { return sMin_; }
77  float sMaj() const { return sMaj_; }
78  uint32_t seedId() const { return seedId_; }
79  std::vector<float> const& energyMatrix() const { return energyMatrix_; }
80  std::vector<uint32_t> const& detIds() const { return detIds_; }
81  std::vector<float> const& timingMatrix() const { return timingMatrix_; }
83 
84 private:
85  float pt_;
86  float eta_;
87  float phi_;
88  float m_;
90  float hOverE_;
91  float ecalIso_;
92  float hcalIso_;
93  float trkIso_;
94  float r9_;
95  float sMin_;
96  float sMaj_;
97  uint32_t seedId_;
98  std::vector<float> energyMatrix_;
99  std::vector<uint32_t> detIds_;
100  std::vector<float> timingMatrix_;
102 };
103 
104 typedef std::vector<Run3ScoutingPhoton> Run3ScoutingPhotonCollection;
105 
106 #endif
std::vector< float > const & timingMatrix() const
std::vector< uint32_t > const & detIds() const
bool rechitZeroSuppression() const
uint32_t seedId() const
std::vector< float > energyMatrix_
std::vector< float > timingMatrix_
std::vector< Run3ScoutingPhoton > Run3ScoutingPhotonCollection
std::vector< uint32_t > detIds_
float sigmaIetaIeta() const
std::vector< float > const & energyMatrix() const
def move(src, dest)
Definition: eostools.py:511
Run3ScoutingPhoton(float pt, float eta, float phi, float m, float sigmaIetaIeta, float hOverE, float ecalIso, float hcalIso, float trkIso, float r9, float sMin, float sMaj, uint32_t seedId, std::vector< float > energyMatrix, std::vector< uint32_t > detIds, std::vector< float > timingMatrix, bool rechitZeroSuppression)