File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed
Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -316,16 +316,14 @@ float FT0AmplitudeC(TFT0 ft0)
316316template <typename TFDD>
317317float FDDAmplitudeA (TFDD fdd)
318318{
319- std::vector<int16_t > ampsA (fdd.chargeA (), fdd.chargeA () + 8 );
320- return std::accumulate (ampsA.begin (), ampsA.end (), 0 );
319+ return std::accumulate (fdd.chargeA ().begin (), fdd.chargeA ().end (), 0 );
321320}
322321
323322// -----------------------------------------------------------------------------
324323template <typename TFDD>
325324float FDDAmplitudeC (TFDD fdd)
326325{
327- std::vector<int16_t > ampsC (fdd.chargeC (), fdd.chargeC () + 8 );
328- return std::accumulate (ampsC.begin (), ampsC.end (), 0 );
326+ return std::accumulate (fdd.chargeC ().begin (), fdd.chargeC ().end (), 0 );
329327}
330328
331329// -----------------------------------------------------------------------------
You can’t perform that action at this time.
0 commit comments