From 1a73ca5b6e28fe631f39637ba92a7637878f714e Mon Sep 17 00:00:00 2001 From: Andrea Carlo Marini Date: Fri, 7 Feb 2020 17:40:24 +0100 Subject: [PATCH] adding parsing of nuisance edit freeze --- CombineTools/src/CombineHarvester_Datacards.cc | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/CombineTools/src/CombineHarvester_Datacards.cc b/CombineTools/src/CombineHarvester_Datacards.cc index 94d9b1f307f..32753389bf6 100644 --- a/CombineTools/src/CombineHarvester_Datacards.cc +++ b/CombineTools/src/CombineHarvester_Datacards.cc @@ -17,6 +17,7 @@ #include "TH1.h" #include "RooRealVar.h" #include "RooCategory.h" +#include #include "CombineHarvester/CombineTools/interface/Observation.h" #include "CombineHarvester/CombineTools/interface/Process.h" #include "CombineHarvester/CombineTools/interface/Systematic.h" @@ -398,6 +399,14 @@ int CombineHarvester::ParseDatacard(std::string const& filename, continue; } + if (start_nuisance_scan and words[i].size() >3 and + boost::iequals(words[i][0],"nuisance") and + boost::iequals(words[i][1],"edit") and + boost::iequals(words[i][2],"freeze") + ){ // are parameter created? -> will crash if parameter does not exist. + GetParameter(words[i][3])->set_frozen(true); + } + if (start_nuisance_scan && words[i].size() >= 4 && boost::iequals(words[i][1], "group")) { if (!groups.count(words[i][0])) {