CMS 3D CMS Logo

ScoutingPhoton.h
Go to the documentation of this file.
1 #ifndef DataFormats_ScoutingPhoton_h
2 #define DataFormats_ScoutingPhoton_h
3 
4 #include <vector>
5 
6 // Class for holding photon information, for use in data scouting
7 // IMPORTANT: the content of this class should be changed only in backwards compatible ways!
9 public:
10  //constructor with values for all data fields
12  float pt, float eta, float phi, float m, float sigmaIetaIeta, float hOverE, float ecalIso, float hcalIso)
13  : pt_(pt),
14  eta_(eta),
15  phi_(phi),
16  m_(m),
17  sigmaIetaIeta_(sigmaIetaIeta),
18  hOverE_(hOverE),
19  ecalIso_(ecalIso),
20  hcalIso_(hcalIso) {}
21  //default constructor
22  ScoutingPhoton() : pt_(0), eta_(0), phi_(0), m_(0), sigmaIetaIeta_(0), hOverE_(0), ecalIso_(0), hcalIso_(0) {}
23 
24  //accessor functions
25  float pt() const { return pt_; }
26  float eta() const { return eta_; }
27  float phi() const { return phi_; }
28  float m() const { return m_; }
29  float sigmaIetaIeta() const { return sigmaIetaIeta_; }
30  float hOverE() const { return hOverE_; }
31  float ecalIso() const { return ecalIso_; }
32  float hcalIso() const { return hcalIso_; }
33 
34 private:
35  float pt_;
36  float eta_;
37  float phi_;
38  float m_;
40  float hOverE_;
41  float ecalIso_;
42  float hcalIso_;
43 };
44 
45 typedef std::vector<ScoutingPhoton> ScoutingPhotonCollection;
46 
47 #endif
float hcalIso() const
float phi() const
float m() const
float eta() const
float hOverE() const
float pt() const
float sigmaIetaIeta() const
ScoutingPhoton(float pt, float eta, float phi, float m, float sigmaIetaIeta, float hOverE, float ecalIso, float hcalIso)
std::vector< ScoutingPhoton > ScoutingPhotonCollection
float ecalIso() const