Customizable weights configuration by sample and category
We have now a way to configure the weights by sample and category.
Available weights are defined in the processor and identified with a name. A configuration is added to the config file with this format:
},
"weights": {
"common": {
"inclusive": [ "genWeight", "lumi", "XS", "pileup", "sf_mu_id_iso", "sf_ele_reco_id"],
"bycategory": {
"cat1": [ weights...]
}
},
"bysample": {
"ttHTobb": {
"inclusive" : [weights...],
"bycategory": {
"cat1": [ weights..]
}
}
}
},
Small improvements:
- Scaled also the "sumw" accumulator with the gen_weight_sum in the base processor postprocessing step.
The PR contains also some changes to loose the preselections needed for the parton matching studies.