CMS 3D CMS Logo

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, float btagDiscriminator):
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), btagDiscriminator_(btagDiscriminator) { }
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  float btagDiscriminator() const { return btagDiscriminator_; }
46 
47  private:
48  float pt_;
49  float eta_;
50  float phi_;
51  float m_;
52  float jetArea_;
61  float towersArea_;
64 };
65 
66 typedef std::vector<ScoutingCaloJet> ScoutingCaloJetCollection;
67 
68 #endif
float emEnergyInHF() const
float towersArea() const
float phi() const
float emEnergyInEB() const
std::vector< ScoutingCaloJet > ScoutingCaloJetCollection
float btagDiscriminator() const
float hadEnergyInHF() 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 btagDiscriminator)
float hadEnergyInHE() const
float emEnergyInEE() const
float hadEnergyInHB() const
float maxEInEmTowers() const
float m() const
float mvaDiscriminator() const
float eta() const
float pt() const
float maxEInHadTowers() const
float jetArea() const