46 |
|
,cCorrection_(-9999.) |
47 |
|
,udsCorrection_(-9999.) |
48 |
|
,gCorrection_(-9999.) |
49 |
< |
,genParton_() |
50 |
< |
,momentumMCParton_() |
51 |
< |
,vertexMCParton_() |
52 |
< |
,pdgIdMCParton_(-9999) |
53 |
< |
,momentumMCJet_() |
54 |
< |
,vertexMCJet_() |
55 |
< |
,pdgIdMCJet_(-9999) |
49 |
> |
,genJet_(0) |
50 |
> |
,isTopJet_(false) |
51 |
|
{;} |
52 |
|
|
53 |
|
TRootJet(const TRootJet& jet) : |
81 |
|
,cCorrection_(jet.cCorrection_) |
82 |
|
,udsCorrection_(jet.udsCorrection_) |
83 |
|
,gCorrection_(jet.gCorrection_) |
84 |
< |
,genParton_(jet.genParton_) |
85 |
< |
,momentumMCParton_(jet.momentumMCParton_) |
91 |
< |
,vertexMCParton_(jet.vertexMCParton_) |
92 |
< |
,pdgIdMCParton_(-jet.pdgIdMCParton_) |
93 |
< |
,momentumMCJet_(jet.momentumMCJet_) |
94 |
< |
,vertexMCJet_(jet.vertexMCJet_) |
95 |
< |
,pdgIdMCJet_(-jet.pdgIdMCJet_) |
84 |
> |
,genJet_(jet.genJet_) |
85 |
> |
,isTopJet_(jet.isTopJet_) |
86 |
|
{;} |
87 |
|
|
88 |
|
TRootJet(Double_t px, Double_t py, Double_t pz, Double_t e) : |
116 |
|
,cCorrection_(-9999.) |
117 |
|
,udsCorrection_(-9999.) |
118 |
|
,gCorrection_(-9999.) |
119 |
< |
,genParton_() |
120 |
< |
,momentumMCParton_() |
131 |
< |
,vertexMCParton_() |
132 |
< |
,pdgIdMCParton_(-9999) |
133 |
< |
,momentumMCJet_() |
134 |
< |
,vertexMCJet_() |
135 |
< |
,pdgIdMCJet_(-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) : |
151 |
|
,cCorrection_(-9999.) |
152 |
|
,udsCorrection_(-9999.) |
153 |
|
,gCorrection_(-9999.) |
154 |
< |
,genParton_() |
155 |
< |
,momentumMCParton_() |
171 |
< |
,vertexMCParton_() |
172 |
< |
,pdgIdMCParton_(-9999) |
173 |
< |
,momentumMCJet_() |
174 |
< |
,vertexMCJet_() |
175 |
< |
,pdgIdMCJet_(-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) : |
186 |
|
,cCorrection_(-9999.) |
187 |
|
,udsCorrection_(-9999.) |
188 |
|
,gCorrection_(-9999.) |
189 |
< |
,genParton_() |
190 |
< |
,momentumMCParton_() |
211 |
< |
,vertexMCParton_() |
212 |
< |
,pdgIdMCParton_(-9999) |
213 |
< |
,momentumMCJet_() |
214 |
< |
,vertexMCJet_() |
215 |
< |
,pdgIdMCJet_(-9999) |
189 |
> |
,genJet_(0) |
190 |
> |
,isTopJet_(false) |
191 |
|
{;} |
192 |
|
|
193 |
|
TRootJet(const TLorentzVector &momentum) : |
221 |
|
,cCorrection_(-9999.) |
222 |
|
,udsCorrection_(-9999.) |
223 |
|
,gCorrection_(-9999.) |
224 |
< |
,genParton_() |
225 |
< |
,momentumMCParton_() |
251 |
< |
,vertexMCParton_() |
252 |
< |
,pdgIdMCParton_(-9999) |
253 |
< |
,momentumMCJet_() |
254 |
< |
,vertexMCJet_() |
255 |
< |
,pdgIdMCJet_(-9999) |
224 |
> |
,genJet_(0) |
225 |
> |
,isTopJet_(false) |
226 |
|
{;} |
227 |
|
|
228 |
|
TRootJet(const TLorentzVector &momentum, const TVector3 &vertex, Int_t type, Float_t charge) : |
256 |
|
,cCorrection_(-9999.) |
257 |
|
,udsCorrection_(-9999.) |
258 |
|
,gCorrection_(-9999.) |
259 |
< |
,genParton_() |
260 |
< |
,momentumMCParton_() |
291 |
< |
,vertexMCParton_() |
292 |
< |
,pdgIdMCParton_(-9999) |
293 |
< |
,momentumMCJet_() |
294 |
< |
,vertexMCJet_() |
295 |
< |
,pdgIdMCJet_(-9999) |
259 |
> |
,genJet_(0) |
260 |
> |
,isTopJet_(false) |
261 |
|
{;} |
262 |
|
|
263 |
|
~TRootJet() {;} |
292 |
|
Float_t cCorrection() const { return cCorrection_; } |
293 |
|
Float_t udsCorrection() const { return udsCorrection_; } |
294 |
|
Float_t gCorrection() const { return gCorrection_; } |
295 |
< |
TObject* genParton() const { return genParton_.GetObject(); } |
296 |
< |
TLorentzVector momentumMCParton() const { return momentumMCParton_; } |
297 |
< |
TVector3 vertexMCParton() const { return vertexMCParton_; } |
298 |
< |
Int_t pdgIdMCParton() const { return pdgIdMCParton_; } |
299 |
< |
TLorentzVector momentumMCJet() const { return momentumMCJet_; } |
335 |
< |
TVector3 vertexMCJet() const { return vertexMCJet_; } |
336 |
< |
Int_t pdgIdMCJet() const { return pdgIdMCJet_; } |
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 |
|
|
301 |
|
|
302 |
|
void setJetType(Int_t jetType) { jetType_ = jetType; } |
328 |
|
void setCCorrection(Float_t cCorrection) { cCorrection_ = cCorrection; } |
329 |
|
void setUDSCorrection(Float_t udsCorrection) { udsCorrection_ = udsCorrection; } |
330 |
|
void setGCorrection(Float_t gCorrection) { gCorrection_ = gCorrection; } |
331 |
< |
void setGenParton(TObject* genParton) { genParton_ = genParton; } |
332 |
< |
void setMomentumMCParton(TLorentzVector momentumMCParton) { momentumMCParton_ = momentumMCParton; } |
333 |
< |
void setVertexMCParton(TVector3 vertexMCParton) { vertexMCParton_ = vertexMCParton; } |
371 |
< |
void setPdgIdMCParton(Int_t pdgIdMCParton) { pdgIdMCParton_ = pdgIdMCParton; } |
372 |
< |
void setMomentumMCJet(TLorentzVector momentumMCJet) { momentumMCJet_ = momentumMCJet; } |
373 |
< |
void setVertexMCJet(TVector3 vertexMCJet) { vertexMCJet_ = vertexMCJet; } |
374 |
< |
void setPdgIdMCJet(Int_t pdgIdMCJet) { pdgIdMCJet_ = pdgIdMCJet; } |
375 |
< |
|
376 |
< |
|
331 |
> |
//void setGenParton(TObject* genParton) { genParton_ = genParton; } |
332 |
> |
void setGenJet(TObject* genJet) { genJet_ = genJet; } |
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() << ")" |
375 |
|
Float_t udsCorrection_; // correction factor for uds hypothesis |
376 |
|
Float_t gCorrection_; // correction factor for gluon hypothesis |
377 |
|
|
378 |
< |
|
379 |
< |
// Matched genParticle |
380 |
< |
TRef genParton_; |
381 |
< |
TLorentzVector momentumMCParton_; |
425 |
< |
TVector3 vertexMCParton_; |
426 |
< |
Int_t pdgIdMCParton_; |
427 |
< |
TLorentzVector momentumMCJet_; |
428 |
< |
TVector3 vertexMCJet_; |
429 |
< |
Int_t pdgIdMCJet_; |
430 |
< |
|
431 |
< |
|
378 |
> |
TRef genJet_; |
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 |
|
|