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 |
|
{;} |
51 |
|
|
52 |
|
TRootJet(const TRootJet& jet) : |
80 |
|
,cCorrection_(jet.cCorrection_) |
81 |
|
,udsCorrection_(jet.udsCorrection_) |
82 |
|
,gCorrection_(jet.gCorrection_) |
83 |
< |
,genParton_(jet.genParton_) |
90 |
< |
,momentumMCParton_(jet.momentumMCParton_) |
91 |
< |
,vertexMCParton_(jet.vertexMCParton_) |
92 |
< |
,pdgIdMCParton_(-jet.pdgIdMCParton_) |
93 |
< |
,momentumMCJet_(jet.momentumMCJet_) |
94 |
< |
,vertexMCJet_(jet.vertexMCJet_) |
95 |
< |
,pdgIdMCJet_(-jet.pdgIdMCJet_) |
83 |
> |
,genJet_(jet.genJet_) |
84 |
|
{;} |
85 |
|
|
86 |
|
TRootJet(Double_t px, Double_t py, Double_t pz, Double_t e) : |
114 |
|
,cCorrection_(-9999.) |
115 |
|
,udsCorrection_(-9999.) |
116 |
|
,gCorrection_(-9999.) |
117 |
< |
,genParton_() |
130 |
< |
,momentumMCParton_() |
131 |
< |
,vertexMCParton_() |
132 |
< |
,pdgIdMCParton_(-9999) |
133 |
< |
,momentumMCJet_() |
134 |
< |
,vertexMCJet_() |
135 |
< |
,pdgIdMCJet_(-9999) |
117 |
> |
,genJet_(0) |
118 |
|
{;} |
119 |
|
|
120 |
|
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) : |
148 |
|
,cCorrection_(-9999.) |
149 |
|
,udsCorrection_(-9999.) |
150 |
|
,gCorrection_(-9999.) |
151 |
< |
,genParton_() |
170 |
< |
,momentumMCParton_() |
171 |
< |
,vertexMCParton_() |
172 |
< |
,pdgIdMCParton_(-9999) |
173 |
< |
,momentumMCJet_() |
174 |
< |
,vertexMCJet_() |
175 |
< |
,pdgIdMCJet_(-9999) |
151 |
> |
,genJet_(0) |
152 |
|
{;} |
153 |
|
|
154 |
|
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) : |
182 |
|
,cCorrection_(-9999.) |
183 |
|
,udsCorrection_(-9999.) |
184 |
|
,gCorrection_(-9999.) |
185 |
< |
,genParton_() |
210 |
< |
,momentumMCParton_() |
211 |
< |
,vertexMCParton_() |
212 |
< |
,pdgIdMCParton_(-9999) |
213 |
< |
,momentumMCJet_() |
214 |
< |
,vertexMCJet_() |
215 |
< |
,pdgIdMCJet_(-9999) |
185 |
> |
,genJet_(0) |
186 |
|
{;} |
187 |
|
|
188 |
|
TRootJet(const TLorentzVector &momentum) : |
216 |
|
,cCorrection_(-9999.) |
217 |
|
,udsCorrection_(-9999.) |
218 |
|
,gCorrection_(-9999.) |
219 |
< |
,genParton_() |
250 |
< |
,momentumMCParton_() |
251 |
< |
,vertexMCParton_() |
252 |
< |
,pdgIdMCParton_(-9999) |
253 |
< |
,momentumMCJet_() |
254 |
< |
,vertexMCJet_() |
255 |
< |
,pdgIdMCJet_(-9999) |
219 |
> |
,genJet_(0) |
220 |
|
{;} |
221 |
|
|
222 |
|
TRootJet(const TLorentzVector &momentum, const TVector3 &vertex, Int_t type, Float_t charge) : |
250 |
|
,cCorrection_(-9999.) |
251 |
|
,udsCorrection_(-9999.) |
252 |
|
,gCorrection_(-9999.) |
253 |
< |
,genParton_() |
290 |
< |
,momentumMCParton_() |
291 |
< |
,vertexMCParton_() |
292 |
< |
,pdgIdMCParton_(-9999) |
293 |
< |
,momentumMCJet_() |
294 |
< |
,vertexMCJet_() |
295 |
< |
,pdgIdMCJet_(-9999) |
253 |
> |
,genJet_(0) |
254 |
|
{;} |
255 |
|
|
256 |
|
~TRootJet() {;} |
285 |
|
Float_t cCorrection() const { return cCorrection_; } |
286 |
|
Float_t udsCorrection() const { return udsCorrection_; } |
287 |
|
Float_t gCorrection() const { return gCorrection_; } |
288 |
< |
TObject* genParton() const { return genParton_.GetObject(); } |
289 |
< |
TLorentzVector momentumMCParton() const { return momentumMCParton_; } |
290 |
< |
TVector3 vertexMCParton() const { return vertexMCParton_; } |
291 |
< |
Int_t pdgIdMCParton() const { return pdgIdMCParton_; } |
334 |
< |
TLorentzVector momentumMCJet() const { return momentumMCJet_; } |
335 |
< |
TVector3 vertexMCJet() const { return vertexMCJet_; } |
336 |
< |
Int_t pdgIdMCJet() const { return pdgIdMCJet_; } |
288 |
> |
//TObject* genParton() const { return genParton_.GetObject(); } |
289 |
> |
TObject* genJet() const { return genJet_.GetObject(); } |
290 |
> |
|
291 |
> |
virtual TString typeName() const { return "TRootJet"; } |
292 |
|
|
293 |
|
|
294 |
|
void setJetType(Int_t jetType) { jetType_ = jetType; } |
320 |
|
void setCCorrection(Float_t cCorrection) { cCorrection_ = cCorrection; } |
321 |
|
void setUDSCorrection(Float_t udsCorrection) { udsCorrection_ = udsCorrection; } |
322 |
|
void setGCorrection(Float_t gCorrection) { gCorrection_ = gCorrection; } |
323 |
< |
void setGenParton(TObject* genParton) { genParton_ = genParton; } |
324 |
< |
void setMomentumMCParton(TLorentzVector momentumMCParton) { momentumMCParton_ = momentumMCParton; } |
370 |
< |
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 |
< |
|
323 |
> |
//void setGenParton(TObject* genParton) { genParton_ = genParton; } |
324 |
> |
void setGenJet(TObject* genJet) { genJet_ = genJet; } |
325 |
|
|
326 |
|
|
327 |
|
friend std::ostream& operator<< (std::ostream& stream, const TRootJet& jet) { |
367 |
|
Float_t udsCorrection_; // correction factor for uds hypothesis |
368 |
|
Float_t gCorrection_; // correction factor for gluon hypothesis |
369 |
|
|
370 |
< |
|
422 |
< |
// Matched genParticle |
423 |
< |
TRef genParton_; |
424 |
< |
TLorentzVector momentumMCParton_; |
425 |
< |
TVector3 vertexMCParton_; |
426 |
< |
Int_t pdgIdMCParton_; |
427 |
< |
TLorentzVector momentumMCJet_; |
428 |
< |
TVector3 vertexMCJet_; |
429 |
< |
Int_t pdgIdMCJet_; |
430 |
< |
|
370 |
> |
TRef genJet_; |
371 |
|
|
372 |
|
ClassDef (TRootJet,1); |
373 |
|
}; |