FitConfig Class Reference

Manages the configuration of a fit. More...

#include <config.h>

List of all members.

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< Signalsignals
 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)

Detailed Description

Manages the configuration of a fit.

A utility class for reading in configuration parameters from a JSON file.


Constructor & Destructor Documentation

FitConfig::FitConfig ( std::string  filename  ) 

Constructor

Parameters:
filename Name of the JSON file to load

Member Function Documentation

TH2F * FitConfig::load_histogram ( std::string const   filename,
std::string const   objname 
) [static, protected]

Load an energy/radius ROOT TH2F from a file

Parameters:
filename name of ROOT file containing the PDF
objname name of the PDF ROOT object ("pdf")
Returns:
the PDF (a TH2F pointer)
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.

Parameters:
[in] hist2d the TH2F object to project
[in] r_range a Range defining the radial range to project
Returns:
a pointer to the resulting TH1D

The documentation for this class was generated from the following files:
 All Classes Files Functions Variables Typedefs
Generated on Wed May 22 15:57:24 2013 for sxmc by  doxygen 1.6.3