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

Constructing a RooDataSet from TTree with cuts causes warnings

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Low
    • Resolution: Fixed
    • Affects Version/s: 6.20/00, 6.20/02, 6.20/04
    • Fix Version/s: 6.22/00, 6.20/06
    • Component/s: RooFit/RooStats
    • Labels:
      None
    • Environment:

      Ubuntu 18.04

      Debian 10

      Description

      Since ROOT 6.20.00 (IIRC), when constructing a RooDataSet from TTree with cuts like this:

      RooDataSet dataset ("dataset", "dataset", tree, argset, cuts);

      when not all variables from argset are mentioned in cuts, a warning "The formula ... claims to use the variables (...) but only (...) seem to be in use" is emitted.

      I'm very pro-explicit warnings, however, in this case, the formula is used "behind the scenes" and the user has no control over which variables are given to the formula. I suggest you look into preventing this warning so it doesn't pollute logs and hide real problems.

        Attachments

          Activity

            People

            • Assignee:
              shageboe Stephan Hageboeck
              Reporter:
              84726ed3dd6c5b40360d Daniel Cervenkov
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: