1 #ifndef MCToyGenerationAndFit_h 2 #define MCToyGenerationAndFit_h 13 #include "RooAbsData.h" 14 #include "RooWorkspace.h" 15 #include "RooMCStudy.h" 16 #include "RooFitResult.h" 17 #include "RooMultiVarGaussian.h" 18 #include "RooArgList.h" 19 #include "RooArgSet.h" 21 #include "RooStats/HypoTestResult.h" 43 RooFitResult*
FitData(RooWorkspace* ws,
bool isWeighted=
false);
49 RooFitResult*
FitToyData(RooWorkspace* w, RooAbsData* obsdata);
void SetAlgorithm(std::string min)
void SetMinimiser(std::string min)
TTree * RooMCStudyToTTree(RooMCStudy *mc)
RooFitResult * FitData(RooWorkspace *ws, bool isWeighted=false)
static constexpr double fs
TTree * RooDataSetToTTree(RooAbsData *data, TString treename)
void SetConfLevel(double cl)
RooFitResult * FitAsimovData(RooWorkspace *w)
TTree * GenerateChi2Tree(RooWorkspace *ws, int nexp, int seed)
RooArgSet * GetChi2Set(RooWorkspace *work, RooAbsData *data)
T min(sqlite3 *const db, std::string const &table_name, std::string const &column_name)
void SetFitStrategy(int fs)
TTree * FitToyMCFromWorkspace(std::vector< RooWorkspace * > wsvec, bool fitdata)
TTree * GenerateAndFit(RooWorkspace *ws, int nexp)
RooAbsData * GenerateToyMC(RooWorkspace *ws, bool datanorm=true)
TTree * RooFitResultToTTree(RooWorkspace *ws, RooFitResult *res)
RooFitResult * GenerateAndFitOneToy(RooWorkspace *ws)
RooFitResult * FitToyData(RooWorkspace *w, RooAbsData *obsdata)