diff --git a/MuonSpectrometer/MuonAlignment/MuonAlignmentData/MuonAlignmentData/CscInternalAlignmentPar.h b/MuonSpectrometer/MuonAlignment/MuonAlignmentData/MuonAlignmentData/CscInternalAlignmentPar.h index c057959e908e7556cc445f8896c1b34507023c0e..a93508fa63920309613921d039faa6ee742e9b51 100755 --- a/MuonSpectrometer/MuonAlignment/MuonAlignmentData/MuonAlignmentData/CscInternalAlignmentPar.h +++ b/MuonSpectrometer/MuonAlignment/MuonAlignmentData/MuonAlignmentData/CscInternalAlignmentPar.h @@ -17,7 +17,7 @@ class CscInternalAlignmentPar : public MuonAlignmentPar { // destructor virtual ~CscInternalAlignmentPar() override = default; - void setAmdbId(std::string type, int jff, int jzz, int job, int wireLayer); + void setAmdbId(const std::string& type, int jff, int jzz, int job, int wireLayer); void getAmdbId(std::string& type, int& jff, int& jzz, int& job, int& wireLayer) const; void setParameters(float s, float z, float t, diff --git a/MuonSpectrometer/MuonAlignment/MuonAlignmentData/MuonAlignmentData/MuonAlignmentPar.h b/MuonSpectrometer/MuonAlignment/MuonAlignmentData/MuonAlignmentData/MuonAlignmentPar.h index bf72a2519ae30ba428fd4346227a3cbc04c4303f..de4a9f8510d507225e636411c7fcbbb257acc828 100755 --- a/MuonSpectrometer/MuonAlignment/MuonAlignmentData/MuonAlignmentData/MuonAlignmentPar.h +++ b/MuonSpectrometer/MuonAlignment/MuonAlignmentData/MuonAlignmentData/MuonAlignmentPar.h @@ -21,7 +21,7 @@ class MuonAlignmentPar { Identifier identify() const {return m_stationId;} std::string key() const {return m_stationKey;} - void setAmdbId(std::string type, int jff, int jzz, int job); + void setAmdbId(const std::string& type, int jff, int jzz, int job); void getAmdbId(std::string& type, int& jff, int& jzz, int& job) const; bool isNew() const {return m_isNew;} diff --git a/MuonSpectrometer/MuonAlignment/MuonAlignmentData/src/CscInternalAlignmentPar.cxx b/MuonSpectrometer/MuonAlignment/MuonAlignmentData/src/CscInternalAlignmentPar.cxx index a6c5173b1b4a7144455e5d63005b5a3e83b7af99..505c790c4da519bf38d813d3e1779ec3025f4785 100755 --- a/MuonSpectrometer/MuonAlignment/MuonAlignmentData/src/CscInternalAlignmentPar.cxx +++ b/MuonSpectrometer/MuonAlignment/MuonAlignmentData/src/CscInternalAlignmentPar.cxx @@ -37,7 +37,7 @@ void CscInternalAlignmentPar::getParameters(float& s, float& z, float& t, rotT = m_rotT; } -void CscInternalAlignmentPar::setAmdbId(std::string type, int jff, int jzz, int job, int wireLayer) +void CscInternalAlignmentPar::setAmdbId(const std::string& type, int jff, int jzz, int job, int wireLayer) { m_Type = type; m_Jff = jff; diff --git a/MuonSpectrometer/MuonAlignment/MuonAlignmentData/src/MuonAlignmentPar.cxx b/MuonSpectrometer/MuonAlignment/MuonAlignmentData/src/MuonAlignmentPar.cxx index 8ed8264788f87fe7b24727e6e6522d80040c1b61..bea7e0eeb2d0846db2bc0e588ad7fe063279fae5 100755 --- a/MuonSpectrometer/MuonAlignment/MuonAlignmentData/src/MuonAlignmentPar.cxx +++ b/MuonSpectrometer/MuonAlignment/MuonAlignmentData/src/MuonAlignmentPar.cxx @@ -8,7 +8,7 @@ MuonAlignmentPar::MuonAlignmentPar() : m_Jff(0), m_Jzz(0), m_Job(0), m_isNew(false) { } -void MuonAlignmentPar::setAmdbId(std::string type, int jff, int jzz, int job) +void MuonAlignmentPar::setAmdbId(const std::string& type, int jff, int jzz, int job) { m_Type = type; m_Jff = jff;