cms-analysis / CombineHarvester

CMSSW package for the creation, editing and analysis of combine datacards and workspaces
cms-analysis.github.io/CombineHarvester/
15 stars 180 forks source link

handle setparameters for cats as well as vars #246

Closed kpedro88 closed 3 years ago

kpedro88 commented 3 years ago

In Combine, it's possible to set the values of both variables and categories. CombineHarvester did not support setting values for categories, leading to inconsistency and potentially failed commands.

Here, I copied the logic from https://github.com/cms-analysis/HiggsAnalysis-CombinedLimit/blob/f2f442e3390e1fddabd042b6ef5ae62d4c1981d9/src/utils.cc#L713 to support setting category values.