Closed swertz closed 8 years ago
Hi,
It looks like the weights are maybe not applied in the second plot (histFactory).
I guess you changed the post since then, but the email I received points to that plot: https://cloud.githubusercontent.com/assets/8058274/10715980/f97d4a9a-7b28-11e5-8602-4be91e0bf702.png where one can see some negative entry that is apparently not present in the second plot.
Impossible to be sure from what I see, but that's something to investigate, I think, especially since the number of entries is the same.
Hi Christophe,
I changed the first plot to have the same binning as the one from histFactory (this makes the negative entries disappear). For the second plot, if you look around M=600 you can see a negative entry (and the y-axis range extends below zero), so it looks like weights are applied. Besides, this would not affect the fact that the first bins are not empty while they should be, would it?
What's weird is that the third, fourth and fifth non-empty bins of the TBrowser plot look very similar to the corresponding ones in the histFactory plot (even if the number of entries are not the same)...
That could be just luck: the absolute values are different.
Investigating...
I'm having something weird when using histFactory... I'm drawing the invariant mass of my first pair of leptons, asking the cut Mll > 20 to be satisfied.
When I draw this variable in a TBrowser, I get this result:![fromtbrowser2](https://cloud.githubusercontent.com/assets/8058274/10716049/50cff8cc-7b2b-11e5-8049-51c180b50bea.png)
But using histFactory I get this (note that the first bins are not empty as they should):![fromhistfactory](https://cloud.githubusercontent.com/assets/8058274/10715984/165d3210-7b29-11e5-8729-910c64d7af09.png)
You can check that the draw strings are the same on the top of the picture. The number of entries correspond, which is reassuring. Am I missing something here?