From d6b64af3b2ff0d280c8b6776cd73c7534fe6b2a1 Mon Sep 17 00:00:00 2001 From: Luke Legnosky Date: Tue, 9 Jul 2024 14:28:25 -0400 Subject: [PATCH] Updated m_nSamples to be <= m_nadcSamples --- TPC/DAQ/TPCRawDataTree/TPCRawDataTree.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/TPC/DAQ/TPCRawDataTree/TPCRawDataTree.cc b/TPC/DAQ/TPCRawDataTree/TPCRawDataTree.cc index efc5ee5c..0fc6612b 100644 --- a/TPC/DAQ/TPCRawDataTree/TPCRawDataTree.cc +++ b/TPC/DAQ/TPCRawDataTree/TPCRawDataTree.cc @@ -178,7 +178,7 @@ int TPCRawDataTree::process_event(PHCompositeNode *topNode) else{ fillHist=R3_hist; fillHist2D=R3_time;} - assert(m_nSamples < (int) m_adcSamples.size()); // no need for movements in memory allocation + assert(m_nSamples <= (int) m_adcSamples.size()); // no need for movements in memory allocation for (int s = 0; s < m_nSamples; s++) { m_adcSamples[s] = p->iValue(wf, s);