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 public:
10  //constructor with values for all data fields
12  float eta,
13  float phi,
14  float m,
15  float jetArea,
16  float maxEInEmTowers,
17  float maxEInHadTowers,
18  float hadEnergyInHB,
19  float hadEnergyInHE,
20  float hadEnergyInHF,
21  float emEnergyInEB,
22  float emEnergyInEE,
23  float emEnergyInHF,
24  float towersArea,
25  float mvaDiscriminator,
26  float btagDiscriminator)
27  : pt_(pt),
28  eta_(eta),
29  phi_(phi),
30  m_(m),
31  jetArea_(jetArea),
32  maxEInEmTowers_(maxEInEmTowers),
33  maxEInHadTowers_(maxEInHadTowers),
34  hadEnergyInHB_(hadEnergyInHB),
35  hadEnergyInHE_(hadEnergyInHE),
36  hadEnergyInHF_(hadEnergyInHF),
37  emEnergyInEB_(emEnergyInEB),
38  emEnergyInEE_(emEnergyInEE),
39  emEnergyInHF_(emEnergyInHF),
40  towersArea_(towersArea),
41  mvaDiscriminator_(mvaDiscriminator),
42  btagDiscriminator_(btagDiscriminator) {}
43  //default constructor
45  : pt_(0),
46  eta_(0),
47  phi_(0),
48  m_(0),
49  jetArea_(0),
50  maxEInEmTowers_(0),
52  hadEnergyInHB_(0),
53  hadEnergyInHE_(0),
54  hadEnergyInHF_(0),
55  emEnergyInEB_(0),
56  emEnergyInEE_(0),
57  emEnergyInHF_(0),
58  towersArea_(0),
60  btagDiscriminator_(0) {}
61 
62  //accessor functions
63  float pt() const { return pt_; }
64  float eta() const { return eta_; }
65  float phi() const { return phi_; }
66  float m() const { return m_; }
67  float jetArea() const { return jetArea_; }
68  float maxEInEmTowers() const { return maxEInEmTowers_; }
69  float maxEInHadTowers() const { return maxEInHadTowers_; }
70  float hadEnergyInHB() const { return hadEnergyInHB_; }
71  float hadEnergyInHE() const { return hadEnergyInHE_; }
72  float hadEnergyInHF() const { return hadEnergyInHF_; }
73  float emEnergyInEB() const { return emEnergyInEB_; }
74  float emEnergyInEE() const { return emEnergyInEE_; }
75  float emEnergyInHF() const { return emEnergyInHF_; }
76  float towersArea() const { return towersArea_; }
77  float mvaDiscriminator() const { return mvaDiscriminator_; }
78  float btagDiscriminator() const { return btagDiscriminator_; }
79 
80 private:
81  float pt_;
82  float eta_;
83  float phi_;
84  float m_;
85  float jetArea_;
94  float towersArea_;
97 };
98 
99 typedef std::vector<ScoutingCaloJet> ScoutingCaloJetCollection;
100 
101 #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