You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When running ValidateDatacards.py datacard.txt, I get:
*******************************************************************************
Context: Function ch::GetClonedTH1 at
/afs/cern.ch/work/r/rymuelle/public/nanoAODzPrime/higgscombine/CMSSW_10_2_13/src/CombineHarvester/CombineTools/src/TFileIO.cc:24
Problem: TH1 SR1-sys_0_nominal-0 not found in 2016/2016_shapes_df_input.root
*******************************************************************************
Please report issues at
https://github.com/cms-analysis/CombineHarvester/issues
*******************************************************************************
However, the datacard in question does not require "SR1-sys_0_nominal-0", and I am unsure what sort of pattern ValidateDatacard is looking for that would cause it to look for this TH1.
This is a bug in the CH datacard parser. Because in text2workspace cards are accepted if the two process lines are swapped, we have some logic in the CH parser to try and guess which is which, by seeing in the entry is convertible to int or not. Unfortunately it tries 125 here, which is convertible, and it decides this must be the process index, and 0 on the line below must be the process name. Would be better if we assume the first line is the name in the case both are convertible to int. For now, I think you might be able to get it working by swapping these two lines in the card.
When running
ValidateDatacards.py datacard.txt
, I get:However, the datacard in question does not require "SR1-sys_0_nominal-0", and I am unsure what sort of pattern ValidateDatacard is looking for that would cause it to look for this TH1.
Datacard in question:
The text was updated successfully, but these errors were encountered: