CMS 3D CMS Logo

ScoutingPFJet.h
Go to the documentation of this file.
1 #ifndef DataFormats_ScoutingPFJet_h
2 #define DataFormats_ScoutingPFJet_h
3 
4 #include <vector>
5 
6 //class for holding PF 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  ScoutingPFJet(float pt, float eta, float phi, float m, float jetArea,
14  float electronEnergy, float muonEnergy, float HFHadronEnergy, float HFEMEnergy,
18  float HOEnergy, float csv, float mvaDiscriminator, std::vector<int> constituents):
19  pt_(pt), eta_(eta), phi_(phi), m_(m), jetArea_(jetArea),
20  chargedHadronEnergy_(chargedHadronEnergy), neutralHadronEnergy_(neutralHadronEnergy),
21  photonEnergy_(photonEnergy), electronEnergy_(electronEnergy), muonEnergy_(muonEnergy),
22  HFHadronEnergy_(HFHadronEnergy), HFEMEnergy_(HFEMEnergy),
23  chargedHadronMultiplicity_(chargedHadronMultiplicity), neutralHadronMultiplicity_(neutralHadronMultiplicity),
24  photonMultiplicity_(photonMultiplicity), electronMultiplicity_(electronMultiplicity),
25  muonMultiplicity_(muonMultiplicity), HFHadronMultiplicity_(HFHadronMultiplicity),
26  HFEMMultiplicity_(HFEMMultiplicity), HOEnergy_(HOEnergy), csv_(csv), mvaDiscriminator_(mvaDiscriminator),
27  constituents_(constituents) {}
28  //default constructor
29  ScoutingPFJet():pt_(0), eta_(0), phi_(0), m_(0),
35 
36  //accessor functions
37  float pt() const { return pt_; }
38  float eta() const { return eta_; }
39  float phi() const { return phi_; }
40  float m() const { return m_; }
41  float jetArea() const { return jetArea_; }
42  float chargedHadronEnergy() const { return chargedHadronEnergy_; }
43  float neutralHadronEnergy() const { return neutralHadronEnergy_; }
44  float photonEnergy() const { return photonEnergy_; }
45  float electronEnergy() const { return electronEnergy_; }
46  float muonEnergy() const { return muonEnergy_; }
47  float HFHadronEnergy() const { return HFHadronEnergy_; }
48  float HFEMEnergy() const { return HFEMEnergy_; }
51  int photonMultiplicity() const { return photonMultiplicity_; }
53  int muonMultiplicity() const { return muonMultiplicity_; }
55  int HFEMMultiplicity() const { return HFEMMultiplicity_; }
56  float HOEnergy() const { return HOEnergy_; }
57  float csv() const { return csv_; }
58  float mvaDiscriminator() const { return mvaDiscriminator_; }
59  std::vector<int> constituents() const { return constituents_; }
60 
61  private:
62  float pt_;
63  float eta_;
64  float phi_;
65  float m_;
66  float jetArea_;
71  float muonEnergy_;
73  float HFEMEnergy_;
81  float HOEnergy_;
82  float csv_;
84  std::vector<int> constituents_;
85 };
86 
87 typedef std::vector<ScoutingPFJet> ScoutingPFJetCollection;
88 
89 #endif
int neutralHadronMultiplicity_
Definition: ScoutingPFJet.h:75
int HFHadronMultiplicity_
Definition: ScoutingPFJet.h:79
float eta() const
Definition: ScoutingPFJet.h:38
float HFHadronEnergy() const
Definition: ScoutingPFJet.h:47
float m() const
Definition: ScoutingPFJet.h:40
float electronEnergy_
Definition: ScoutingPFJet.h:70
float chargedHadronEnergy_
Definition: ScoutingPFJet.h:67
float neutralHadronEnergy_
Definition: ScoutingPFJet.h:68
float phi() const
Definition: ScoutingPFJet.h:39
float electronEnergy() const
Definition: ScoutingPFJet.h:45
float mvaDiscriminator_
Definition: ScoutingPFJet.h:83
float csv() const
Definition: ScoutingPFJet.h:57
int HFEMMultiplicity() const
Definition: ScoutingPFJet.h:55
float mvaDiscriminator() const
Definition: ScoutingPFJet.h:58
float photonEnergy_
Definition: ScoutingPFJet.h:69
int photonMultiplicity() const
Definition: ScoutingPFJet.h:51
float photonEnergy() const
Definition: ScoutingPFJet.h:44
int electronMultiplicity_
Definition: ScoutingPFJet.h:77
ScoutingPFJet(float pt, float eta, float phi, float m, float jetArea, float chargedHadronEnergy, float neutralHadronEnergy, float photonEnergy, float electronEnergy, float muonEnergy, float HFHadronEnergy, float HFEMEnergy, int chargedHadronMultiplicity, int neutralHadronMultiplicity, int photonMultiplicity, int electronMultiplicity, int muonMultiplicity, int HFHadronMultiplicity, int HFEMMultiplicity, float HOEnergy, float csv, float mvaDiscriminator, std::vector< int > constituents)
Definition: ScoutingPFJet.h:12
float HOEnergy() const
Definition: ScoutingPFJet.h:56
int chargedHadronMultiplicity() const
Definition: ScoutingPFJet.h:49
float pt() const
Definition: ScoutingPFJet.h:37
int chargedHadronMultiplicity_
Definition: ScoutingPFJet.h:74
int photonMultiplicity_
Definition: ScoutingPFJet.h:76
std::vector< ScoutingPFJet > ScoutingPFJetCollection
Definition: ScoutingPFJet.h:87
float neutralHadronEnergy() const
Definition: ScoutingPFJet.h:43
float chargedHadronEnergy() const
Definition: ScoutingPFJet.h:42
std::vector< int > constituents() const
Definition: ScoutingPFJet.h:59
float muonEnergy() const
Definition: ScoutingPFJet.h:46
float HFEMEnergy() const
Definition: ScoutingPFJet.h:48
int HFHadronMultiplicity() const
Definition: ScoutingPFJet.h:54
int muonMultiplicity() const
Definition: ScoutingPFJet.h:53
int electronMultiplicity() const
Definition: ScoutingPFJet.h:52
float jetArea() const
Definition: ScoutingPFJet.h:41
int neutralHadronMultiplicity() const
Definition: ScoutingPFJet.h:50
float HFHadronEnergy_
Definition: ScoutingPFJet.h:72
std::vector< int > constituents_
Definition: ScoutingPFJet.h:84