4 #include "XeLikelihoods.h" 5 #include "TGraphAsymmErrors.h" 8 #include "dataHandler.h" 17 #include "TParameter.h" 24 #include "plotHelpers.h" 26 #include "Math/Minimizer.h" 27 #include "Math/Factory.h" 28 #include "Math/Functor.h" 29 #include "Math/BrentMinimizer1D.h" 59 double computeTS(
double mu) ;
72 void fit(
double mu,
int stopAt=-999);
87 TGraphAsymmErrors computeTSDistros(TString fileName,
double *mu_list,
int mu_size);
99 TGraphAsymmErrors computeTSDistros(TTree *tree,
double *mu_list,
int mu_size);
110 void spitTheLimit(TGraphAsymmErrors *ninety_quantiles,
int sopAt = -999);
119 void setRandomizeMeasure(
bool doOrNot) { randomizeMeasure = doOrNot ;};
122 void setTreeName(TString newName) { treeName = newName; };
126 void setSeed(ULong_t seed) { rambo.SetSeed(seed); };
129 void setCalibrationTreeName(TString newName) { calTreeName = newName; };
132 void setOutputSuffix(TString name) { Suffix = name; } ;
142 void for_each_tree(
double (
ToyFitterExclusion::*p2method)(
double), TTree *outTree,
double mu,
int stopAt = -999);
146 double limitLoop(
double initial_mu);
149 void saveParameters(
double *params);
152 void fillTrueParams( );
155 void measureParameters();
158 double eval_testStatMinuit(
double mu );
161 double getBestAsympoticGuessForMu(
double one_over_sigma_squared,
double mu_hat );
163 void saveNames(
string *names);
169 TGraphAsymmErrors *graph_of_quantiles;
173 int CurrentTreeIndex;
176 double likelihood_uncond;
177 double likelihood_cond;
178 double true_params[50] = {0.} ;
179 double measured_params[50] = {0.};
180 double uncond_params[50] = {0.};
181 double cond_params[50] = {0.};
182 bool limit_converged;
183 double testStat_limit;
185 vector<string> name_params;
186 vector<string> name_true_params;
190 double lower_mu_limit;
196 bool randomizeMeasure;
Class to handle the fitting of toy dataset for limit production.
Definition: ToyFitterExclusion.h:43
void setOutputDir(TString path)
set the path to dir in which the fits are stored otherwise is current
Definition: ToyFitterExclusion.h:116
void setTheLikelihood(ProfileLikelihood *like)
set the likelihood to fit
Definition: ToyFitterExclusion.h:75
Helper Class to send consistently formatted messages. It allows different levels of severity for the ...
Definition: XeUtils.h:22
void setInputDir(TString path)
set path to input file (only dir no file name)
Definition: ToyFitterExclusion.h:113
void setGeneration(int generation)
set the Generation, this info will be available in the generated tree (so that u can hadd them)...
Definition: ToyFitterExclusion.h:135