I think I’ve found a bug when plotting strings in a tree using the ‘same’ drawing option. I’ve attached a short macro reproducing the problem.
I create a small tree that has a TObjString and a float parameter. The TObjString only takes one of four values {case1, case2, case3, case4}.
I histogram the TObjString (using the Draw command with .String() )
Next I overlay a second histogram of the same parameter (using the “same” option) but with a cut on my float parameter.
All bin contents should be smaller after the application of the cut, but this is not what I see (the second histogram is colored red).
I believe this is because when I redraw the histogram, root assigns new bin ids to each type of string, and does not respect the existing histogram in the pad.
I took the root svn trunk from a few weeks ago, the revision ID is 31880. Sorry for not testing on a released version - I needed the trunk as it has a bug fix I needed