![]() |
MaCh3 2.2.1
Reference Guide
|
Functions | |
std::vector< double > | adaptive_mcmc::AdaptiveMCMCHandler::GetParameterMeans () const |
Get the parameter means used in the adaptive handler. | |
std::string | adaptive_mcmc::AdaptiveMCMCHandler::GetOutFileName () const |
Get Name of Output File. | |
double | ParameterHandlerBase::GetRandomThrow (const int i) const |
Get random value useful for debugging/CI. | |
virtual double | ParameterHandlerBase::GetLikelihood () |
Return CalcLikelihood if some params were thrown out of boundary return LARGE_LOGL | |
TMatrixDSym * | ParameterHandlerBase::GetCovMatrix () const |
Return covariance matrix. | |
TMatrixDSym * | ParameterHandlerBase::GetInvCovMatrix () const |
Return inverted covariance matrix. | |
double | ParameterHandlerBase::GetInvCovMatrix (const int i, const int j) const |
Return inverted covariance matrix. | |
double | ParameterHandlerBase::GetCorrThrows (const int i) const |
Return correlated throws. | |
bool | ParameterHandlerBase::GetFlatPrior (const int i) const |
Get if param has flat prior or not. | |
std::string | ParameterHandlerBase::GetName () const |
Get name of covariance. | |
std::string | ParameterHandlerBase::GetParName (const int i) const |
Get name of parameter. | |
int | ParameterHandlerBase::GetParIndex (const std::string &name) const |
Get index based on name. | |
std::string | ParameterHandlerBase::GetParFancyName (const int i) const |
Get fancy name of the Parameter. | |
std::string | ParameterHandlerBase::GetInputFile () const |
Get name of input file. | |
double | ParameterHandlerBase::GetDiagonalError (const int i) const |
Get diagonal error for ith parameter. | |
double | ParameterHandlerBase::GetError (const int i) const |
Get the error for the ith parameter. | |
bool | ParameterHandlerBase::GetDoAdaption () const |
Do we adapt or not. | |
TMatrixDSym * | ParameterHandlerBase::GetThrowMatrix () const |
Get matrix used for step proposal. | |
double | ParameterHandlerBase::GetThrowMatrix (const int i, const int j) const |
Get matrix used for step proposal. | |
TMatrixD * | ParameterHandlerBase::GetThrowMatrix_CholDecomp () const |
Get the Cholesky decomposition of the throw matrix. | |
TH2D * | ParameterHandlerBase::GetCorrelationMatrix () |
KS: Convert covariance matrix to correlation matrix and return TH2D which can be used for fancy plotting. | |
int | ParameterHandlerBase::GetNumParams () const |
Get total number of parameters. | |
std::vector< double > | ParameterHandlerBase::GetPreFitValues () const |
Get the pre-fit values of the parameters. | |
std::vector< double > | ParameterHandlerBase::GetProposed () const |
Get vector of all proposed parameter values. | |
double | ParameterHandlerBase::GetParProp (const int i) const |
Get proposed parameter value. | |
double | ParameterHandlerBase::GetParCurr (const int i) const |
Get current parameter value. | |
double | ParameterHandlerBase::GetParInit (const int i) const |
Get prior parameter value. | |
double | ParameterHandlerBase::GetUpperBound (const int i) const |
Get upper parameter bound in which it is physically valid. | |
double | ParameterHandlerBase::GetLowerBound (const int i) const |
Get lower parameter bound in which it is physically valid. | |
double | ParameterHandlerBase::GetIndivStepScale (const int ParameterIndex) const |
Get individual step scale for selected parameter. | |
double | ParameterHandlerBase::GetGlobalStepScale () const |
Get global step scale for covariance object. | |
int | ParameterHandlerBase::GetNParameters () const |
Get number of params which will be different depending if using Eigen decomposition or not. | |
YAML::Node | ParameterHandlerBase::GetConfig () const |
Getter to return a copy of the YAML node. | |
adaptive_mcmc::AdaptiveMCMCHandler * | ParameterHandlerBase::GetAdaptiveHandler () const |
Get pointer for AdaptiveHandler. | |
std::vector< std::string > | ParameterHandlerGeneric::GetParSampleID (const int i) const |
ETA - just return the int of the SampleName, this can be removed to do a string comp at some point. | |
std::string | ParameterHandlerGeneric::GetParamTypeString (const int i) const |
ETA - just return a string of "spline", "norm" or "functional". | |
SystType | ParameterHandlerGeneric::GetParamType (const int i) const |
Returns enum describing our param type. | |
const std::vector< SplineInterpolation > | ParameterHandlerGeneric::GetSplineInterpolationFromSampleName (const std::string &SampleName) |
Get the interpolation types for splines affecting a particular SampleName. | |
std::string | ParameterHandlerGeneric::GetParSplineName (const int i) const |
Get the name of the spline associated with the spline at index i. | |
const std::vector< int > | ParameterHandlerGeneric::GetGlobalSystIndexFromSampleName (const std::string &SampleName, const SystType Type) |
DB Get spline parameters depending on given SampleName. | |
double | ParameterHandlerGeneric::GetParSplineKnotUpperBound (const int i) const |
EM: value at which we cap spline knot weight. | |
double | ParameterHandlerGeneric::GetParSplineKnotLowerBound (const int i) const |
EM: value at which we cap spline knot weight. | |
int | ParameterHandlerGeneric::GetNumParamsFromSampleName (const std::string &SampleName, const SystType Type) |
DB Grab the number of parameters for the relevant SampleName. | |
const std::vector< std::string > | ParameterHandlerGeneric::GetParsNamesFromSampleName (const std::string &SampleName, const SystType Type) |
DB Grab the parameter names for the relevant SampleName. | |
const std::vector< int > | ParameterHandlerGeneric::GetParsIndexFromSampleName (const std::string &SampleName, const SystType Type) |
DB Grab the parameter indices for the relevant SampleName. | |
const std::vector< std::string > | ParameterHandlerGeneric::GetSplineParsNamesFromSampleName (const std::string &SampleName) |
DB Get spline parameters depending on given SampleName. | |
const std::vector< std::string > | ParameterHandlerGeneric::GetSplineFileParsNamesFromSampleName (const std::string &SampleName) |
DB Get spline parameters depending on given SampleName. | |
const std::vector< std::vector< int > > | ParameterHandlerGeneric::GetSplineModeVecFromSampleName (const std::string &SampleName) |
DB Grab the Spline Modes for the relevant SampleName. | |
const std::vector< int > | ParameterHandlerGeneric::GetSystIndexFromSampleName (const std::string &SampleName, const SystType Type) const |
Grab the index of the syst relative to global numbering. | |
const std::vector< NormParameter > | ParameterHandlerGeneric::GetNormParsFromSampleName (const std::string &SampleName) const |
DB Get norm/func parameters depending on given SampleName. | |
const std::vector< FunctionalParameter > | ParameterHandlerGeneric::GetFunctionalParametersFromSampleName (const std::string &SampleName) const |
HH Get functional parameters for the relevant SampleName. | |
const std::vector< SplineParameter > | ParameterHandlerGeneric::GetSplineParsFromSampleName (const std::string &SampleName) const |
KS: Grab the Spline parameters for the relevant SampleName. | |
bool | ParameterHandlerGeneric::IsParFromGroup (const int i, const std::string &Group) const |
Checks if parameter belongs to a given group. | |
int | ParameterHandlerGeneric::GetNumParFromGroup (const std::string &Group) const |
KS: Check how many parameters are associated with given group. | |
std::vector< const double * > | ParameterHandlerGeneric::GetOscParsFromSampleName (const std::string &SampleName) |
Get pointers to Osc params from Sample name. | |
bool | PCAHandler::IsParameterFixedPCA (const int i) const |
Is parameter fixed in PCA base or not. | |
const TMatrixD | PCAHandler::GetEigenVectors () const |
Get eigen vectors of covariance matrix, only works with PCA. | |
double | PCAHandler::GetParPropPCA (const int i) const |
Get current parameter value using PCA. | |
double | PCAHandler::GetPreFitValuePCA (const int i) const |
Get current parameter value using PCA. | |
double | PCAHandler::GetParCurrPCA (const int i) const |
Get current parameter value using PCA. | |
const TMatrixD | PCAHandler::GetTransferMatrix () const |
Get transfer matrix allowing to go from PCA base to normal base. | |
const TVectorD | PCAHandler::GetEigenValues () const |
Get eigen values for all parameters, if you want for decomposed only parameters use GetEigenValuesMaster. | |
const std::vector< double > | PCAHandler::GetEigenValuesMaster () const |
Get eigen value of only decomposed parameters, if you want for all parameters use GetEigenValues. | |
bool | PCAHandler::IsParameterDecomposed (const int i) const |
Check if parameter in PCA base is decomposed or not. | |
Group of functions to get various parameters, names, and values.
|
inline |
Get pointer for AdaptiveHandler.
Definition at line 344 of file ParameterHandlerBase.h.
|
inline |
Getter to return a copy of the YAML node.
Definition at line 340 of file ParameterHandlerBase.h.
TH2D * ParameterHandlerBase::GetCorrelationMatrix | ( | ) |
KS: Convert covariance matrix to correlation matrix and return TH2D which can be used for fancy plotting.
This function converts the covariance matrix to a correlation matrix and returns a TH2D object, which can be used for advanced plotting purposes.
Definition at line 1218 of file ParameterHandlerBase.cpp.
|
inline |
Return correlated throws.
i | Parameter index |
Definition at line 149 of file ParameterHandlerBase.h.
|
inline |
Return covariance matrix.
Definition at line 138 of file ParameterHandlerBase.h.
|
inline |
Get diagonal error for ith parameter.
i | Parameter index |
Definition at line 179 of file ParameterHandlerBase.h.
|
inline |
|
inline |
Get eigen values for all parameters, if you want for decomposed only parameters use GetEigenValuesMaster.
Definition at line 176 of file PCAHandler.h.
|
inline |
Get eigen value of only decomposed parameters, if you want for all parameters use GetEigenValues.
Definition at line 181 of file PCAHandler.h.
|
inline |
Get eigen vectors of covariance matrix, only works with PCA.
Definition at line 124 of file PCAHandler.h.
|
inline |
Get the error for the ith parameter.
i | Parameter index |
Definition at line 183 of file ParameterHandlerBase.h.
|
inline |
Get if param has flat prior or not.
i | Parameter index |
Definition at line 154 of file ParameterHandlerBase.h.
const std::vector< FunctionalParameter > ParameterHandlerGeneric::GetFunctionalParametersFromSampleName | ( | const std::string & | SampleName | ) | const |
HH Get functional parameters for the relevant SampleName.
Definition at line 342 of file ParameterHandlerGeneric.cpp.
|
inline |
Get global step scale for covariance object.
Definition at line 277 of file ParameterHandlerBase.h.
const std::vector< int > ParameterHandlerGeneric::GetGlobalSystIndexFromSampleName | ( | const std::string & | SampleName, |
const SystType | Type | ||
) |
DB Get spline parameters depending on given SampleName.
Definition at line 233 of file ParameterHandlerGeneric.cpp.
|
inline |
Get individual step scale for selected parameter.
ParameterIndex | Parameter index |
Definition at line 274 of file ParameterHandlerBase.h.
|
inline |
Get name of input file.
Definition at line 174 of file ParameterHandlerBase.h.
|
inline |
Return inverted covariance matrix.
Definition at line 141 of file ParameterHandlerBase.h.
|
inline |
Return inverted covariance matrix.
Definition at line 144 of file ParameterHandlerBase.h.
|
virtual |
Return CalcLikelihood if some params were thrown out of boundary return LARGE_LOGL
Reimplemented in PyParameterHandlerBase.
Definition at line 798 of file ParameterHandlerBase.cpp.
|
inline |
Get lower parameter bound in which it is physically valid.
i | Parameter index |
Definition at line 270 of file ParameterHandlerBase.h.
|
inline |
Get name of covariance.
Definition at line 158 of file ParameterHandlerBase.h.
const std::vector< NormParameter > ParameterHandlerGeneric::GetNormParsFromSampleName | ( | const std::string & | SampleName | ) | const |
DB Get norm/func parameters depending on given SampleName.
Definition at line 349 of file ParameterHandlerGeneric.cpp.
|
inline |
Get number of params which will be different depending if using Eigen decomposition or not.
Definition at line 281 of file ParameterHandlerBase.h.
|
inline |
int ParameterHandlerGeneric::GetNumParamsFromSampleName | ( | const std::string & | SampleName, |
const SystType | Type | ||
) |
DB Grab the number of parameters for the relevant SampleName.
Type | Type of syst, for example kNorm, kSpline etc |
Definition at line 378 of file ParameterHandlerGeneric.cpp.
int ParameterHandlerGeneric::GetNumParFromGroup | ( | const std::string & | Group | ) | const |
KS: Check how many parameters are associated with given group.
Definition at line 719 of file ParameterHandlerGeneric.cpp.
std::vector< const double * > ParameterHandlerGeneric::GetOscParsFromSampleName | ( | const std::string & | SampleName | ) |
Get pointers to Osc params from Sample name.
Definition at line 730 of file ParameterHandlerGeneric.cpp.
|
inline |
Get Name of Output File.
Definition at line 119 of file AdaptiveMCMCHandler.h.
|
inline |
Get the parameter means used in the adaptive handler.
Definition at line 113 of file AdaptiveMCMCHandler.h.
|
inline |
Returns enum describing our param type.
i | parameter index |
Definition at line 36 of file ParameterHandlerGeneric.h.
|
inline |
ETA - just return a string of "spline", "norm" or "functional".
i | parameter index |
Definition at line 32 of file ParameterHandlerGeneric.h.
|
inline |
Get current parameter value.
i | Parameter index |
Definition at line 258 of file ParameterHandlerBase.h.
|
inline |
Get current parameter value using PCA.
i | Parameter index |
Definition at line 164 of file PCAHandler.h.
|
inline |
Get fancy name of the Parameter.
i | Parameter index |
Definition at line 171 of file ParameterHandlerBase.h.
int ParameterHandlerBase::GetParIndex | ( | const std::string & | name | ) | const |
Get index based on name.
Definition at line 879 of file ParameterHandlerBase.cpp.
|
inline |
Get prior parameter value.
i | Parameter index |
Definition at line 262 of file ParameterHandlerBase.h.
|
inline |
Get name of parameter.
i | Parameter index |
Definition at line 162 of file ParameterHandlerBase.h.
|
inline |
Get proposed parameter value.
i | Parameter index |
Definition at line 254 of file ParameterHandlerBase.h.
|
inline |
Get current parameter value using PCA.
i | Parameter index |
Definition at line 150 of file PCAHandler.h.
|
inline |
ETA - just return the int of the SampleName, this can be removed to do a string comp at some point.
i | parameter index |
Definition at line 28 of file ParameterHandlerGeneric.h.
const std::vector< int > ParameterHandlerGeneric::GetParsIndexFromSampleName | ( | const std::string & | SampleName, |
const SystType | Type | ||
) |
DB Grab the parameter indices for the relevant SampleName.
Type | Type of syst, for example kNorm, kSpline etc |
Definition at line 402 of file ParameterHandlerGeneric.cpp.
const std::vector< std::string > ParameterHandlerGeneric::GetParsNamesFromSampleName | ( | const std::string & | SampleName, |
const SystType | Type | ||
) |
DB Grab the parameter names for the relevant SampleName.
Type | Type of syst, for example kNorm, kSpline etc |
Definition at line 390 of file ParameterHandlerGeneric.cpp.
|
inline |
EM: value at which we cap spline knot weight.
i | spline parameter index, not confuse with global index |
Definition at line 59 of file ParameterHandlerGeneric.h.
|
inline |
EM: value at which we cap spline knot weight.
i | spline parameter index, not confuse with global index |
Definition at line 55 of file ParameterHandlerGeneric.h.
|
inline |
Get the name of the spline associated with the spline at index i.
i | spline parameter index, not to be confused with global index |
Definition at line 47 of file ParameterHandlerGeneric.h.
|
inline |
Get current parameter value using PCA.
i | Parameter index |
Definition at line 157 of file PCAHandler.h.
|
inline |
std::vector< double > ParameterHandlerBase::GetProposed | ( | ) | const |
Get vector of all proposed parameter values.
Definition at line 442 of file ParameterHandlerBase.cpp.
|
inline |
Get random value useful for debugging/CI.
i | Parameter index |
Definition at line 90 of file ParameterHandlerBase.h.
const std::vector< std::string > ParameterHandlerGeneric::GetSplineFileParsNamesFromSampleName | ( | const std::string & | SampleName | ) |
DB Get spline parameters depending on given SampleName.
const std::vector< SplineInterpolation > ParameterHandlerGeneric::GetSplineInterpolationFromSampleName | ( | const std::string & | SampleName | ) |
Get the interpolation types for splines affecting a particular SampleName.
Definition at line 129 of file ParameterHandlerGeneric.cpp.
const std::vector< std::vector< int > > ParameterHandlerGeneric::GetSplineModeVecFromSampleName | ( | const std::string & | SampleName | ) |
DB Grab the Spline Modes for the relevant SampleName.
Definition at line 145 of file ParameterHandlerGeneric.cpp.
const std::vector< SplineParameter > ParameterHandlerGeneric::GetSplineParsFromSampleName | ( | const std::string & | SampleName | ) | const |
KS: Grab the Spline parameters for the relevant SampleName.
Definition at line 356 of file ParameterHandlerGeneric.cpp.
const std::vector< std::string > ParameterHandlerGeneric::GetSplineParsNamesFromSampleName | ( | const std::string & | SampleName | ) |
DB Get spline parameters depending on given SampleName.
Definition at line 115 of file ParameterHandlerGeneric.cpp.
const std::vector< int > ParameterHandlerGeneric::GetSystIndexFromSampleName | ( | const std::string & | SampleName, |
const SystType | Type | ||
) | const |
Grab the index of the syst relative to global numbering.
Type | Type of syst, for example kNorm, kSpline etc |
Definition at line 248 of file ParameterHandlerGeneric.cpp.
|
inline |
Get matrix used for step proposal.
Definition at line 211 of file ParameterHandlerBase.h.
|
inline |
Get matrix used for step proposal.
Definition at line 214 of file ParameterHandlerBase.h.
|
inline |
Get the Cholesky decomposition of the throw matrix.
Definition at line 217 of file ParameterHandlerBase.h.
|
inline |
Get transfer matrix allowing to go from PCA base to normal base.
Definition at line 170 of file PCAHandler.h.
|
inline |
Get upper parameter bound in which it is physically valid.
i | Parameter index |
Definition at line 266 of file ParameterHandlerBase.h.
|
inline |
Check if parameter in PCA base is decomposed or not.
i | Parameter index |
Definition at line 188 of file PCAHandler.h.
|
inline |
Is parameter fixed in PCA base or not.
i | Parameter index |
Definition at line 117 of file PCAHandler.h.
bool ParameterHandlerGeneric::IsParFromGroup | ( | const int | i, |
const std::string & | Group | ||
) | const |
Checks if parameter belongs to a given group.
i | parameter index |
Group | name of group, like Xsec or Flux |
Definition at line 706 of file ParameterHandlerGeneric.cpp.