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),
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
ScoutingCaloJet::hadEnergyInHE
float hadEnergyInHE() const
Definition: ScoutingCaloJet.h:71
ScoutingCaloJet::hadEnergyInHF
float hadEnergyInHF() const
Definition: ScoutingCaloJet.h:72
ScoutingCaloJet::maxEInHadTowers
float maxEInHadTowers() const
Definition: ScoutingCaloJet.h:69
ScoutingCaloJet::phi_
float phi_
Definition: ScoutingCaloJet.h:83
ScoutingCaloJet::hadEnergyInHB
float hadEnergyInHB() const
Definition: ScoutingCaloJet.h:70
ScoutingCaloJet
Definition: ScoutingCaloJet.h:8
ScoutingCaloJet::hadEnergyInHF_
float hadEnergyInHF_
Definition: ScoutingCaloJet.h:90
ScoutingCaloJetCollection
std::vector< ScoutingCaloJet > ScoutingCaloJetCollection
Definition: ScoutingCaloJet.h:99
ScoutingCaloJet::emEnergyInHF
float emEnergyInHF() const
Definition: ScoutingCaloJet.h:75
ScoutingCaloJet::jetArea_
float jetArea_
Definition: ScoutingCaloJet.h:85
ScoutingCaloJet::emEnergyInEE
float emEnergyInEE() const
Definition: ScoutingCaloJet.h:74
ScoutingCaloJet::maxEInHadTowers_
float maxEInHadTowers_
Definition: ScoutingCaloJet.h:87
ScoutingCaloJet::eta
float eta() const
Definition: ScoutingCaloJet.h:64
ScoutingCaloJet::maxEInEmTowers_
float maxEInEmTowers_
Definition: ScoutingCaloJet.h:86
ScoutingCaloJet::pt
float pt() const
Definition: ScoutingCaloJet.h:63
ScoutingCaloJet::hadEnergyInHB_
float hadEnergyInHB_
Definition: ScoutingCaloJet.h:88
ScoutingCaloJet::btagDiscriminator
float btagDiscriminator() const
Definition: ScoutingCaloJet.h:78
ScoutingCaloJet::emEnergyInHF_
float emEnergyInHF_
Definition: ScoutingCaloJet.h:93
ScoutingCaloJet::emEnergyInEB_
float emEnergyInEB_
Definition: ScoutingCaloJet.h:91
ScoutingCaloJet::ScoutingCaloJet
ScoutingCaloJet()
Definition: ScoutingCaloJet.h:44
ScoutingCaloJet::towersArea_
float towersArea_
Definition: ScoutingCaloJet.h:94
ScoutingCaloJet::hadEnergyInHE_
float hadEnergyInHE_
Definition: ScoutingCaloJet.h:89
ScoutingCaloJet::m_
float m_
Definition: ScoutingCaloJet.h:84
ScoutingCaloJet::towersArea
float towersArea() const
Definition: ScoutingCaloJet.h:76
ScoutingCaloJet::pt_
float pt_
Definition: ScoutingCaloJet.h:81
ScoutingCaloJet::jetArea
float jetArea() const
Definition: ScoutingCaloJet.h:67
ScoutingCaloJet::m
float m() const
Definition: ScoutingCaloJet.h:66
ScoutingCaloJet::mvaDiscriminator
float mvaDiscriminator() const
Definition: ScoutingCaloJet.h:77
ScoutingCaloJet::maxEInEmTowers
float maxEInEmTowers() const
Definition: ScoutingCaloJet.h:68
ScoutingCaloJet::eta_
float eta_
Definition: ScoutingCaloJet.h:82
ScoutingCaloJet::ScoutingCaloJet
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)
Definition: ScoutingCaloJet.h:11
ScoutingCaloJet::emEnergyInEE_
float emEnergyInEE_
Definition: ScoutingCaloJet.h:92
ScoutingCaloJet::emEnergyInEB
float emEnergyInEB() const
Definition: ScoutingCaloJet.h:73
ScoutingCaloJet::btagDiscriminator_
float btagDiscriminator_
Definition: ScoutingCaloJet.h:96
ScoutingCaloJet::phi
float phi() const
Definition: ScoutingCaloJet.h:65
ScoutingCaloJet::mvaDiscriminator_
float mvaDiscriminator_
Definition: ScoutingCaloJet.h:95