1 |
#ifndef GUARD_StandardHypoTestInvDemo_h
|
2 |
#define GUARD_StandardHypoTestInvDemo_h
|
3 |
|
4 |
|
5 |
#include "TFile.h"
|
6 |
#include "RooWorkspace.h"
|
7 |
#include "RooAbsPdf.h"
|
8 |
#include "RooRealVar.h"
|
9 |
#include "RooDataSet.h"
|
10 |
#include "RooStats/ModelConfig.h"
|
11 |
#include "TGraphErrors.h"
|
12 |
#include "TGraphAsymmErrors.h"
|
13 |
#include "TCanvas.h"
|
14 |
#include "TLine.h"
|
15 |
|
16 |
#include "RooStats/HybridCalculator.h"
|
17 |
#include "RooStats/FrequentistCalculator.h"
|
18 |
#include "RooStats/ToyMCSampler.h"
|
19 |
#include "RooStats/HypoTestPlot.h"
|
20 |
|
21 |
#include "RooStats/NumEventsTestStat.h"
|
22 |
#include "RooStats/ProfileLikelihoodTestStat.h"
|
23 |
#include "RooStats/SimpleLikelihoodRatioTestStat.h"
|
24 |
#include "RooStats/RatioOfProfiledLikelihoodsTestStat.h"
|
25 |
#include "RooStats/MaxLikelihoodEstimateTestStat.h"
|
26 |
|
27 |
#include "RooStats/HypoTestInverter.h"
|
28 |
#include "RooStats/HypoTestInverterResult.h"
|
29 |
#include "RooStats/HypoTestInverterPlot.h"
|
30 |
|
31 |
namespace RooStats {
|
32 |
|
33 |
class HypoTestInvTool{
|
34 |
|
35 |
public:
|
36 |
HypoTestInvTool();
|
37 |
~HypoTestInvTool(){};
|
38 |
|
39 |
HypoTestInverterResult *
|
40 |
RunInverter(RooWorkspace * w,
|
41 |
const char * modelSBName, const char * modelBName,
|
42 |
const char * dataName,
|
43 |
int type, int testStatType,
|
44 |
bool useCLs,
|
45 |
int npoints, double poimin, double poimax, int ntoys,
|
46 |
bool useNumberCounting = false,
|
47 |
const char * nuisPriorName = 0);
|
48 |
|
49 |
|
50 |
|
51 |
void
|
52 |
AnalyzeResult( HypoTestInverterResult * r,
|
53 |
int calculatorType,
|
54 |
int testStatType,
|
55 |
bool useCLs,
|
56 |
int npoints,
|
57 |
const char * fileNameBase = 0 );
|
58 |
|
59 |
void SetParameter(const char * name, const char * value);
|
60 |
void SetParameter(const char * name, bool value);
|
61 |
void SetParameter(const char * name, int value);
|
62 |
void SetParameter(const char * name, double value);
|
63 |
|
64 |
private:
|
65 |
|
66 |
bool mPlotHypoTestResult;
|
67 |
bool mWriteResult;
|
68 |
bool mOptimize;
|
69 |
bool mUseVectorStore;
|
70 |
bool mGenerateBinned;
|
71 |
bool mUseProof;
|
72 |
bool mRebuild;
|
73 |
int mNWorkers;
|
74 |
int mNToyToRebuild;
|
75 |
int mPrintLevel;
|
76 |
double mNToysRatio;
|
77 |
double mMaxPoi;
|
78 |
std::string mMassValue;
|
79 |
std::string mMinimizerType; // minimizer type (default is what is in ROOT::Math::MinimizerOptions::DefaultMinimizerType()
|
80 |
|
81 |
};
|
82 |
|
83 |
} // end namespace RooStats
|
84 |
|
85 |
|
86 |
#endif
|