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

Leading underscore in branch name causes a crash

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Medium
    • Resolution: Fixed
    • Affects Version/s: 6.19/01
    • Fix Version/s: 6.20/00, 6.18/04
    • Component/s: None
    • Labels:
      None
    • Environment:

      Python3, Centos7

      Description

      The following code:

      auto df = ROOT::RDataFrame(10);
      auto df2 = df.Define("_nMu", "1");
      auto df3 = df2.Define("nLeptons", "_nMu");
      

      produces this error:

      terminate called after throwing an instance of 'std::runtime_error'
        what():  Failed to tokenize expression:
      _nMu
      

      It seems the error is related to the leading underscore of the _nMu branch: if the branch is named nMu, the error does not appear.

       

        Attachments

          Activity

            People

            • Assignee:
              axel Axel Naumann
              Reporter:
              etejedor Enric Tejedor Saavedra
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Actual End: