mirror of
https://github.com/sesps/SPS_SABRE_EventBuilder.git
synced 2024-11-22 18:18:52 -05:00
Hotfix for wave analysis, bug in size of test first hit
This commit is contained in:
parent
0850f9a5e5
commit
946c14cae3
|
@ -91,7 +91,7 @@ namespace EventBuilder {
|
||||||
{
|
{
|
||||||
EVB_ERROR("Waveforms are not supported by the SPS_SABRE_EventBuilder. The wave data will be skipped.");
|
EVB_ERROR("Waveforms are not supported by the SPS_SABRE_EventBuilder. The wave data will be skipped.");
|
||||||
m_hitsize += 5;
|
m_hitsize += 5;
|
||||||
char* firstHit = new char[24]; //A compass hit by default has 24 bytes (at least in our setup)
|
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, 24);
|
||||||
firstHit += m_hitsize - 4;
|
firstHit += m_hitsize - 4;
|
||||||
uint32_t nsamples = *((uint32_t*) firstHit);
|
uint32_t nsamples = *((uint32_t*) firstHit);
|
||||||
|
@ -186,6 +186,7 @@ namespace EventBuilder {
|
||||||
m_currentHit.Ns = *((uint32_t*)m_bufferIter);
|
m_currentHit.Ns = *((uint32_t*)m_bufferIter);
|
||||||
m_bufferIter += 4;
|
m_bufferIter += 4;
|
||||||
m_bufferIter += 2*m_currentHit.Ns;
|
m_bufferIter += 2*m_currentHit.Ns;
|
||||||
|
//Skip wavedata for SPS_SABRE_EventBuilder
|
||||||
}
|
}
|
||||||
|
|
||||||
if(m_smap != nullptr)
|
if(m_smap != nullptr)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user