Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nuisance Edit Freeze #237

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
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