Uploaded image for project: 'ROOT'
  1. ROOT
  2. ROOT-10413

RooDataSet Import Tree Branch with long name

    XMLWordPrintable

    Details

      Description

      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.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                shageboe Stephan Hageboeck
                Reporter:
                mbiros Marek Biros
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: