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 {
10  public:
11  //constructor with values for all data fields
12  ScoutingPhoton(float pt, float eta, float phi, float m, float sigmaIetaIeta, float hOverE,
13  float ecalIso, float hcalIso):
14  pt_(pt), eta_(eta), phi_(phi), m_(m), sigmaIetaIeta_(sigmaIetaIeta), hOverE_(hOverE),
15  ecalIso_(ecalIso), hcalIso_(hcalIso) {}
16  //default constructor
17  ScoutingPhoton(): pt_(0), eta_(0), phi_(0), m_(0), sigmaIetaIeta_(0), hOverE_(0),
18  ecalIso_(0), hcalIso_(0) {}
19 
20  //accessor functions
21  float pt() const { return pt_; }
22  float eta() const { return eta_; }
23  float phi() const { return phi_; }
24  float m() const { return m_; }
25  float sigmaIetaIeta() const { return sigmaIetaIeta_; }
26  float hOverE() const { return hOverE_; }
27  float ecalIso() const { return ecalIso_; }
28  float hcalIso() const { return hcalIso_; }
29 
30  private:
31  float pt_;
32  float eta_;
33  float phi_;
34  float m_;
36  float hOverE_;
37  float ecalIso_;
38  float hcalIso_;
39 };
40 
41 typedef std::vector<ScoutingPhoton> ScoutingPhotonCollection;
42 
43 #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