Skip to content

Column accumulator manager

Davide Valsecchi requested to merge github/fork/valsdav/column_accumulator into main

Added the possibility to export collections of columns for specific samples and categories from the category. A simple ColumnsManager has been added to handle the filling of the requested columns. The configuration work thanks to the ColOut object which stores the collection and requested branches to output.

 "columns": {
        "common": {
            "inclusive": [ ],
            
        },
        "bysample": {
            "ttHTobb":{
                "bycategory" : {
                    "semilep_LHE": [
                        ColOut("Parton",["pt","eta","phi", "pdgId", "provenance"]),
                        ColOut("PartonMatched",["pt","eta","phi", "pdgId", "provenance", "dRMatchedJet"] ),
                        ColOut("JetGood",["pt","eta","phi", "hadronFlavour", "btagDeepFlavB"]),
                        ColOut("JetGoodMatched",["pt","eta","phi", "hadronFlavour", "btagDeepFlavB","dRMatchedJet"]),
                    ]
            }
            }
        },
        
    }

Merge request reports