diff --git a/LArCalorimeter/LArRawEvent/LArRawEvent/LArAccumulatedDigit.h b/LArCalorimeter/LArRawEvent/LArRawEvent/LArAccumulatedDigit.h index 1b8f00ce07cbc68f085864a50283216c46ca2afd..f60a72dfc1dddf18d27ada62041462e971fbde60 100755 --- a/LArCalorimeter/LArRawEvent/LArRawEvent/LArAccumulatedDigit.h +++ b/LArCalorimeter/LArRawEvent/LArRawEvent/LArAccumulatedDigit.h @@ -1,5 +1,5 @@ /* - Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration + Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration */ @@ -108,10 +108,10 @@ public: const std::vector <uint64_t>& sampleSquare, const unsigned nTrigger); - void setAddSubStep(CaloGain::CaloGain gain_value, std::vector<uint64_t> sampleSum, - std::vector < uint64_t > sampleSquare, unsigned nTrigger); - void setAddSubStep(CaloGain::CaloGain gain_value, std::vector<int64_t> sampleSum, - std::vector < int64_t > sampleSquare, unsigned nTrigger, int32_t base); + void setAddSubStep(CaloGain::CaloGain gain_value, const std::vector<uint64_t>& sampleSum, + const std::vector < uint64_t >& sampleSquare, unsigned nTrigger); + void setAddSubStep(CaloGain::CaloGain gain_value, const std::vector<int64_t>& sampleSum, + const std::vector < int64_t >& sampleSquare, unsigned nTrigger, int32_t base); bool setAddSubStep(const LArAccumulatedDigit& ad) { diff --git a/LArCalorimeter/LArRawEvent/src/LArAccumulatedDigit.cxx b/LArCalorimeter/LArRawEvent/src/LArAccumulatedDigit.cxx index 0531a28f7f1cb5c5d9e4b2d824cca8ffb0fb7a0e..f340f5b8fd88b4c26348933258d00e17957de559 100755 --- a/LArCalorimeter/LArRawEvent/src/LArAccumulatedDigit.cxx +++ b/LArCalorimeter/LArRawEvent/src/LArAccumulatedDigit.cxx @@ -146,8 +146,8 @@ bool LArAccumulatedDigit::setAddSubStep(const CaloGain::CaloGain gain_value, } -void LArAccumulatedDigit::setAddSubStep(CaloGain::CaloGain gain_value, std::vector<uint64_t> sampleSum, - std::vector <uint64_t> sampleSquare, unsigned nTrigger) +void LArAccumulatedDigit::setAddSubStep(CaloGain::CaloGain gain_value, const std::vector<uint64_t>& sampleSum, + const std::vector <uint64_t>& sampleSquare, unsigned nTrigger) { std::vector<uint64_t> tmpSum; std::vector<uint64_t> tmpSquare; @@ -185,8 +185,8 @@ void LArAccumulatedDigit::setAddSubStep(CaloGain::CaloGain gain_value, std::vect tmpSquare.clear(); } -void LArAccumulatedDigit::setAddSubStep(CaloGain::CaloGain gain_value, std::vector<int64_t> sampleSum, - std::vector <int64_t> sampleSquare, unsigned nTrigger, +void LArAccumulatedDigit::setAddSubStep(CaloGain::CaloGain gain_value, const std::vector<int64_t>& sampleSum, + const std::vector <int64_t>& sampleSquare, unsigned nTrigger, int32_t base) { int64_t tmpBase; diff --git a/Trigger/TrigT1/TrigT1Interfaces/TrigT1Interfaces/CTPSLink.h b/Trigger/TrigT1/TrigT1Interfaces/TrigT1Interfaces/CTPSLink.h index 31f5a4eb039cba40bf8f520db5b55608e2c779b6..1b5fe723200ee10aebdbc5da90272568125ff731 100644 --- a/Trigger/TrigT1/TrigT1Interfaces/TrigT1Interfaces/CTPSLink.h +++ b/Trigger/TrigT1/TrigT1Interfaces/TrigT1Interfaces/CTPSLink.h @@ -1,5 +1,5 @@ /* - Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration + Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration */ #ifndef TRIGT1INTERFACES_CTPSLINK_H #define TRIGT1INTERFACES_CTPSLINK_H @@ -121,7 +121,7 @@ namespace LVL1CTP { unsigned int m_wordsPerCTPSLink; //!< number of words per CTPSLink //! convert data contetn into string (used by dump and print) - const std::string convert(std::vector<uint32_t> data, + const std::string convert(const std::vector<uint32_t>& data, const bool longFormat = false) const; diff --git a/Trigger/TrigT1/TrigT1Interfaces/src/CTPSLink.cxx b/Trigger/TrigT1/TrigT1Interfaces/src/CTPSLink.cxx index 9158d5f90e90269be5a259d43e7efab45b0ff22a..e20c52aec8df89bda850e7b6756fcdeab7f894fe 100644 --- a/Trigger/TrigT1/TrigT1Interfaces/src/CTPSLink.cxx +++ b/Trigger/TrigT1/TrigT1Interfaces/src/CTPSLink.cxx @@ -1,5 +1,5 @@ /* - Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration + Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration */ #include "TrigT1Interfaces/CTPSLink.h" @@ -212,7 +212,7 @@ namespace LVL1CTP { return s.str(); } - const std::string CTPSLink::convert(std::vector<uint32_t> data, const bool longFormat) const + const std::string CTPSLink::convert(const std::vector<uint32_t>& data, const bool longFormat) const { std::ostringstream s;