Skip to content

Commit fe6fa35

Browse files
committed
Update LZEROElectronics.h
const and reference correctness
1 parent 2295e53 commit fe6fa35

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Detectors/EMCAL/simulation/include/EMCALSimulation/LZEROElectronics.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ class LZEROElectronics
7979
void setGeometry(o2::emcal::Geometry* gm) { mGeometry = gm; }
8080

8181
/// Sets the masked fastOrs from the CCDB in the LZERO
82-
void setMaskedFastOrs(std::vector<int> maskedfastors) { mMaskedFastOrs = maskedfastors; }
82+
void setMaskedFastOrs(std::vector<int> const& maskedfastors) { mMaskedFastOrs = maskedfastors; }
8383
void printMaskedFastOrs();
8484

8585
/// Set Threshold for LZERO algorithm
@@ -110,7 +110,7 @@ class LZEROElectronics
110110

111111
/// Getter for the pattern of peaks found by the LZERO algorithm
112112
/// \param p TRUElectronics object
113-
const std::vector<int>& getFiredPatches(TRUElectronics& p) const
113+
const std::vector<int>& getFiredPatches(TRUElectronics const& p) const
114114
{
115115
return p.mFiredPatches;
116116
}

0 commit comments

Comments
 (0)