00001 #ifndef __CONFIG_H__ 00002 #define __CONFIG_H__ 00003 00004 #include <string> 00005 #include <vector> 00006 #include "utils.h" 00007 #include "signals.h" 00008 00009 class TH1D; 00010 class TH2F; 00011 00018 class FitConfig { 00019 public: 00025 FitConfig(std::string filename); 00026 00027 virtual ~FitConfig() {} 00028 00030 void print() const; 00031 00040 static TH1D* project1d(TH2F* const hist2d, 00041 Range<float>* const r_range=NULL); 00042 00043 unsigned mode; 00044 unsigned experiments; 00045 unsigned steps; 00046 unsigned rebin_e; 00047 unsigned rebin_r; 00048 float confidence; 00049 float live_time; 00050 float efficiency; 00051 float burnin_fraction; 00052 std::vector<Signal> signals; 00053 std::string output_file; 00054 std::string signal_name; 00055 Range<float> e_range; 00056 Range<float> r_range; 00057 00058 protected: 00066 static TH2F* load_histogram(std::string const filename, 00067 std::string const objname); 00068 }; 00069 00070 #endif // __CONFIG_H__ 00071