Skip to content
Snippets Groups Projects
Commit 43da5866 authored by Whitney Armstrong's avatar Whitney Armstrong
Browse files

Added ZeroBuffer

parent a589f0a4
Branches
Tags
No related merge requests found
......@@ -389,6 +389,9 @@ void THcCherenkov::Clear(Option_t* opt) {
fGoodAdcTdcDiffTime.at(ielem) = kBig;
fNpe.at(ielem) = 0.0;
}
for(auto& wf : _waveforms) {
wf.ZeroBuffer();
}
}
//_____________________________________________________________________________
......
......@@ -18,6 +18,8 @@ namespace hallc {
PulseWaveForm(Int_t* buf, Int_t size = MaxNSamples) { std::copy_n(buf, MaxNSamples, std::begin(_buffer)); }
virtual ~PulseWaveForm() {}
void ZeroBuffer() { std::fill(std::begin(_buffer), std::end(_buffer), 0); }
std::array<Int_t, MaxNSamples> _buffer;
ClassDef(PulseWaveForm, 1)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment