Skip to content

Commit c7ac2dd

Browse files
committed
pass array container as const&
1 parent c0618d4 commit c7ac2dd

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

Detectors/ZDC/simulation/include/ZDCSimulation/Digitizer.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ class Digitizer
114114
{
115115
return std::bitset<NChannels>(v);
116116
}
117-
void phe2Sample(int nphe, int parID, double timeHit, std::array<o2::InteractionRecord, NBC2Cache> cachedIR, int nCachedIR, int channel);
117+
void phe2Sample(int nphe, int parID, double timeHit, std::array<o2::InteractionRecord, NBC2Cache> const& cachedIR, int nCachedIR, int channel);
118118

119119
BCCache& getCreateBCCache(const o2::InteractionRecord& ir);
120120
BCCache* getBCCache(const o2::InteractionRecord& ir);

Detectors/ZDC/simulation/src/Digitizer.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,7 @@ void Digitizer::storeBC(const BCCache& bc, uint32_t chan2Store,
292292
}
293293
}
294294

295-
void Digitizer::phe2Sample(int nphe, int parID, double timeHit, std::array<o2::InteractionRecord, NBC2Cache> cachedIR, int nCachedIR, int channel)
295+
void Digitizer::phe2Sample(int nphe, int parID, double timeHit, std::array<o2::InteractionRecord, NBC2Cache> const& cachedIR, int nCachedIR, int channel)
296296
{
297297
//function to simulate the waveform from no. of photoelectrons seen in a given sample
298298
// for electrons at timeInSample wrt beginning of the sample

0 commit comments

Comments
 (0)