test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
ScoutingCaloJet.h
Go to the documentation of this file.
1 #ifndef DataFormats_ScoutingCaloJet_h
2 #define DataFormats_ScoutingCaloJet_h
3 
4 #include <vector>
5 
6 //class for holding calo jet 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  ScoutingCaloJet(float pt, float eta, float phi, float m,
13  float jetArea, float maxEInEmTowers, float maxEInHadTowers,
14  float hadEnergyInHB, float hadEnergyInHE, float hadEnergyInHF,
15  float emEnergyInEB, float emEnergyInEE, float emEnergyInHF,
16  float towersArea, float mvaDiscriminator):
17  pt_(pt), eta_(eta), phi_(phi), m_(m),
18  jetArea_(jetArea), maxEInEmTowers_(maxEInEmTowers), maxEInHadTowers_(maxEInHadTowers),
19  hadEnergyInHB_(hadEnergyInHB), hadEnergyInHE_(hadEnergyInHE), hadEnergyInHF_(hadEnergyInHF),
20  emEnergyInEB_(emEnergyInEB), emEnergyInEE_(emEnergyInEE), emEnergyInHF_(emEnergyInHF),
21  towersArea_(towersArea), mvaDiscriminator_(mvaDiscriminator){ }
22  //default constructor
23  ScoutingCaloJet():pt_(0), eta_(0), phi_(0), m_(0),
28 
29  //accessor functions
30  float pt() const { return pt_; }
31  float eta() const { return eta_; }
32  float phi() const { return phi_; }
33  float m() const { return m_; }
34  float jetArea() const { return jetArea_; }
35  float maxEInEmTowers() const { return maxEInEmTowers_; }
36  float maxEInHadTowers() const { return maxEInHadTowers_; }
37  float hadEnergyInHB() const { return hadEnergyInHB_; }
38  float hadEnergyInHE() const { return hadEnergyInHE_; }
39  float hadEnergyInHF() const { return hadEnergyInHF_; }
40  float emEnergyInEB() const { return emEnergyInEB_; }
41  float emEnergyInEE() const { return emEnergyInEE_; }
42  float emEnergyInHF() const { return emEnergyInHF_; }
43  float towersArea() const { return towersArea_; }
44  float mvaDiscriminator() const { return mvaDiscriminator_; }
45 
46  private:
47  float pt_;
48  float eta_;
49  float phi_;
50  float m_;
51  float jetArea_;
60  float towersArea_;
62 };
63 
64 typedef std::vector<ScoutingCaloJet> ScoutingCaloJetCollection;
65 
66 #endif
float emEnergyInHF() const
float towersArea() const
float phi() const
float emEnergyInEB() const
std::vector< ScoutingCaloJet > ScoutingCaloJetCollection
float hadEnergyInHF() const
float hadEnergyInHE() const
float emEnergyInEE() const
float hadEnergyInHB() const
float maxEInEmTowers() const
float m() const
ScoutingCaloJet(float pt, float eta, float phi, float m, float jetArea, float maxEInEmTowers, float maxEInHadTowers, float hadEnergyInHB, float hadEnergyInHE, float hadEnergyInHF, float emEnergyInEB, float emEnergyInEE, float emEnergyInHF, float towersArea, float mvaDiscriminator)
float mvaDiscriminator() const
float eta() const
float pt() const
float maxEInHadTowers() const
float jetArea() const