CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
MaxLikelihoodFit.h
Go to the documentation of this file.
1 #ifndef HiggsAnalysis_CombinedLimit_MaxLikelihoodFit_h
2 #define HiggsAnalysis_CombinedLimit_MaxLikelihoodFit_h
3 
11 #include "../interface/FitterAlgoBase.h"
12 #include "TTree.h"
14 public:
16  virtual const std::string & name() const {
17  static const std::string name("MaxLikelihoodFit");
18  return name;
19  }
21  virtual void applyOptions(const boost::program_options::variables_map &vm) ;
22  virtual void setToyNumber(const int) ;
23  virtual void setNToys(const int);
24 
25 protected:
26  virtual bool runSpecific(RooWorkspace *w, RooStats::ModelConfig *mc_s, RooStats::ModelConfig *mc_b, RooAbsData &data, double &limit, double &limitErr, const double *hint);
27 
28  static std::string name_;
29 
30  static std::string minos_;
31 
32  static bool justFit_, noErrors_;
33  static std::string out_;
34  static bool makePlots_;
35  static float rebinFactor_;
36  static std::string signalPdfNames_, backgroundPdfNames_;
37  static bool saveNormalizations_;
38  static bool reuseParams_;
42  std::auto_ptr<TFile> fitOut;
45 
46  TTree *t_fit_b_, *t_fit_sb_;
47 
48  void getNormalizations(RooAbsPdf *pdf, const RooArgSet &obs, RooArgSet &out);
49  void createFitResultTrees(const RooStats::ModelConfig &);
50  void setFitResultTrees(const RooArgSet *, double *);
51 };
52 
53 
54 #endif
void createFitResultTrees(const RooStats::ModelConfig &)
virtual void applyOptions(const boost::program_options::variables_map &vm)
double * nuisanceParameters_
void setFitResultTrees(const RooArgSet *, double *)
static bool saveNormalizations_
virtual void setNToys(const int)
std::auto_ptr< TFile > fitOut
static bool reuseParams_
static bool justFit_
static std::string backgroundPdfNames_
static float rebinFactor_
static bool noErrors_
virtual void setToyNumber(const int)
tuple out
Definition: dbtoconf.py:99
static std::string minos_
static bool makePlots_
virtual bool runSpecific(RooWorkspace *w, RooStats::ModelConfig *mc_s, RooStats::ModelConfig *mc_b, RooAbsData &data, double &limit, double &limitErr, const double *hint)
static std::string signalPdfNames_
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:82
static std::string out_
static std::string name_
double * globalObservables_
virtual const std::string & name() const
void getNormalizations(RooAbsPdf *pdf, const RooArgSet &obs, RooArgSet &out)
T w() const