Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

breaking: Remove Legacy init #241

Merged
merged 1 commit into from
Dec 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 0 additions & 26 deletions covariance/covarianceBase.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -321,32 +321,6 @@ void covarianceBase::init(const std::vector<std::string>& YAMLFile) {
MACH3LOG_INFO("----------------");
}

// ********************************************
void covarianceBase::init(TMatrixDSym* covMat) {
// ********************************************
_fNumPar = covMat->GetNrows();
InvertCovMatrix = new double*[_fNumPar]();
throwMatrixCholDecomp = new double*[_fNumPar]();
// Set the defaults to true
for(int i = 0; i < _fNumPar; i++)
{
InvertCovMatrix[i] = new double[_fNumPar]();
throwMatrixCholDecomp[i] = new double[_fNumPar]();
for (int j = 0; j < _fNumPar; j++)
{
InvertCovMatrix[i][j] = 0.;
throwMatrixCholDecomp[i][j] = 0.;
}
}

use_adaptive = false;
setCovMatrix(covMat);

ReserveMemory(_fNumPar);

MACH3LOG_INFO("Created covariance matrix named: {}", getName());
}

// ********************************************
// Set the covariance matrix for this class
void covarianceBase::setCovMatrix(TMatrixDSym *cov) {
Expand Down
2 changes: 0 additions & 2 deletions covariance/covarianceBase.h
Original file line number Diff line number Diff line change
Expand Up @@ -346,8 +346,6 @@ class covarianceBase {
/// @brief Initialisation of the class using config
/// @param YAMLFile A vector of strings representing the YAML files used for initialisation of matrix
void init(const std::vector<std::string>& YAMLFile);
/// @brief Initialisation of the class using only TMatrix
void init(TMatrixDSym* covMat);
/// @brief Initialise vectors with parameters information
/// @param size integer telling size to which we will resize all vectors/allocate memory
void ReserveMemory(const int size);
Expand Down
Loading