From 2b00d4e80cde0989ec41de4f3fc8cf80204833a2 Mon Sep 17 00:00:00 2001 From: Gordon McCann Date: Mon, 23 May 2022 09:15:24 -0400 Subject: [PATCH] Finish hotfix for size of test first hit --- src/evb/CompassFile.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/evb/CompassFile.cpp b/src/evb/CompassFile.cpp index 7dde091..0b74ac9 100644 --- a/src/evb/CompassFile.cpp +++ b/src/evb/CompassFile.cpp @@ -92,7 +92,7 @@ namespace EventBuilder { EVB_ERROR("Waveforms are not supported by the SPS_SABRE_EventBuilder. The wave data will be skipped."); m_hitsize += 5; char* firstHit = new char[m_hitsize]; //A compass hit by default has 24 bytes (at least in our setup) - m_file->read(firstHit, 24); + m_file->read(firstHit, m_hitsize); firstHit += m_hitsize - 4; uint32_t nsamples = *((uint32_t*) firstHit); m_hitsize += nsamples * 2; //Each sample is a 2 byte data value