mirror of
https://github.com/sesps/SPS_SABRE_EventBuilder.git
synced 2024-11-22 10:08:50 -05:00
Finish hotfix for size of test first hit
This commit is contained in:
parent
946c14cae3
commit
2b00d4e80c
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user