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

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

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • High
    • 6.26/00, 6.24/02
    • 6.14/00
    • RDataFrame
    • None
    • CentOS Linux release 7.5.1804 (Core) (lxplus7)

    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

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

            Dates

              Created:
              Updated:
              Resolved:
              Actual Start: