![]() |
MaCh3 2.2.1
Reference Guide
|
EW: As FitterBase is an abstract base class we have to do some gymnastics to get it to get it into python. More...
Public Member Functions | |
void | RunMCMC () override |
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. | |
std::string | GetName () const override |
Get name of class. | |
FitterBase (manager *const fitMan) | |
Constructor. | |
![]() | |
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. | |
Additional Inherited Members | |
![]() | |
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. | |
EW: As FitterBase is an abstract base class we have to do some gymnastics to get it to get it into python.
Definition at line 13 of file fitters.cpp.
_MaCh3_Safe_Include_Start_ _MaCh3_Safe_Include_End_ FitterBase::FitterBase | ( | manager *const | fitMan | ) |
Constructor.
fitMan | A pointer to a manager object, which will handle all settings. |
Definition at line 27 of file FitterBase.cpp.
|
inlineoverridevirtual |
Get name of class.
Reimplemented from FitterBase.
Definition at line 28 of file fitters.cpp.
|
inlineoverridevirtual |
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.
Implements FitterBase.
Definition at line 19 of file fitters.cpp.