![]() |
MaCh3
2.2.3
Reference Guide
|
Functions | |
int | adaptive_mcmc::AdaptiveMCMCHandler::GetNumParams () const |
Get the current values of the parameters. More... | |
int | adaptive_mcmc::AdaptiveMCMCHandler::GetTotalSteps () const |
Get Total Number of Steps. More... | |
TMatrixDSym * | adaptive_mcmc::AdaptiveMCMCHandler::GetAdaptiveCovariance () const |
Increase by one number of total steps. More... | |
std::vector< double > | adaptive_mcmc::AdaptiveMCMCHandler::GetParameterMeans () const |
Get the parameter means used in the adaptive handler. More... | |
std::string | adaptive_mcmc::AdaptiveMCMCHandler::GetOutFileName () const |
Get Name of Output File. More... | |
double | ParameterHandlerBase::GetRandomThrow (const int i) const |
Get random value useful for debugging/CI. More... | |
virtual double | ParameterHandlerBase::GetLikelihood () |
Return CalcLikelihood if some params were thrown out of boundary return LARGE_LOGL More... | |
TMatrixDSym * | ParameterHandlerBase::GetCovMatrix () const |
Return covariance matrix. More... | |
TMatrixDSym * | ParameterHandlerBase::GetInvCovMatrix () const |
Return inverted covariance matrix. More... | |
double | ParameterHandlerBase::GetInvCovMatrix (const int i, const int j) const |
Return inverted covariance matrix. More... | |
double | ParameterHandlerBase::GetCorrThrows (const int i) const |
Return correlated throws. More... | |
bool | ParameterHandlerBase::GetFlatPrior (const int i) const |
Get if param has flat prior or not. More... | |
std::string | ParameterHandlerBase::GetName () const |
Get name of covariance. More... | |
std::string | ParameterHandlerBase::GetParName (const int i) const |
Get name of parameter. More... | |
int | ParameterHandlerBase::GetParIndex (const std::string &name) const |
Get index based on name. More... | |
std::string | ParameterHandlerBase::GetParFancyName (const int i) const |
Get fancy name of the Parameter. More... | |
std::string | ParameterHandlerBase::GetInputFile () const |
Get name of input file. More... | |
double | ParameterHandlerBase::GetDiagonalError (const int i) const |
Get diagonal error for ith parameter. More... | |
double | ParameterHandlerBase::GetError (const int i) const |
Get the error for the ith parameter. More... | |
bool | ParameterHandlerBase::GetDoAdaption () const |
Do we adapt or not. More... | |
TMatrixDSym * | ParameterHandlerBase::GetThrowMatrix () const |
Get matrix used for step proposal. More... | |
double | ParameterHandlerBase::GetThrowMatrix (const int i, const int j) const |
Get matrix used for step proposal. More... | |
TH2D * | ParameterHandlerBase::GetCorrelationMatrix () |
KS: Convert covariance matrix to correlation matrix and return TH2D which can be used for fancy plotting. More... | |
int | ParameterHandlerBase::GetNumParams () const |
Get total number of parameters. More... | |
std::vector< double > | ParameterHandlerBase::GetPreFitValues () const |
Get the pre-fit values of the parameters. More... | |
std::vector< double > | ParameterHandlerBase::GetProposed () const |
Get vector of all proposed parameter values. More... | |
double | ParameterHandlerBase::GetParProp (const int i) const |
Get proposed parameter value. More... | |
double | ParameterHandlerBase::GetParCurr (const int i) const |
Get current parameter value. More... | |
const std::vector< double > & | ParameterHandlerBase::GetParCurrVec () const |
Get vector of current parameter values. More... | |
double | ParameterHandlerBase::GetParInit (const int i) const |
Get prior parameter value. More... | |
double | ParameterHandlerBase::GetUpperBound (const int i) const |
Get upper parameter bound in which it is physically valid. More... | |
double | ParameterHandlerBase::GetLowerBound (const int i) const |
Get lower parameter bound in which it is physically valid. More... | |
double | ParameterHandlerBase::GetIndivStepScale (const int ParameterIndex) const |
Get individual step scale for selected parameter. More... | |
double | ParameterHandlerBase::GetGlobalStepScale () const |
Get global step scale for covariance object. More... | |
int | ParameterHandlerBase::GetNParameters () const |
Get number of params which will be different depending if using Eigen decomposition or not. More... | |
YAML::Node | ParameterHandlerBase::GetConfig () const |
Getter to return a copy of the YAML node. More... | |
adaptive_mcmc::AdaptiveMCMCHandler * | ParameterHandlerBase::GetAdaptiveHandler () const |
Get pointer for AdaptiveHandler. More... | |
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. More... | |
std::string | ParameterHandlerGeneric::GetParamTypeString (const int i) const |
ETA - just return a string of "spline", "norm" or "functional". More... | |
SystType | ParameterHandlerGeneric::GetParamType (const int i) const |
Returns enum describing our param type. More... | |
const std::vector< SplineInterpolation > | ParameterHandlerGeneric::GetSplineInterpolationFromSampleName (const std::string &SampleName) |
Get the interpolation types for splines affecting a particular SampleName. More... | |
std::string | ParameterHandlerGeneric::GetParSplineName (const int i) const |
Get the name of the spline associated with the spline at index i. More... | |
const std::vector< int > | ParameterHandlerGeneric::GetGlobalSystIndexFromSampleName (const std::string &SampleName, const SystType Type) |
DB Get spline parameters depending on given SampleName. More... | |
double | ParameterHandlerGeneric::GetParSplineKnotUpperBound (const int i) const |
EM: value at which we cap spline knot weight. More... | |
double | ParameterHandlerGeneric::GetParSplineKnotLowerBound (const int i) const |
EM: value at which we cap spline knot weight. More... | |
int | ParameterHandlerGeneric::GetNumParamsFromSampleName (const std::string &SampleName, const SystType Type) |
DB Grab the number of parameters for the relevant SampleName. More... | |
const std::vector< std::string > | ParameterHandlerGeneric::GetParsNamesFromSampleName (const std::string &SampleName, const SystType Type) |
DB Grab the parameter names for the relevant SampleName. More... | |
const std::vector< int > | ParameterHandlerGeneric::GetParsIndexFromSampleName (const std::string &SampleName, const SystType Type) |
DB Grab the parameter indices for the relevant SampleName. More... | |
const std::vector< std::string > | ParameterHandlerGeneric::GetSplineParsNamesFromSampleName (const std::string &SampleName) |
DB Get spline parameters depending on given SampleName. More... | |
const std::vector< std::string > | ParameterHandlerGeneric::GetSplineFileParsNamesFromSampleName (const std::string &SampleName) |
DB Get spline parameters depending on given SampleName. More... | |
const std::vector< std::vector< int > > | ParameterHandlerGeneric::GetSplineModeVecFromSampleName (const std::string &SampleName) |
DB Grab the Spline Modes for the relevant SampleName. More... | |
const std::vector< int > | ParameterHandlerGeneric::GetSystIndexFromSampleName (const std::string &SampleName, const SystType Type) const |
Grab the index of the syst relative to global numbering. More... | |
const std::vector< NormParameter > | ParameterHandlerGeneric::GetNormParsFromSampleName (const std::string &SampleName) const |
DB Get norm/func parameters depending on given SampleName. More... | |
const std::vector< FunctionalParameter > | ParameterHandlerGeneric::GetFunctionalParametersFromSampleName (const std::string &SampleName) const |
HH Get functional parameters for the relevant SampleName. More... | |
const std::vector< SplineParameter > | ParameterHandlerGeneric::GetSplineParsFromSampleName (const std::string &SampleName) const |
KS: Grab the Spline parameters for the relevant SampleName. More... | |
bool | ParameterHandlerGeneric::IsParFromGroup (const int i, const std::string &Group) const |
Checks if parameter belongs to a given group. More... | |
int | ParameterHandlerGeneric::GetNumParFromGroup (const std::string &Group) const |
KS: Check how many parameters are associated with given group. More... | |
std::vector< std::string > | ParameterHandlerGeneric::GetUniqueParameterGroups () |
KS: Get names of all unique parameter groups. More... | |
std::vector< const double * > | ParameterHandlerGeneric::GetOscParsFromSampleName (const std::string &SampleName) |
Get pointers to Osc params from Sample name. More... | |
bool | PCAHandler::IsParameterFixedPCA (const int i) const |
Is parameter fixed in PCA base or not. More... | |
const TMatrixD | PCAHandler::GetEigenVectors () const |
Get eigen vectors of covariance matrix, only works with PCA. More... | |
double | PCAHandler::GetParPropPCA (const int i) const |
Get current parameter value using PCA. More... | |
double | PCAHandler::GetPreFitValuePCA (const int i) const |
Get current parameter value using PCA. More... | |
double | PCAHandler::GetParCurrPCA (const int i) const |
Get current parameter value using PCA. More... | |
const TMatrixD | PCAHandler::GetTransferMatrix () const |
Get transfer matrix allowing to go from PCA base to normal base. More... | |
const TVectorD | PCAHandler::GetEigenValues () const |
Get eigen values for all parameters, if you want for decomposed only parameters use GetEigenValuesMaster. More... | |
const std::vector< double > | PCAHandler::GetEigenValuesMaster () const |
Get eigen value of only decomposed parameters, if you want for all parameters use GetEigenValues. More... | |
bool | PCAHandler::IsParameterDecomposed (const int i) const |
Check if parameter in PCA base is decomposed or not. More... | |
Group of functions to get various parameters, names, and values.
|
inline |
Increase by one number of total steps.
Definition at line 115 of file AdaptiveMCMCHandler.h.
|
inline |
Get pointer for AdaptiveHandler.
Definition at line 345 of file ParameterHandlerBase.h.
|
inline |
Getter to return a copy of the YAML node.
Definition at line 341 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 1182 of file ParameterHandlerBase.cpp.
|
inline |
Return correlated throws.
i | Parameter index |
Definition at line 150 of file ParameterHandlerBase.h.
|
inline |
Return covariance matrix.
Definition at line 139 of file ParameterHandlerBase.h.
|
inline |
Get diagonal error for ith parameter.
i | Parameter index |
Definition at line 180 of file ParameterHandlerBase.h.
|
inline |
|
inline |
Get eigen values for all parameters, if you want for decomposed only parameters use GetEigenValuesMaster.
Definition at line 206 of file PCAHandler.h.
|
inline |
Get eigen value of only decomposed parameters, if you want for all parameters use GetEigenValues.
Definition at line 211 of file PCAHandler.h.
|
inline |
Get eigen vectors of covariance matrix, only works with PCA.
Definition at line 154 of file PCAHandler.h.
|
inline |
Get the error for the ith parameter.
i | Parameter index |
Definition at line 184 of file ParameterHandlerBase.h.
|
inline |
Get if param has flat prior or not.
i | Parameter index |
Definition at line 155 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 279 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 276 of file ParameterHandlerBase.h.
|
inline |
Get name of input file.
Definition at line 175 of file ParameterHandlerBase.h.
|
inline |
Return inverted covariance matrix.
Definition at line 142 of file ParameterHandlerBase.h.
|
inline |
Return inverted covariance matrix.
Definition at line 145 of file ParameterHandlerBase.h.
|
virtual |
Return CalcLikelihood if some params were thrown out of boundary return LARGE_LOGL
Reimplemented in PyParameterHandlerBase.
Definition at line 800 of file ParameterHandlerBase.cpp.
|
inline |
Get lower parameter bound in which it is physically valid.
i | Parameter index |
Definition at line 272 of file ParameterHandlerBase.h.
|
inline |
Get name of covariance.
Definition at line 159 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 283 of file ParameterHandlerBase.h.
|
inline |
Get the current values of the parameters.
Definition at line 82 of file AdaptiveMCMCHandler.h.
|
inline |
int ParameterHandlerGeneric::GetNumParamsFromSampleName | ( | const std::string & | SampleName, |
const SystType | Type | ||
) |
DB Grab the number of parameters for the relevant SampleName.
SampleName | property of SampleHandler class based on which we select whether to apply uncertainties or not |
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 734 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 745 of file ParameterHandlerGeneric.cpp.
|
inline |
Get Name of Output File.
Definition at line 127 of file AdaptiveMCMCHandler.h.
|
inline |
Get the parameter means used in the adaptive handler.
Definition at line 121 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 256 of file ParameterHandlerBase.h.
|
inline |
Get current parameter value using PCA.
i | Parameter index |
Definition at line 194 of file PCAHandler.h.
|
inline |
|
inline |
Get fancy name of the Parameter.
i | Parameter index |
Definition at line 172 of file ParameterHandlerBase.h.
int ParameterHandlerBase::GetParIndex | ( | const std::string & | name | ) | const |
Get index based on name.
Definition at line 883 of file ParameterHandlerBase.cpp.
|
inline |
Get prior parameter value.
i | Parameter index |
Definition at line 264 of file ParameterHandlerBase.h.
|
inline |
Get name of parameter.
i | Parameter index |
Definition at line 163 of file ParameterHandlerBase.h.
|
inline |
Get proposed parameter value.
i | Parameter index |
Definition at line 252 of file ParameterHandlerBase.h.
|
inline |
Get current parameter value using PCA.
i | Parameter index |
Definition at line 180 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.
SampleName | property of SampleHandler class based on which we select whether to apply uncertainties or not |
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.
SampleName | property of SampleHandler class based on which we select whether to apply uncertainties or not |
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 187 of file PCAHandler.h.
|
inline |
std::vector< double > ParameterHandlerBase::GetProposed | ( | ) | const |
Get vector of all proposed parameter values.
Definition at line 441 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.
SampleName | property of SampleHandler class based on which we select whether to apply uncertainties or not |
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 212 of file ParameterHandlerBase.h.
|
inline |
Get matrix used for step proposal.
Definition at line 215 of file ParameterHandlerBase.h.
|
inline |
Get Total Number of Steps.
Definition at line 99 of file AdaptiveMCMCHandler.h.
|
inline |
Get transfer matrix allowing to go from PCA base to normal base.
Definition at line 200 of file PCAHandler.h.
std::vector< std::string > ParameterHandlerGeneric::GetUniqueParameterGroups | ( | ) |
KS: Get names of all unique parameter groups.
Definition at line 642 of file ParameterHandlerGeneric.cpp.
|
inline |
Get upper parameter bound in which it is physically valid.
i | Parameter index |
Definition at line 268 of file ParameterHandlerBase.h.
|
inline |
Check if parameter in PCA base is decomposed or not.
i | Parameter index |
Definition at line 218 of file PCAHandler.h.
|
inline |
Is parameter fixed in PCA base or not.
i | Parameter index |
Definition at line 147 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 721 of file ParameterHandlerGeneric.cpp.