Skip to content

Commit

Permalink
Merge pull request cms-sw#85 from cms-analysis/master
Browse files Browse the repository at this point in the history
Merge changes from master into development branch
  • Loading branch information
gpetruc committed Jan 24, 2014
2 parents 89a5448 + a01ea65 commit 8d247d8
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion interface/Combine.h
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ class Combine {
std::string modelConfigName_, modelConfigNameB_;
bool validateModel_;
bool saveToys_;
float mass_;
double mass_;

// implementation-related variables
bool compiledExpr_;
Expand Down
4 changes: 2 additions & 2 deletions python/HiggsJPC.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,9 @@ def setPhysicsOptions(self,physOptions):
self.fqqFloating = True
self.muFloating = True
self.fqqRange = po.replace("fqqRange=","").split(",")
if len(self.mHRange) != 2:
if len(self.fqqRange) != 2:
raise RuntimeError, "fqq range definition requires two extrema"
elif float(self.mHRange[0]) >= float(self.mHRange[1]):
elif float(self.fqqRange[0]) >= float(self.fqqRange[1]):
raise RuntimeError, "Extrema for fqq range defined with inverterd order. Second must be larger the first"
if po == "muAsPOI":
print "Will consider the signal strength as a parameter of interest"
Expand Down
2 changes: 2 additions & 0 deletions src/Combine.cc
Original file line number Diff line number Diff line change
Expand Up @@ -310,6 +310,8 @@ void Combine::run(TString hlfFile, const std::string &dataset, double &limit, do
}
if (snapshotName_ != "") {
w->loadSnapshot(snapshotName_.c_str());
//make sure mass value used is really the one from the loaded snapshot
mass_ = MH->getVal();
}
} else {
hlf.reset(new RooStats::HLFactory("factory", fileToLoad));
Expand Down

0 comments on commit 8d247d8

Please sign in to comment.