Imperial Analysis
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
JPTJet.hh
Go to the documentation of this file.
1 #ifndef ICHiggsTauTau_JPTJet_hh
2 #define ICHiggsTauTau_JPTJet_hh
3 #include <map>
4 #include <string>
5 #include <vector>
7 #include "Rtypes.h"
8 
9 namespace ic {
10 
15 class JPTJet : public CaloJet {
16  public:
17  JPTJet();
18  virtual ~JPTJet();
19  virtual void Print() const;
20 
22 
23  inline int const& muon_multiplicity() const { return muon_multiplicity_; }
25 
27  inline int const& charged_multiplicity() const {
28  return charged_multiplicity_;
29  }
30 
32  inline float const& charged_em_energy() const { return charged_em_energy_; }
33 
35  inline float charged_em_energy_frac() const {
36  return (charged_em_energy_ / uncorrected_energy());
37  }
38 
40  inline float const& neutral_em_energy() const { return neutral_em_energy_; }
41 
43  inline float neutral_em_energy_frac() const {
44  return (neutral_em_energy_ / uncorrected_energy());
45  }
46 
48  inline float const& charged_had_energy() const { return charged_had_energy_; }
49 
51  inline float charged_had_energy_frac() const {
52  return (charged_had_energy_ / uncorrected_energy());
53  }
54 
56  inline float const& neutral_had_energy() const { return neutral_had_energy_; }
57 
59  inline float neutral_had_energy_frac() const {
60  return (neutral_had_energy_ / uncorrected_energy());
61  }
62 
65  inline std::vector<std::size_t> const& pions_in_vtx_in_calo() const {
66  return pions_in_vtx_in_calo_;
67  }
68 
71  inline std::vector<std::size_t> const& pions_in_vtx_out_calo() const {
72  return pions_in_vtx_out_calo_;
73  }
74 
77  inline std::vector<std::size_t> const& pions_out_vtx_in_calo() const {
78  return pions_out_vtx_in_calo_;
79  }
80 
83  inline std::vector<std::size_t> const& muons_in_vtx_in_calo() const {
84  return muons_in_vtx_in_calo_;
85  }
86 
89  inline std::vector<std::size_t> const& muons_in_vtx_out_calo() const {
90  return muons_in_vtx_out_calo_;
91  }
92 
95  inline std::vector<std::size_t> const& muons_out_vtx_in_calo() const {
96  return muons_out_vtx_in_calo_;
97  }
98 
101  inline std::vector<std::size_t> const& elecs_in_vtx_in_calo() const {
102  return elecs_in_vtx_in_calo_;
103  }
104 
107  inline std::vector<std::size_t> const& elecs_in_vtx_out_calo() const {
108  return elecs_in_vtx_out_calo_;
109  }
110 
113  inline std::vector<std::size_t> const& elecs_out_vtx_in_calo() const {
114  return elecs_out_vtx_in_calo_;
115  }
116 
119  std::vector<std::size_t> constituent_tracks() const;
120 
137  inline float const& beta() const { return beta_; }
138 
141  inline float const& beta_max() const { return beta_max_; }
142 
144  inline float const& track_pt_total() const { return track_pt_total_; }
147 
149  inline void set_muon_multiplicity(int const& muon_multiplicity) {
151  muon_multiplicity_ = muon_multiplicity;
152  }
153 
156  charged_multiplicity_ = charged_multiplicity;
157  }
158 
160  inline void set_charged_em_energy(float const& charged_em_energy) {
161  charged_em_energy_ = charged_em_energy;
162  }
163 
165  inline void set_neutral_em_energy(float const& neutral_em_energy) {
166  neutral_em_energy_ = neutral_em_energy;
167  }
168 
170  inline void set_charged_had_energy(float const& charged_had_energy) {
171  charged_had_energy_ = charged_had_energy;
172  }
173 
175  inline void set_neutral_had_energy(float const& neutral_had_energy) {
176  neutral_had_energy_ = neutral_had_energy;
177  }
178 
181  std::vector<std::size_t> const& pions_in_vtx_in_calo) {
182  pions_in_vtx_in_calo_ = pions_in_vtx_in_calo;
183  }
184 
187  std::vector<std::size_t> const& pions_in_vtx_out_calo) {
188  pions_in_vtx_out_calo_ = pions_in_vtx_out_calo;
189  }
190 
193  std::vector<std::size_t> const& pions_out_vtx_in_calo) {
194  pions_out_vtx_in_calo_ = pions_out_vtx_in_calo;
195  }
196 
199  std::vector<std::size_t> const& muons_in_vtx_in_calo) {
200  muons_in_vtx_in_calo_ = muons_in_vtx_in_calo;
201  }
202 
205  std::vector<std::size_t> const& muons_in_vtx_out_calo) {
206  muons_in_vtx_out_calo_ = muons_in_vtx_out_calo;
207  }
208 
211  std::vector<std::size_t> const& muons_out_vtx_in_calo) {
212  muons_out_vtx_in_calo_ = muons_out_vtx_in_calo;
213  }
214 
217  std::vector<std::size_t> const& elecs_in_vtx_in_calo) {
218  elecs_in_vtx_in_calo_ = elecs_in_vtx_in_calo;
219  }
220 
223  std::vector<std::size_t> const& elecs_in_vtx_out_calo) {
224  elecs_in_vtx_out_calo_ = elecs_in_vtx_out_calo;
225  }
226 
229  std::vector<std::size_t> const& elecs_out_vtx_in_calo) {
230  elecs_out_vtx_in_calo_ = elecs_out_vtx_in_calo;
231  }
232 
234  inline void set_beta(float const& beta) { beta_ = beta; }
235 
237  inline void set_beta_max(float const& beta_max) { beta_max_ = beta_max; }
238 
240  inline void set_track_pt_total(float const& track_pt_total) {
241  track_pt_total_ = track_pt_total;
242  }
245  private:
246  int muon_multiplicity_;
247  int charged_multiplicity_;
248  float charged_em_energy_;
249  float neutral_em_energy_;
250  float charged_had_energy_;
251  float neutral_had_energy_;
252 
253  float beta_;
254  float beta_max_;
255  float track_pt_total_;
256 
257  std::vector<std::size_t> pions_in_vtx_in_calo_;
258  std::vector<std::size_t> pions_in_vtx_out_calo_;
259  std::vector<std::size_t> pions_out_vtx_in_calo_;
260  std::vector<std::size_t> muons_in_vtx_in_calo_;
261  std::vector<std::size_t> muons_in_vtx_out_calo_;
262  std::vector<std::size_t> muons_out_vtx_in_calo_;
263  std::vector<std::size_t> elecs_in_vtx_in_calo_;
264  std::vector<std::size_t> elecs_in_vtx_out_calo_;
265  std::vector<std::size_t> elecs_out_vtx_in_calo_;
266 
267  #ifndef SKIP_CINT_DICT
268  public:
269  ClassDef(JPTJet, 2);
270  #endif
271 };
272 
273 typedef std::vector<ic::JPTJet> JPTJetCollection;
274 }
275 #endif
float const & beta_max() const
The largest value of beta() obtained when it is evaluated for every vertex in the event...
Definition: JPTJet.hh:141
void set_beta(float const &beta)
The fraction of the constituent track momentum associated to the primary vertex.
Definition: JPTJet.hh:234
float const & charged_em_energy() const
Charged EM energy.
Definition: JPTJet.hh:32
void set_neutral_em_energy(float const &neutral_em_energy)
Neutral EM energy.
Definition: JPTJet.hh:165
float const & beta() const
The fraction of the constituent track momentum associated to the primary vertex.
Definition: JPTJet.hh:137
void set_muons_in_vtx_in_calo(std::vector< std::size_t > const &muons_in_vtx_in_calo)
A vector of ic::Track::id() values for muons compatible with the jet both at the vertex and the calor...
Definition: JPTJet.hh:198
ClassDef(JPTJet, 2)
void set_neutral_had_energy(float const &neutral_had_energy)
Neutral hadron energy.
Definition: JPTJet.hh:175
std::vector< std::size_t > const & pions_out_vtx_in_calo() const
A vector of ic::Track::id() values for pions compatible with the jet at the calorimeter but not at th...
Definition: JPTJet.hh:77
void set_charged_multiplicity(int const &charged_multiplicity)
Total number of charged constituents.
Definition: JPTJet.hh:155
void set_pions_in_vtx_out_calo(std::vector< std::size_t > const &pions_in_vtx_out_calo)
A vector of ic::Track::id() values for pions compatible with the jet at the vertex but not at the cal...
Definition: JPTJet.hh:186
float const & track_pt_total() const
The scalar sum of track .
Definition: JPTJet.hh:144
void set_elecs_out_vtx_in_calo(std::vector< std::size_t > const &elecs_out_vtx_in_calo)
A vector of ic::Track::id() values for electrons compatible with the jet at the calorimeter but not a...
Definition: JPTJet.hh:228
virtual void Print() const
Definition: JPTJet.cc:19
std::vector< ic::JPTJet > JPTJetCollection
Definition: JPTJet.hh:273
void set_pions_in_vtx_in_calo(std::vector< std::size_t > const &pions_in_vtx_in_calo)
A vector of ic::Track::id() values for pions compatible with the jet both at the vertex and the calor...
Definition: JPTJet.hh:180
A class derived from ic::Jet which adds Jet-plus-track specific information.
Definition: JPTJet.hh:15
Definition: CaloJet.hh:9
std::vector< std::size_t > const & elecs_in_vtx_out_calo() const
A vector of ic::Track::id() values for electrons compatible with the jet at the vertex but not at the...
Definition: JPTJet.hh:107
void set_charged_em_energy(float const &charged_em_energy)
Charged EM energy.
Definition: JPTJet.hh:160
float const & neutral_had_energy() const
Neutral hadron energy.
Definition: JPTJet.hh:56
std::vector< std::size_t > const & muons_out_vtx_in_calo() const
A vector of ic::Track::id() values for muons compatible with the jet at the calorimeter but not at th...
Definition: JPTJet.hh:95
float const & neutral_em_energy() const
Neutral EM energy.
Definition: JPTJet.hh:40
float neutral_had_energy_frac() const
Neutral hadron fraction of the total energy.
Definition: JPTJet.hh:59
std::vector< std::size_t > const & pions_in_vtx_out_calo() const
A vector of ic::Track::id() values for pions compatible with the jet at the vertex but not at the cal...
Definition: JPTJet.hh:71
float const & charged_had_energy() const
Charged hadron energy.
Definition: JPTJet.hh:48
JPTJet()
Definition: JPTJet.cc:5
int const & charged_multiplicity() const
Total number of charged constituents.
Definition: JPTJet.hh:27
void set_elecs_in_vtx_out_calo(std::vector< std::size_t > const &elecs_in_vtx_out_calo)
A vector of ic::Track::id() values for electrons compatible with the jet at the vertex but not at the...
Definition: JPTJet.hh:222
double const & uncorrected_energy() const
The raw value of the jet energy.
Definition: Jet.hh:67
int const & muon_multiplicity() const
Number of muon constituents.
Definition: JPTJet.hh:24
void set_track_pt_total(float const &track_pt_total)
The scalar sum of track .
Definition: JPTJet.hh:240
virtual ~JPTJet()
Definition: JPTJet.cc:17
std::vector< std::size_t > const & pions_in_vtx_in_calo() const
A vector of ic::Track::id() values for pions compatible with the jet both at the vertex and the calor...
Definition: JPTJet.hh:65
float neutral_em_energy_frac() const
Neutral EM fraction of the total energy.
Definition: JPTJet.hh:43
Derived from the ic::Jet class and adding information specific to calorimeter jets.
Definition: CaloJet.hh:15
void set_elecs_in_vtx_in_calo(std::vector< std::size_t > const &elecs_in_vtx_in_calo)
A vector of ic::Track::id() values for electrons compatible with the jet both at the vertex and the c...
Definition: JPTJet.hh:216
void set_muons_in_vtx_out_calo(std::vector< std::size_t > const &muons_in_vtx_out_calo)
A vector of ic::Track::id() values for muons compatible with the jet at the vertex but not at the cal...
Definition: JPTJet.hh:204
std::vector< std::size_t > const & elecs_in_vtx_in_calo() const
A vector of ic::Track::id() values for electrons compatible with the jet both at the vertex and the c...
Definition: JPTJet.hh:101
std::vector< std::size_t > constituent_tracks() const
A vector of ic::Track::id() that refers to the complete set of associated tracks. ...
Definition: JPTJet.cc:21
void set_muons_out_vtx_in_calo(std::vector< std::size_t > const &muons_out_vtx_in_calo)
A vector of ic::Track::id() values for muons compatible with the jet at the calorimeter but not at th...
Definition: JPTJet.hh:210
std::vector< std::size_t > const & elecs_out_vtx_in_calo() const
A vector of ic::Track::id() values for electrons compatible with the jet at the calorimeter but not a...
Definition: JPTJet.hh:113
void set_charged_had_energy(float const &charged_had_energy)
Charged hadron energy.
Definition: JPTJet.hh:170
float charged_em_energy_frac() const
Charged EM fraction of the total energy.
Definition: JPTJet.hh:35
std::vector< std::size_t > const & muons_in_vtx_in_calo() const
A vector of ic::Track::id() values for muons compatible with the jet both at the vertex and the calor...
Definition: JPTJet.hh:83
std::vector< std::size_t > const & muons_in_vtx_out_calo() const
A vector of ic::Track::id() values for muons compatible with the jet at the vertex but not at the cal...
Definition: JPTJet.hh:89
void set_pions_out_vtx_in_calo(std::vector< std::size_t > const &pions_out_vtx_in_calo)
A vector of ic::Track::id() values for pions compatible with the jet at the calorimeter but not at th...
Definition: JPTJet.hh:192
void set_beta_max(float const &beta_max)
The largest value of beta() obtained when it is evaluated for every vertex in the event...
Definition: JPTJet.hh:237
float charged_had_energy_frac() const
Charged hadron fraction of the total energy.
Definition: JPTJet.hh:51
void set_muon_multiplicity(int const &muon_multiplicity)
Number of muon constituents.
Definition: JPTJet.hh:150