From bf603529126fd9b8fc739d21143fb6b4d418f730 Mon Sep 17 00:00:00 2001 From: tmadlener Date: Mon, 29 Apr 2024 16:25:46 +0200 Subject: [PATCH] Pass arrays by const-ref --- edm4hep.yaml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/edm4hep.yaml b/edm4hep.yaml index 2ee6dedc6..480efa881 100644 --- a/edm4hep.yaml +++ b/edm4hep.yaml @@ -471,7 +471,7 @@ datatypes: declaration: " /// Set the position covariance matrix value for the two passed dimensions\n void setCovMatrix(float value, edm4hep::Cartesian dimI, edm4hep::Cartesian dimJ) { getCovMatrix().setValue(value, dimI, dimJ); }\n - void setCovMatrix(std::array values) { getCovMatrix() = values; } + void setCovMatrix(const std::array& values) { getCovMatrix() = values; } " #------------- TrackerHitPlane @@ -502,7 +502,7 @@ datatypes: declaration: " /// Set the position covariance matrix value for the two passed dimensions\n void setCovMatrix(float value, edm4hep::Cartesian dimI, edm4hep::Cartesian dimJ) { getCovMatrix().setValue(value, dimI, dimJ); }\n - void setCovMatrix(std::array values) { getCovMatrix() = values; } + void setCovMatrix(const std::array& values) { getCovMatrix() = values; } " #---------- RawTimeSeries @@ -563,7 +563,7 @@ datatypes: declaration: " /// Set the position covariance matrix value for the two passed dimensions\n void setCovMatrix(float value, edm4hep::Cartesian dimI, edm4hep::Cartesian dimJ) { getCovMatrix().setValue(value, dimI, dimJ); }\n - void setCovMatrix(std::array values) { getCovMatrix() = values; } + void setCovMatrix(const std::array& values) { getCovMatrix() = values; } " #------- ReconstructedParticle @@ -605,7 +605,7 @@ datatypes: void setType(int32_t pdg) { setPDG(pdg); }\n /// Set the four momentum covariance matrix value for the two passed dimensions\n void setCovMatrix(float value, edm4hep::FourMomCoords dimI, edm4hep::FourMomCoords dimJ) { getCovMatrix().setValue(value, dimI, dimJ); }\n - void setCovMatrix(std::array values) { getCovMatrix() = values; } + void setCovMatrix(const std::array& values) { getCovMatrix() = values; } " edm4hep::MCRecoParticleAssociation: