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

[DF] RDataFrame Snapshot throws for branches with branch name!=variable name

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open (View Workflow)
    • Priority: High
    • Resolution: Unresolved
    • Affects Version/s: 6.14/00
    • Fix Version/s: None
    • Component/s: RDataFrame
    • Labels:
      None
    • Environment:

      CentOS Linux release 7.5.1804 (Core) (lxplus7)

    • Development:

      Description

      Hello,

      The code

      auto fileName = "HFntuple.root";
       auto treeName = "HFntupleNONE";
       
      ROOT::RDataFrame d(treeName, fileName );
       
      d.Snapshot("HFntupleNONE", "out.root");
      

      results in

      terminate called after throwing an instance of 'std::runtime_error'
       what(): Unknown column: btagSFCentral
      

      The "unknown columns" have the property that the branch name is not the same as the variable name, e.g.

      *Br 32 :btagSFCentral : btagSFCent/D *
      

      Many thanks for your help. I attach an example root file here.

      Cheers,

      Kerim

        Attachments

          Activity

            People

            • Assignee:
              eguiraud Enrico Guiraud
              Reporter:
              ksuruliz Kerim Suruliz (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Actual Start: