|
| mcmc (manager *const fitMan) |
| Constructor.
|
|
virtual | ~mcmc () |
| Destructor.
|
|
void | RunMCMC () override |
| Actual implementation of MCMC fitting algorithm.
|
|
void | setChainLength (unsigned int L) |
| Set how long chain should be.
|
|
void | StartFromPreviousFit (const std::string &FitName) override |
| Allow to start from previous fit/chain.
|
|
std::string | GetName () const |
| Get name of class.
|
|
| FitterBase (manager *const fitMan) |
| Constructor.
|
|
virtual | ~FitterBase () |
| Destructor for the FitterBase class.
|
|
void | AddSampleHandler (SampleHandlerBase *sample) |
| This function adds a sample PDF object to the analysis framework. The sample PDF object will be utilized in fitting procedures or likelihood scans.
|
|
void | AddSystObj (ParameterHandlerBase *cov) |
| This function adds a Covariance object to the analysis framework. The Covariance object will be utilized in fitting procedures or likelihood scans.
|
|
virtual void | RunMCMC ()=0 |
| The specific fitting algorithm implemented in this function depends on the derived class. It could be Markov Chain Monte Carlo (MCMC), MinuitFit, or another algorithm.
|
|
void | DragRace (const int NLaps=100) |
| Calculates the required time for each sample or covariance object in a drag race simulation. Inspired by Dan's feature.
|
|
void | RunLLHScan () |
| Perform a 1D likelihood scan.
|
|
void | GetStepScaleBasedOnLLHScan () |
| LLH scan is good first estimate of step scale.
|
|
void | Run2DLLHScan () |
| Perform a 2D likelihood scan.
|
|
void | RunSigmaVar () |
| Perform a 2D and 1D sigma var for all samples.
|
|
virtual void | StartFromPreviousFit (const std::string &FitName) |
| Allow to start from previous fit/chain.
|
|
virtual std::string | GetName () const |
| Get name of class.
|
|
|
void | ProcessMCMC () |
| Process MCMC output.
|
|
void | PrepareOutput () |
| Prepare the output file.
|
|
void | SaveOutput () |
| Save output and close files.
|
|
void | SanitiseInputs () |
| Remove obsolete memory and make other checks before fit starts.
|
|
void | SaveSettings () |
| Save the settings that the MCMC was run with.
|
|
bool | GetScaneRange (std::map< std::string, std::vector< double > > &scanRanges) |
| YSP: Set up a mapping to store parameters with user-specified ranges, suggested by D. Barrow.
|
|
bool | CheckSkipParameter (const std::vector< std::string > &SkipVector, const std::string &ParamName) const |
| KS: Check whether we want to skip parameter using skip vector.
|
|
manager * | fitMan |
| The manager.
|
|
unsigned int | step |
| current state
|
|
double | logLCurr |
| current likelihood
|
|
double | logLProp |
| proposed likelihood
|
|
double | accProb |
| current acceptance prob
|
|
int | accCount |
| counts accepted steps
|
|
int | stepStart |
| step start if restarting
|
|
std::vector< double > | sample_llh |
| store the llh breakdowns
|
|
std::vector< double > | syst_llh |
| systematic llh breakdowns
|
|
std::vector< SampleHandlerBase * > | samples |
| Sample holder.
|
|
unsigned int | TotalNSamples |
| Total number of samples used.
|
|
std::vector< ParameterHandlerBase * > | systematics |
| Systematic holder.
|
|
std::unique_ptr< TStopwatch > | clock |
| tells global time how long fit took
|
|
std::unique_ptr< TStopwatch > | stepClock |
| tells how long single step/fit iteration took
|
|
double | stepTime |
| Time of single step.
|
|
std::unique_ptr< TRandom3 > | random |
| Random number.
|
|
TFile * | outputFile |
| Output.
|
|
TDirectory * | CovFolder |
| Output cov folder.
|
|
TDirectory * | SampleFolder |
| Output sample folder.
|
|
TTree * | outTree |
| Output tree with posteriors.
|
|
int | auto_save |
| auto save every N steps
|
|
bool | fTestLikelihood |
| Necessary for some fitting algorithms like PSO.
|
|
bool | FileSaved |
| Checks if file saved not repeat some operations.
|
|
bool | SettingsSaved |
| Checks if setting saved not repeat some operations.
|
|
bool | OutputPrepared |
| Checks if output prepared not repeat some operations.
|
|
Implementation of MR2T2 algorithm.
- Author
- Asher Kaboth
Definition at line 7 of file mcmc.h.