![]() |
MaCh3 2.2.1
Reference Guide
|
Functions | |
void | ParameterHandlerBase::SetCovMatrix (TMatrixDSym *cov) |
Set covariance matrix. | |
void | ParameterHandlerBase::SetName (const std::string &name) |
Set matrix name. | |
void | ParameterHandlerBase::SetParName (const int i, const std::string &name) |
change parameter name | |
void | ParameterHandlerBase::SetSingleParameter (const int parNo, const double parVal) |
Set value of single param to a given value. | |
void | ParameterHandlerBase::SetPar (const int i, const double val) |
Set all the covariance matrix parameters to a user-defined value. | |
void | ParameterHandlerBase::SetParCurrProp (const int i, const double val) |
Set current parameter value. | |
void | ParameterHandlerBase::SetParProp (const int i, const double val) |
Set proposed parameter value. | |
void | ParameterHandlerBase::SetParameters (const std::vector< double > &pars={}) |
Set parameter values using vector, it has to have same size as covariance class. | |
void | ParameterHandlerBase::SetFlatPrior (const int i, const bool eL) |
Set if parameter should have flat prior or not. | |
void | ParameterHandlerBase::SetRandomThrow (const int i, const double rand) |
Set random value useful for debugging/CI. | |
void | ParameterHandlerBase::SetBranches (TTree &tree, const bool SaveProposal=false) |
set branches for output file | |
void | ParameterHandlerBase::SetStepScale (const double scale) |
Set global step scale for covariance object. | |
void | ParameterHandlerBase::SetIndivStepScale (const int ParameterIndex, const double StepScale) |
DB Function to set fIndivStepScale from a vector (Can be used from execs and inside covariance constructors) | |
void | ParameterHandlerBase::SetIndivStepScale (const std::vector< double > &stepscale) |
DB Function to set fIndivStepScale from a vector (Can be used from execs and inside covariance constructors) | |
void | ParameterHandlerBase::SetPrintLength (const unsigned int PriLen) |
KS: In case someone really want to change this. | |
void | ParameterHandlerBase::SetThrowMatrix (TMatrixDSym *cov) |
Use new throw matrix, used in adaptive MCMC. | |
void | ParameterHandlerBase::SetNumberOfSteps (const int nsteps) |
Set number of MCMC step, when running adaptive MCMC it is updated with given frequency. We need number of steps to determine frequency. | |
void | ParameterHandlerBase::SetTune (const std::string &TuneName) |
KS: Set proposed parameter values vector to be base on tune values, for example set proposed values to be of generated or maybe PostND. | |
void | ParameterHandlerGeneric::SetGroupOnlyParameters (const std::string &Group, const std::vector< double > &Pars={}) |
KS Function to set to prior parameters of a given group or values from vector. | |
void | ParameterHandlerGeneric::SetGroupOnlyParameters (const std::vector< std::string > &Groups) |
KS Function to set to prior parameters of a given groups or values from vector. | |
void | PCAHandler::SetBranches (TTree &tree, bool SaveProposal, const std::vector< std::string > &Names) |
set branches for output file | |
void | PCAHandler::ToggleFixAllParameters () |
fix parameters at prior values | |
void | PCAHandler::ToggleFixParameter (const int i, const std::vector< std::string > &Names) |
fix parameters at prior values | |
void | PCAHandler::SetParametersPCA (const std::vector< double > &pars) |
Set values for PCA parameters in PCA base. | |
void | PCAHandler::SetParPropPCA (const int i, const double value) |
Set proposed value for parameter in PCA base. | |
void | PCAHandler::SetParCurrPCA (const int i, const double value) |
Set current value for parameter in PCA base. | |
Group of functions to set various parameters, names, and values.
void PCAHandler::SetBranches | ( | TTree & | tree, |
bool | SaveProposal, | ||
const std::vector< std::string > & | Names | ||
) |
set branches for output file
Definition at line 312 of file PCAHandler.cpp.
void ParameterHandlerBase::SetBranches | ( | TTree & | tree, |
const bool | SaveProposal = false |
||
) |
set branches for output file
tree | Tree to which we will save branches |
SaveProposal | Normally we only save parameter after is accepted, for debugging purpose it is helpful to see also proposed values. That's what this variable controls |
Definition at line 843 of file ParameterHandlerBase.cpp.
void ParameterHandlerBase::SetCovMatrix | ( | TMatrixDSym * | cov | ) |
Set covariance matrix.
cov | Covariance matrix which we set and will be used later for evaluation of penalty term |
Definition at line 368 of file ParameterHandlerBase.cpp.
void ParameterHandlerBase::SetFlatPrior | ( | const int | i, |
const bool | eL | ||
) |
Set if parameter should have flat prior or not.
i | Parameter index |
eL | bool telling if it will be flat or not |
Definition at line 944 of file ParameterHandlerBase.cpp.
void ParameterHandlerGeneric::SetGroupOnlyParameters | ( | const std::string & | Group, |
const std::vector< double > & | Pars = {} |
||
) |
KS Function to set to prior parameters of a given group or values from vector.
Group | name of group, like Xsec or Flux |
Pars | Values which will overwrite proposed step |
Definition at line 675 of file ParameterHandlerGeneric.cpp.
void ParameterHandlerGeneric::SetGroupOnlyParameters | ( | const std::vector< std::string > & | Groups | ) |
KS Function to set to prior parameters of a given groups or values from vector.
Group | vector of group names, like Xsec or Flux |
Definition at line 666 of file ParameterHandlerGeneric.cpp.
|
inline |
DB Function to set fIndivStepScale from a vector (Can be used from execs and inside covariance constructors)
ParameterIndex | Parameter Index |
StepScale | Value of individual step scale |
Definition at line 106 of file ParameterHandlerBase.h.
void ParameterHandlerBase::SetIndivStepScale | ( | const std::vector< double > & | stepscale | ) |
DB Function to set fIndivStepScale from a vector (Can be used from execs and inside covariance constructors)
stepscale | Vector of individual step scale, should have same |
Definition at line 963 of file ParameterHandlerBase.cpp.
|
inline |
Set matrix name.
Definition at line 45 of file ParameterHandlerBase.h.
|
inline |
Set number of MCMC step, when running adaptive MCMC it is updated with given frequency. We need number of steps to determine frequency.
Definition at line 204 of file ParameterHandlerBase.h.
void ParameterHandlerBase::SetPar | ( | const int | i, |
const double | val | ||
) |
Set all the covariance matrix parameters to a user-defined value.
i | Parameter index |
val | new value which will be set |
Definition at line 428 of file ParameterHandlerBase.cpp.
void ParameterHandlerBase::SetParameters | ( | const std::vector< double > & | pars = {} | ) |
Set parameter values using vector, it has to have same size as covariance class.
pars | Vector holding new values for every parameter |
Definition at line 810 of file ParameterHandlerBase.cpp.
|
inline |
Set values for PCA parameters in PCA base.
pars | vector with new values of PCA params |
Definition at line 101 of file PCAHandler.h.
|
inline |
Set current value for parameter in PCA base.
i | Parameter index |
value | new value |
Definition at line 141 of file PCAHandler.h.
void ParameterHandlerBase::SetParCurrProp | ( | const int | i, |
const double | val | ||
) |
Set current parameter value.
i | Parameter index |
val | new value which will be set |
Definition at line 551 of file ParameterHandlerBase.cpp.
|
inline |
change parameter name
i | Parameter index |
name | new name which will be set |
Definition at line 50 of file ParameterHandlerBase.h.
|
inline |
Set proposed parameter value.
i | Parameter index |
val | new value which will be set |
Definition at line 68 of file ParameterHandlerBase.h.
|
inline |
Set proposed value for parameter in PCA base.
i | Parameter index |
value | new value |
Definition at line 132 of file PCAHandler.h.
|
inline |
KS: In case someone really want to change this.
Definition at line 113 of file ParameterHandlerBase.h.
|
inline |
Set random value useful for debugging/CI.
i | Parameter index |
rand | New value for random number |
Definition at line 86 of file ParameterHandlerBase.h.
void ParameterHandlerBase::SetSingleParameter | ( | const int | parNo, |
const double | parVal | ||
) |
Set value of single param to a given value.
Definition at line 542 of file ParameterHandlerBase.cpp.
void ParameterHandlerBase::SetStepScale | ( | const double | scale | ) |
Set global step scale for covariance object.
scale | Value of global step scale [20] |
Definition at line 863 of file ParameterHandlerBase.cpp.
void ParameterHandlerBase::SetThrowMatrix | ( | TMatrixDSym * | cov | ) |
Use new throw matrix, used in adaptive MCMC.
Definition at line 1050 of file ParameterHandlerBase.cpp.
void ParameterHandlerBase::SetTune | ( | const std::string & | TuneName | ) |
KS: Set proposed parameter values vector to be base on tune values, for example set proposed values to be of generated or maybe PostND.
Definition at line 1311 of file ParameterHandlerBase.cpp.
void PCAHandler::ToggleFixAllParameters | ( | ) |
fix parameters at prior values
Definition at line 327 of file PCAHandler.cpp.
void PCAHandler::ToggleFixParameter | ( | const int | i, |
const std::vector< std::string > & | Names | ||
) |
fix parameters at prior values
Definition at line 335 of file PCAHandler.cpp.