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!
8 class ScoutingPFJet {
9 public:
10  //constructor with values for all data fields
12  float eta,
13  float phi,
14  float m,
15  float jetArea,
16  float chargedHadronEnergy,
17  float neutralHadronEnergy,
18  float photonEnergy,
19  float electronEnergy,
20  float muonEnergy,
21  float HFHadronEnergy,
22  float HFEMEnergy,
27  int muonMultiplicity,
29  int HFEMMultiplicity,
30  float HOEnergy,
31  float csv,
32  float mvaDiscriminator,
33  std::vector<int> constituents)
34  : pt_(pt),
35  eta_(eta),
36  phi_(phi),
37  m_(m),
54  csv_(csv),
57  //default constructor
59  : pt_(0),
60  eta_(0),
61  phi_(0),
62  m_(0),
63  jetArea_(0),
66  photonEnergy_(0),
67  electronEnergy_(0),
68  muonEnergy_(0),
69  HFHadronEnergy_(0),
70  HFEMEnergy_(0),
78  HOEnergy_(0),
79  csv_(0),
81  constituents_(std::vector<int>()) {}
82 
83  //accessor functions
84  float pt() const { return pt_; }
85  float eta() const { return eta_; }
86  float phi() const { return phi_; }
87  float m() const { return m_; }
88  float jetArea() const { return jetArea_; }
89  float chargedHadronEnergy() const { return chargedHadronEnergy_; }
90  float neutralHadronEnergy() const { return neutralHadronEnergy_; }
91  float photonEnergy() const { return photonEnergy_; }
92  float electronEnergy() const { return electronEnergy_; }
93  float muonEnergy() const { return muonEnergy_; }
94  float HFHadronEnergy() const { return HFHadronEnergy_; }
95  float HFEMEnergy() const { return HFEMEnergy_; }
98  int photonMultiplicity() const { return photonMultiplicity_; }
100  int muonMultiplicity() const { return muonMultiplicity_; }
102  int HFEMMultiplicity() const { return HFEMMultiplicity_; }
103  float HOEnergy() const { return HOEnergy_; }
104  float csv() const { return csv_; }
105  float mvaDiscriminator() const { return mvaDiscriminator_; }
106  std::vector<int> constituents() const { return constituents_; }
107 
108 private:
109  float pt_;
110  float eta_;
111  float phi_;
112  float m_;
113  float jetArea_;
118  float muonEnergy_;
120  float HFEMEnergy_;
128  float HOEnergy_;
129  float csv_;
131  std::vector<int> constituents_;
132 };
133 
134 typedef std::vector<ScoutingPFJet> ScoutingPFJetCollection;
135 
136 #endif
ScoutingPFJet::neutralHadronEnergy_
float neutralHadronEnergy_
Definition: ScoutingPFJet.h:115
ScoutingPFJet::pt_
float pt_
Definition: ScoutingPFJet.h:109
ScoutingPFJet::HFHadronMultiplicity
int HFHadronMultiplicity() const
Definition: ScoutingPFJet.h:101
ScoutingPFJet::muonEnergy_
float muonEnergy_
Definition: ScoutingPFJet.h:118
ScoutingPFJet::phi_
float phi_
Definition: ScoutingPFJet.h:111
ScoutingPFJet::neutralHadronMultiplicity_
int neutralHadronMultiplicity_
Definition: ScoutingPFJet.h:122
ScoutingPFJet::HOEnergy
float HOEnergy() const
Definition: ScoutingPFJet.h:103
ScoutingPFJet::photonEnergy
float photonEnergy() const
Definition: ScoutingPFJet.h:91
ScoutingPFJet
Definition: ScoutingPFJet.h:8
ScoutingPFJet::electronMultiplicity_
int electronMultiplicity_
Definition: ScoutingPFJet.h:124
ScoutingPFJet::mvaDiscriminator_
float mvaDiscriminator_
Definition: ScoutingPFJet.h:130
ScoutingPFJet::HFEMEnergy
float HFEMEnergy() const
Definition: ScoutingPFJet.h:95
ScoutingPFJet::csv
float csv() const
Definition: ScoutingPFJet.h:104
ScoutingPFJet::pt
float pt() const
Definition: ScoutingPFJet.h:84
ScoutingPFJet::eta
float eta() const
Definition: ScoutingPFJet.h:85
ScoutingPFJet::HFHadronEnergy_
float HFHadronEnergy_
Definition: ScoutingPFJet.h:119
ScoutingPFJet::muonMultiplicity
int muonMultiplicity() const
Definition: ScoutingPFJet.h:100
ScoutingPFJet::HFEMEnergy_
float HFEMEnergy_
Definition: ScoutingPFJet.h:120
ScoutingPFJet::ScoutingPFJet
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:11
ScoutingPFJet::HFEMMultiplicity
int HFEMMultiplicity() const
Definition: ScoutingPFJet.h:102
ScoutingPFJet::phi
float phi() const
Definition: ScoutingPFJet.h:86
ScoutingPFJet::muonEnergy
float muonEnergy() const
Definition: ScoutingPFJet.h:93
ScoutingPFJet::mvaDiscriminator
float mvaDiscriminator() const
Definition: ScoutingPFJet.h:105
ScoutingPFJet::jetArea
float jetArea() const
Definition: ScoutingPFJet.h:88
ScoutingPFJet::m
float m() const
Definition: ScoutingPFJet.h:87
ScoutingPFJet::constituents
std::vector< int > constituents() const
Definition: ScoutingPFJet.h:106
ScoutingPFJet::m_
float m_
Definition: ScoutingPFJet.h:112
ScoutingPFJet::chargedHadronMultiplicity
int chargedHadronMultiplicity() const
Definition: ScoutingPFJet.h:96
ScoutingPFJet::electronEnergy_
float electronEnergy_
Definition: ScoutingPFJet.h:117
createfilelist.int
int
Definition: createfilelist.py:10
ScoutingPFJet::chargedHadronEnergy_
float chargedHadronEnergy_
Definition: ScoutingPFJet.h:114
ScoutingPFJet::HOEnergy_
float HOEnergy_
Definition: ScoutingPFJet.h:128
ScoutingPFJet::HFHadronEnergy
float HFHadronEnergy() const
Definition: ScoutingPFJet.h:94
trackerHitRTTI::vector
Definition: trackerHitRTTI.h:21
ScoutingPFJet::muonMultiplicity_
int muonMultiplicity_
Definition: ScoutingPFJet.h:125
ScoutingPFJet::chargedHadronMultiplicity_
int chargedHadronMultiplicity_
Definition: ScoutingPFJet.h:121
ScoutingPFJetCollection
std::vector< ScoutingPFJet > ScoutingPFJetCollection
Definition: ScoutingPFJet.h:134
ScoutingPFJet::neutralHadronMultiplicity
int neutralHadronMultiplicity() const
Definition: ScoutingPFJet.h:97
ScoutingPFJet::electronEnergy
float electronEnergy() const
Definition: ScoutingPFJet.h:92
ScoutingPFJet::jetArea_
float jetArea_
Definition: ScoutingPFJet.h:113
ScoutingPFJet::ScoutingPFJet
ScoutingPFJet()
Definition: ScoutingPFJet.h:58
ScoutingPFJet::constituents_
std::vector< int > constituents_
Definition: ScoutingPFJet.h:131
std
Definition: JetResolutionObject.h:76
ScoutingPFJet::HFHadronMultiplicity_
int HFHadronMultiplicity_
Definition: ScoutingPFJet.h:126
ScoutingPFJet::csv_
float csv_
Definition: ScoutingPFJet.h:129
ScoutingPFJet::eta_
float eta_
Definition: ScoutingPFJet.h:110
ScoutingPFJet::neutralHadronEnergy
float neutralHadronEnergy() const
Definition: ScoutingPFJet.h:90
ScoutingPFJet::electronMultiplicity
int electronMultiplicity() const
Definition: ScoutingPFJet.h:99
ScoutingPFJet::photonEnergy_
float photonEnergy_
Definition: ScoutingPFJet.h:116
ScoutingPFJet::chargedHadronEnergy
float chargedHadronEnergy() const
Definition: ScoutingPFJet.h:89
ScoutingPFJet::photonMultiplicity
int photonMultiplicity() const
Definition: ScoutingPFJet.h:98
ScoutingPFJet::HFEMMultiplicity_
int HFEMMultiplicity_
Definition: ScoutingPFJet.h:127
ScoutingPFJet::photonMultiplicity_
int photonMultiplicity_
Definition: ScoutingPFJet.h:123