3 |
|
|
4 |
|
#include "../interface/TRootParticle.h" |
5 |
|
|
6 |
– |
#include "Rtypes.h" |
7 |
– |
#include "TObject.h" |
8 |
– |
|
9 |
– |
#include <iostream> |
10 |
– |
#include <iomanip> |
11 |
– |
|
6 |
|
using namespace std; |
7 |
|
|
8 |
|
class TRootJet : public TRootParticle |
40 |
|
,cCorrection_(-9999.) |
41 |
|
,udsCorrection_(-9999.) |
42 |
|
,gCorrection_(-9999.) |
43 |
+ |
,genJetEnergy_(-9999.) |
44 |
+ |
,genJetIndex_(-9999) |
45 |
|
,genJet_(0) |
46 |
|
,isTopJet_(false) |
47 |
|
{;} |
77 |
|
,cCorrection_(jet.cCorrection_) |
78 |
|
,udsCorrection_(jet.udsCorrection_) |
79 |
|
,gCorrection_(jet.gCorrection_) |
80 |
+ |
,genJetEnergy_(jet.genJetEnergy_) |
81 |
+ |
,genJetIndex_(jet.genJetIndex_) |
82 |
|
,genJet_(jet.genJet_) |
83 |
|
,isTopJet_(jet.isTopJet_) |
84 |
|
{;} |
114 |
|
,cCorrection_(-9999.) |
115 |
|
,udsCorrection_(-9999.) |
116 |
|
,gCorrection_(-9999.) |
117 |
+ |
,genJetEnergy_(-9999.) |
118 |
+ |
,genJetIndex_(-9999) |
119 |
|
,genJet_(0) |
120 |
|
,isTopJet_(false) |
121 |
|
{;} |
151 |
|
,cCorrection_(-9999.) |
152 |
|
,udsCorrection_(-9999.) |
153 |
|
,gCorrection_(-9999.) |
154 |
+ |
,genJetEnergy_(-9999.) |
155 |
+ |
,genJetIndex_(-9999) |
156 |
|
,genJet_(0) |
157 |
|
,isTopJet_(false) |
158 |
|
{;} |
188 |
|
,cCorrection_(-9999.) |
189 |
|
,udsCorrection_(-9999.) |
190 |
|
,gCorrection_(-9999.) |
191 |
+ |
,genJetEnergy_(-9999.) |
192 |
+ |
,genJetIndex_(-9999) |
193 |
|
,genJet_(0) |
194 |
|
,isTopJet_(false) |
195 |
|
{;} |
225 |
|
,cCorrection_(-9999.) |
226 |
|
,udsCorrection_(-9999.) |
227 |
|
,gCorrection_(-9999.) |
228 |
+ |
,genJetEnergy_(-9999.) |
229 |
+ |
,genJetIndex_(-9999) |
230 |
|
,genJet_(0) |
231 |
|
,isTopJet_(false) |
232 |
|
{;} |
262 |
|
,cCorrection_(-9999.) |
263 |
|
,udsCorrection_(-9999.) |
264 |
|
,gCorrection_(-9999.) |
265 |
+ |
,genJetEnergy_(-9999.) |
266 |
+ |
,genJetIndex_(-9999) |
267 |
|
,genJet_(0) |
268 |
|
,isTopJet_(false) |
269 |
|
{;} |
300 |
|
Float_t cCorrection() const { return cCorrection_; } |
301 |
|
Float_t udsCorrection() const { return udsCorrection_; } |
302 |
|
Float_t gCorrection() const { return gCorrection_; } |
303 |
< |
//TObject* genParton() const { return genParton_.GetObject(); } |
304 |
< |
TObject* genJet() const { return genJet_.GetObject(); } |
303 |
> |
Double_t genJetEnergy() const { return genJetEnergy_; } |
304 |
> |
Int_t genJetIndex() const { return genJetIndex_; } |
305 |
> |
TRootParticle* genParton() const { return genParticle(); } |
306 |
> |
TRootParticle* genJet() const { return (TRootParticle*) genJet_.GetObject() ;} |
307 |
|
Bool_t isTopJet() const { return isTopJet_; } |
308 |
|
|
309 |
|
virtual TString typeName() const { return "TRootJet"; } |
338 |
|
void setCCorrection(Float_t cCorrection) { cCorrection_ = cCorrection; } |
339 |
|
void setUDSCorrection(Float_t udsCorrection) { udsCorrection_ = udsCorrection; } |
340 |
|
void setGCorrection(Float_t gCorrection) { gCorrection_ = gCorrection; } |
341 |
+ |
void setGenJetEnergy(Double_t genJetEnergy) { genJetEnergy_ = genJetEnergy; } |
342 |
+ |
void setGenJetIndex(Int_t genJetIndex) { genJetIndex_ = genJetIndex; } |
343 |
|
//void setGenParton(TObject* genParton) { genParton_ = genParton; } |
344 |
|
void setGenJet(TObject* genJet) { genJet_ = genJet; } |
345 |
|
void setIsTopJet(Bool_t isTopJet) { isTopJet_ = isTopJet; } |
353 |
|
|
354 |
|
private: |
355 |
|
|
356 |
+ |
|
357 |
|
// Variables from reco::Jet |
358 |
|
Int_t jetType_; // 0 = Unknown ; 1 = CaloJet ; 2 = PFJet |
359 |
|
Int_t nConstituents_; // Number of constituents of the jet (calotowers for CaloJet / PFParticles for PFJet) |
370 |
|
Float_t dR05EnergyFraction_; // Fraction of the jet energy in a DeltaR=0.1 cone |
371 |
|
Float_t ecalEnergyFraction_; // ECAL Energy Fraction |
372 |
|
Float_t hcalEnergyFraction_; // HCAL Energy Fraction |
373 |
< |
Float_t chargedEnergyFraction_; // Charged Energy Fraction - Only available for reco::PFJet |
373 |
> |
Float_t chargedEnergyFraction_; // Charged Energy Fraction - Only available for reco::PFJet |
374 |
|
|
375 |
|
|
376 |
|
// Variables from pat::Jet |
381 |
|
Float_t chargedBroadnessDR04_; // charged energy in a cone DR=0.4 / jet charged energy |
382 |
|
Float_t chargedBroadnessDR05_; // charged energy in a cone DR=0.5 / jet charged energy |
383 |
|
Float_t btag_trackCountingHighEff_; // b-tagging ; Track counting High Efficiency |
384 |
< |
Float_t btag_trackCountingHighPur_; // b-tagging ; Track counting High Purity |
384 |
> |
Float_t btag_trackCountingHighPur_; // b-tagging ; Track counting High Purity |
385 |
|
Float_t btag_jetProbability_; // b-tagging ; Jet probability |
386 |
|
Float_t bCorrection_; // correction factor for b hypothesis |
387 |
|
Float_t cCorrection_; // correction factor for c hypothesis |
388 |
|
Float_t udsCorrection_; // correction factor for uds hypothesis |
389 |
|
Float_t gCorrection_; // correction factor for gluon hypothesis |
390 |
|
|
391 |
< |
TRef genJet_; |
392 |
< |
|
393 |
< |
Bool_t isTopJet_; // Is parton matched to the jet a decay product of the top quark ? |
391 |
> |
Double_t genJetEnergy_; // energy of matched genJet |
392 |
> |
Int_t genJetIndex_; // index of matched genJet in genJets TCloneArray |
393 |
> |
TRef genJet_; // reference to matched genJet (kept in genJets branch) |
394 |
> |
|
395 |
> |
Bool_t isTopJet_; // Is parton matched to the jet a decay product of the top quark ? |
396 |
|
|
397 |
< |
ClassDef (TRootJet,1); |
397 |
> |
ClassDef (TRootJet,2); |
398 |
|
}; |
399 |
|
|
400 |
|
#endif |