Manages the configuration of a fit. More...
#include <config.h>
Public Member Functions | |
| FitConfig (std::string filename) | |
| void | print () const |
Static Public Member Functions | |
| static TH1D * | project1d (TH2F *const hist2d, Range< float > *const r_range=NULL) |
Public Attributes | |
| unsigned | mode |
| fit type (energy, energy+radius, ...) | |
| unsigned | experiments |
| number of ensemble experiments | |
| unsigned | steps |
| number of mcmc steps | |
| unsigned | rebin_e |
| rebinning factor for energy | |
| unsigned | rebin_r |
| rebinning factor for radius | |
| float | confidence |
| confidence level for results (e.g. 0.9) | |
| float | live_time |
| experiment live time in years | |
| float | efficiency |
| overall efficiency correction | |
| float | burnin_fraction |
| fraction of steps to use for burn-in period | |
| std::vector< Signal > | signals |
| signal histograms and metadata | |
| std::string | output_file |
| base filename for output | |
| std::string | signal_name |
| name of the signal that is the signal | |
| Range< float > | e_range |
| range of energies to include in fit | |
| Range< float > | r_range |
| range of radii to include in fit | |
Static Protected Member Functions | |
| static TH2F * | load_histogram (std::string const filename, std::string const objname) |
Manages the configuration of a fit.
A utility class for reading in configuration parameters from a JSON file.
| FitConfig::FitConfig | ( | std::string | filename | ) |
Constructor
| filename | Name of the JSON file to load |
| TH2F * FitConfig::load_histogram | ( | std::string const | filename, | |
| std::string const | objname | |||
| ) | [static, protected] |
Load an energy/radius ROOT TH2F from a file
| filename | name of ROOT file containing the PDF | |
| objname | name of the PDF ROOT object ("pdf") |
| void FitConfig::print | ( | ) | const |
Pretty-print the fit parameters
| TH1D * FitConfig::project1d | ( | TH2F *const | hist2d, | |
| Range< float > *const | r_range = NULL | |||
| ) | [static] |
Project a TH2F down to an energy-only TH1F, optionally cutting on radius.
| [in] | hist2d | the TH2F object to project |
| [in] | r_range | a Range defining the radial range to project |
1.6.3