Finish hotfix for size of test first hit

This commit is contained in:
Gordon McCann 2022-05-23 09:15:24 -04:00
parent 946c14cae3
commit 2b00d4e80c

View File

@ -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