#include #include "ROOT/RVec.hxx" #include "xAODFaserWaveform/WaveformHitContainer.h" ROOT::VecOps::RVec peak(xAOD::WaveformHitContainer& cont) { ROOT::VecOps::RVec res; res.reserve(cont.size()); for (auto wf : cont) { res.push_back(wf->peak()); } return res; }