From c6256c404b7e3454df8e6756e3df954fdd6b1a72 Mon Sep 17 00:00:00 2001 From: Kamil Skwarczynski Date: Thu, 12 Dec 2024 15:54:45 +0000 Subject: [PATCH] Remove this legacy init, I can't find code using it so let's remove it --- covariance/covarianceBase.cpp | 26 -------------------------- covariance/covarianceBase.h | 2 -- 2 files changed, 28 deletions(-) diff --git a/covariance/covarianceBase.cpp b/covariance/covarianceBase.cpp index d2fb7e55..092be1c2 100644 --- a/covariance/covarianceBase.cpp +++ b/covariance/covarianceBase.cpp @@ -321,32 +321,6 @@ void covarianceBase::init(const std::vector& 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) { diff --git a/covariance/covarianceBase.h b/covariance/covarianceBase.h index 0ba6baac..a91a034d 100644 --- a/covariance/covarianceBase.h +++ b/covariance/covarianceBase.h @@ -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& 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);