47 |
|
,udsCorrection_(-9999.) |
48 |
|
,gCorrection_(-9999.) |
49 |
|
,genJet_(0) |
50 |
+ |
,isTopJet_(false) |
51 |
|
{;} |
52 |
|
|
53 |
|
TRootJet(const TRootJet& jet) : |
82 |
|
,udsCorrection_(jet.udsCorrection_) |
83 |
|
,gCorrection_(jet.gCorrection_) |
84 |
|
,genJet_(jet.genJet_) |
85 |
+ |
,isTopJet_(jet.isTopJet_) |
86 |
|
{;} |
87 |
|
|
88 |
|
TRootJet(Double_t px, Double_t py, Double_t pz, Double_t e) : |
117 |
|
,udsCorrection_(-9999.) |
118 |
|
,gCorrection_(-9999.) |
119 |
|
,genJet_(0) |
120 |
+ |
,isTopJet_(false) |
121 |
|
{;} |
122 |
|
|
123 |
|
TRootJet(Double_t px, Double_t py, Double_t pz, Double_t e, Double_t vtx_x, Double_t vtx_y, Double_t vtx_z) : |
152 |
|
,udsCorrection_(-9999.) |
153 |
|
,gCorrection_(-9999.) |
154 |
|
,genJet_(0) |
155 |
+ |
,isTopJet_(false) |
156 |
|
{;} |
157 |
|
|
158 |
|
TRootJet(Double_t px, Double_t py, Double_t pz, Double_t e, Double_t vtx_x, Double_t vtx_y, Double_t vtx_z, Int_t type, Float_t charge) : |
187 |
|
,udsCorrection_(-9999.) |
188 |
|
,gCorrection_(-9999.) |
189 |
|
,genJet_(0) |
190 |
+ |
,isTopJet_(false) |
191 |
|
{;} |
192 |
|
|
193 |
|
TRootJet(const TLorentzVector &momentum) : |
222 |
|
,udsCorrection_(-9999.) |
223 |
|
,gCorrection_(-9999.) |
224 |
|
,genJet_(0) |
225 |
+ |
,isTopJet_(false) |
226 |
|
{;} |
227 |
|
|
228 |
|
TRootJet(const TLorentzVector &momentum, const TVector3 &vertex, Int_t type, Float_t charge) : |
257 |
|
,udsCorrection_(-9999.) |
258 |
|
,gCorrection_(-9999.) |
259 |
|
,genJet_(0) |
260 |
+ |
,isTopJet_(false) |
261 |
|
{;} |
262 |
|
|
263 |
|
~TRootJet() {;} |
294 |
|
Float_t gCorrection() const { return gCorrection_; } |
295 |
|
//TObject* genParton() const { return genParton_.GetObject(); } |
296 |
|
TObject* genJet() const { return genJet_.GetObject(); } |
297 |
+ |
Bool_t isTopJet() const { return isTopJet_; } |
298 |
|
|
299 |
|
virtual TString typeName() const { return "TRootJet"; } |
300 |
|
|
330 |
|
void setGCorrection(Float_t gCorrection) { gCorrection_ = gCorrection; } |
331 |
|
//void setGenParton(TObject* genParton) { genParton_ = genParton; } |
332 |
|
void setGenJet(TObject* genJet) { genJet_ = genJet; } |
333 |
< |
|
333 |
> |
void setIsTopJet(Bool_t isTopJet) { isTopJet_ = isTopJet; } |
334 |
|
|
335 |
|
friend std::ostream& operator<< (std::ostream& stream, const TRootJet& jet) { |
336 |
|
stream << "TRootJet - Charge=" << setw(2) << jet.charge() << " (Et,eta,phi)=("<< setw(10) << jet.Et() <<","<< setw(10) << jet.Eta() <<","<< setw(10) << jet.Phi() << ")" |
376 |
|
Float_t gCorrection_; // correction factor for gluon hypothesis |
377 |
|
|
378 |
|
TRef genJet_; |
379 |
< |
|
379 |
> |
|
380 |
> |
Bool_t isTopJet_; // Is parton matched to the jet a decay product of the top quark ? |
381 |
> |
|
382 |
|
ClassDef (TRootJet,1); |
383 |
|
}; |
384 |
|
|