Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 12:54:40

0001 #ifndef DataFormats_ScoutingPhoton_h
0002 #define DataFormats_ScoutingPhoton_h
0003 
0004 #include <vector>
0005 
0006 // Class for holding photon information, for use in data scouting
0007 // IMPORTANT: the content of this class should be changed only in backwards compatible ways!
0008 class ScoutingPhoton {
0009 public:
0010   //constructor with values for all data fields
0011   ScoutingPhoton(
0012       float pt, float eta, float phi, float m, float sigmaIetaIeta, float hOverE, float ecalIso, float hcalIso)
0013       : pt_(pt),
0014         eta_(eta),
0015         phi_(phi),
0016         m_(m),
0017         sigmaIetaIeta_(sigmaIetaIeta),
0018         hOverE_(hOverE),
0019         ecalIso_(ecalIso),
0020         hcalIso_(hcalIso) {}
0021   //default constructor
0022   ScoutingPhoton() : pt_(0), eta_(0), phi_(0), m_(0), sigmaIetaIeta_(0), hOverE_(0), ecalIso_(0), hcalIso_(0) {}
0023 
0024   //accessor functions
0025   float pt() const { return pt_; }
0026   float eta() const { return eta_; }
0027   float phi() const { return phi_; }
0028   float m() const { return m_; }
0029   float sigmaIetaIeta() const { return sigmaIetaIeta_; }
0030   float hOverE() const { return hOverE_; }
0031   float ecalIso() const { return ecalIso_; }
0032   float hcalIso() const { return hcalIso_; }
0033 
0034 private:
0035   float pt_;
0036   float eta_;
0037   float phi_;
0038   float m_;
0039   float sigmaIetaIeta_;
0040   float hOverE_;
0041   float ecalIso_;
0042   float hcalIso_;
0043 };
0044 
0045 typedef std::vector<ScoutingPhoton> ScoutingPhotonCollection;
0046 
0047 #endif