Dear rooters,
The attached root file contains a RooDataSet with 100 entries. If I try to use the reduce method to produce a smaller RooDataSet, it returns an empty one incorrectly. The printout below shows that there are thetaL values greater than 1.5, but my dataset still has zero entries. If I instead call the underlying tree and Draw the same cut, I get a correct histogram. I’m guessing there is some Root magic missing when I create these files, but I’ve no idea what that is. I’m using root 5.22.00, but I’ve also tried 5.18.00.
Thanks,
Will
root [2] durhamData->Print(“V”);
Dataset durham (durham)
Contains 100 entries
Observables: RooArgSet::Dataset Variables: (Owning contents)
1) thetaL = 1.4557 C L(0 - 3.14159) “#theta_{l}”
root [3] durhamData->Scan(“thetaL”);
- Row * thetaL *
-
0 * 1.7318720 *
-
1 * 1.7737401 *
-
2 * 0.7109605 *
root [5] durhamData->reduce(“thetaL > 1.5”)->Print(“V”);
Dataset durham (durham)
Contains 0 entries
Observables: RooArgSet::Dataset Variables: (Owning contents)
1) thetaL = 1.8213 C L(0 - 3.14159) “#theta_{l}”
root [6] durhamData->tree().Draw(“thetaL”,“thetaL > 1.5”);
mc_data_mb_signal.root (21.9 KB)