Skip to content

Commit

Permalink
Still produce scan for Asymptopic calculator
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisburr committed May 3, 2017
1 parent 78a4214 commit cd1a9d2
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/HypoTestInvTool.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -530,11 +530,7 @@ namespace RooStats
if(options.CalculatorType == 1)
typeName = "Hybrid";
else if(options.CalculatorType == 2 || options.CalculatorType == 3)
{
typeName = "Asymptotic";
Warning("HypoTestInvTool::PlotResults", "Cannot plot this CalculatorType: %s (%d)", typeName.c_str(), options.CalculatorType);
return;
}
typeName = "Asymptotic" + std::to_string(options.CalculatorType);
else
Warning("HypoTestInvTool::PlotResults", "Not sure what to do with CalculatorType %d", options.CalculatorType);
std::string resultName = r.GetName();
Expand All @@ -546,6 +542,11 @@ namespace RooStats
c1.SetLogy(true);
plot.Draw("CLb 2CL"); // plot all and Clb
c1.SaveAs(((std::string)c1.GetName()+".root").c_str());
if(options.CalculatorType == 2 || options.CalculatorType == 3)
{
Warning("HypoTestInvTool::PlotResults", "Cannot plot test statistics for this CalculatorType: %s (%d)", typeName.c_str(), options.CalculatorType);
return;
}
const int nEntries = r.ArraySize();
TCanvas c2("Test_Stat_Plots");
if(nEntries > 1)
Expand All @@ -564,4 +565,3 @@ namespace RooStats
c2.SaveAs(((std::string)c2.GetName()+".root").c_str());
}
} // end namespace RooStats

0 comments on commit cd1a9d2

Please sign in to comment.