CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Combine.h
Go to the documentation of this file.
1 #ifndef HiggsAnalysis_CombinedLimit_Combine_h
2 #define HiggsAnalysis_CombinedLimit_Combine_h
3 #include <TString.h>
4 #include <boost/program_options.hpp>
5 
6 class TDirectory;
7 class TTree;
8 class LimitAlgo;
9 class RooWorkspace;
10 class RooAbsData;
11 namespace RooStats { class ModelConfig; }
12 
13 extern Float_t t_cpu_, t_real_, g_quantileExpected_;
14 //RooWorkspace *writeToysHere = 0;
15 extern TDirectory *outputFile;
16 extern TDirectory *writeToysHere;
17 extern TDirectory *readToysFromHere;
18 extern LimitAlgo * algo, * hintAlgo ;
19 extern int verbose;
20 extern bool withSystematics;
21 extern bool doSignificance_, lowerLimit_;
22 extern float cl;
23 
24 class Combine {
25 public:
26  Combine() ;
27 
28  boost::program_options::options_description & statOptions() { return statOptions_; }
29  boost::program_options::options_description & ioOptions() { return ioOptions_; }
30  boost::program_options::options_description & miscOptions() { return miscOptions_; }
31  void applyOptions(const boost::program_options::variables_map &vm) ;
32 
33  void run(TString hlfFile, const std::string &dataset, double &limit, double &limitErr, int &iToy, TTree *tree, int nToys);
34 
36  static void commitPoint(bool expected, float quantile);
37 
39  static void addBranch(const char *name, void *address, const char *leaflist) ;
40 private:
41  bool mklimit(RooWorkspace *w, RooStats::ModelConfig *mc_s, RooStats::ModelConfig *mc_b, RooAbsData &data, double &limit, double &limitErr) ;
42 
43  boost::program_options::options_description statOptions_, ioOptions_, miscOptions_;
44 
45  // statistics-related variables
47  float rMin_, rMax_;
48  std::string prior_;
53 
54  // input-output related variables
56  std::string workspaceName_;
59  bool saveToys_;
60  float mass_;
61 
62  // implementation-related variables
66  bool optSimPdf_;
67 
68  static TTree *tree_;
69 };
70 
71 #endif
static void addBranch(const char *name, void *address, const char *leaflist)
Add a branch to the output tree (for advanced use or debugging only)
Definition: Combine.cc:564
TDirectory * readToysFromHere
Definition: Combine.cc:66
float expectSignal_
Definition: Combine.h:52
char * address
Definition: mlp_lapack.h:14
bool doSignificance_
Definition: Combine.cc:69
bool newGen_
Definition: Combine.h:46
bool lowerLimit_
Definition: Combine.cc:70
Float_t t_cpu_
Definition: Combine.cc:62
boost::program_options::options_description statOptions_
Definition: Combine.h:43
bool withSystematics
Definition: Combine.cc:68
boost::program_options::options_description miscOptions_
Definition: Combine.h:43
TDirectory * writeToysHere
Definition: Combine.cc:65
bool validateModel_
Definition: Combine.h:58
bool optSimPdf_
Definition: Combine.h:66
Combine()
Definition: Combine.cc:75
static void commitPoint(bool expected, float quantile)
Save a point into the output tree. Usually if expected = false, quantile should be set to -1 (except ...
Definition: Combine.cc:557
boost::program_options::options_description ioOptions_
Definition: Combine.h:43
float mass_
Definition: Combine.h:60
Float_t g_quantileExpected_
Definition: Combine.cc:63
Float_t t_real_
Definition: Combine.cc:62
bool saveToys_
Definition: Combine.h:59
bool unbinned_
Definition: Combine.h:46
void run(TString hlfFile, const std::string &dataset, double &limit, double &limitErr, int &iToy, TTree *tree, int nToys)
Definition: Combine.cc:190
LimitAlgo * hintAlgo
Definition: Combine.cc:60
bool generateBinnedWorkaround_
Definition: Combine.h:46
boost::program_options::options_description & miscOptions()
Definition: Combine.h:30
bool guessGenMode_
Definition: Combine.h:46
bool rebuildSimPdf_
Definition: Combine.h:65
bool toysNoSystematics_
Definition: Combine.h:50
bool compiledExpr_
Definition: Combine.h:63
bool hintUsesStatOnly_
Definition: Combine.h:49
std::string workspaceName_
Definition: Combine.h:56
float cl
Definition: Combine.cc:71
std::string prior_
Definition: Combine.h:48
std::string modelConfigNameB_
Definition: Combine.h:57
tuple dataset
Definition: dataset.py:393
float rMax_
Definition: Combine.h:47
float rMin_
Definition: Combine.h:47
bool mklimit(RooWorkspace *w, RooStats::ModelConfig *mc_s, RooStats::ModelConfig *mc_b, RooAbsData &data, double &limit, double &limitErr)
Definition: Combine.cc:145
std::string modelConfigName_
Definition: Combine.h:57
bool toysFrequentist_
Definition: Combine.h:51
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:82
bool saveWorkspace_
Definition: Combine.h:55
boost::program_options::options_description & ioOptions()
Definition: Combine.h:29
LimitAlgo * algo
Definition: Combine.cc:60
bool makeTempDir_
Definition: Combine.h:64
boost::program_options::options_description & statOptions()
Definition: Combine.h:28
T w() const
static TTree * tree_
Definition: Combine.h:68
void applyOptions(const boost::program_options::variables_map &vm)
Definition: Combine.cc:117