Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions CombineTools/src/CombineHarvester_Datacards.cc
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
#include "TH1.h"
#include "RooRealVar.h"
#include "RooCategory.h"
#include <exception>
#include "CombineHarvester/CombineTools/interface/Observation.h"
#include "CombineHarvester/CombineTools/interface/Process.h"
#include "CombineHarvester/CombineTools/interface/Systematic.h"
Expand Down Expand Up @@ -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])) {
Expand Down