# PROOF TChain weighting Bug?

**URL:** <https://root-forum.cern.ch/t/proof-tchain-weighting-bug/12416>\
**Category:** ROOT\
**Created:** [May 12, 2011, 1:43pm UTC](https://root-forum.cern.ch/t/proof-tchain-weighting-bug/12416 "2011-05-12T13:43:52Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![gregork](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/g/b38774/32.png) [@gregork](https://root-forum.cern.ch/u/gregork)\
**Post date:** [May 12, 2011, 1:43pm UTC](https://root-forum.cern.ch/t/proof-tchain-weighting-bug/12416/1 "2011-05-12T13:43:52Z")

</div>

Dear fellow ROOTers,

when I tried porting a plotting script to PROOF I found a problem with weighted TChains - TChain.Draw() does not seem to care for the weight when PROOF is enabled.

I attached you a little example that should produce two plots - out-1.pdf (correct, without proof) and out-2.pdf (faulty, using PROOF). I tested this using ROOT version 5.26).

Suggestions how to resolve it, or if it is a genuine bug would be most welcome.

Thank You,  
Cheers,  
Gregor

[test\_tchain.py](https://root-forum.cern.ch/uploads/default/original/2X/b/b2dcc8778037bd3daef313fcb34476b0e6f9812a.py) (1.15 KB)

---

<div class="post-metadata">

**Author:** ![ganis](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/ganis/32/12484_2.png) [@ganis](https://root-forum.cern.ch/u/ganis)\
**Post date:** [May 12, 2011, 6:34pm UTC](https://root-forum.cern.ch/t/proof-tchain-weighting-bug/12416/2 "2011-05-12T18:34:29Z")

</div>

Hi,

Yes, it is a genuine bug. I should have just fix it in the trunk and 5-28-00-patches.  
But we are not fixing anymore older versions.  
If you compiled your own binaries I can provide a patch. Let me know.  
Thanks for reporting and sorry for the inconvenience.

G. Ganis

---

<div class="post-metadata">

**Author:** ![gregork](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/g/b38774/32.png) [@gregork](https://root-forum.cern.ch/u/gregork)\
**Post date:** [May 13, 2011, 8:15am UTC](https://root-forum.cern.ch/t/proof-tchain-weighting-bug/12416/3 "2011-05-13T08:15:47Z")

</div>

Hello,

thanks for the information! I will switch to the newer version.

Cheers,  
Gregor
