-
Type:
Bug
-
Status: Closed (View Workflow)
-
Priority:
Medium
-
Resolution: Fixed
-
Affects Version/s: 6.18/04
-
Component/s: RooFit/RooStats
-
Labels:None
-
Environment:
lxplus
Dear ROOT Developers,
I had hard times with importing TTreeBranch with longer name until I and my supervisor discovered that there is a bug. I am attaching example macro:
TTree t("t", "t"); |
double x, y; |
t.Branch("x", &x, "x/D"); |
t.Branch("signal_Extra_helicityCosThetaL_Extra_helicityCosThetaK_Extra_helicityAnglePhi", |
&y, "signal_Extra_helicityCosThetaL_Extra_helicityCosThetaK_Extra_helicityAnglePhi/D"); |
x = 0.2;
|
y = 0.3;
|
t.Fill();
|
RooRealVar xx("x", "x", 0, 2); |
RooRealVar yy("signal_Extra_helicityCosThetaL_Extra_helicityCosThetaK_Extra_helicityAnglePhi", |
"y", 0, 2); |
RooDataSet d("d", "d", &t, RooArgSet(xx, yy)); |
d.write(cout);
|
EXPECTED OUTPUT: 0.2 0.3
BUG OUTPUT: 0.2 1(always mean of range)
We have looked also to code of RooDataSet and found out that the problem is not in CloneTree(), but we did not find the origin of problem.
- duplicates
-
ROOT-9528 RooDataSet imports TTree branches incorrectly for long-named branches
-
- Closed
-