296,10 → 296,11 |
gettimeofday(&mtime, NULL); |
|
if (m_evSerial == 0) { |
memcpy(p, "DRS2", 4); // File identifier and version |
p += 4; |
// time calibration header |
memcpy(p, "TIME", 4); |
memcpy(p, "TIME", 4); |
p += 4; |
|
for (int b=0 ; b<m_nBoards ; b++) { |
// store board serial number |
sprintf((char *)p, "B#"); |
369,6 → 370,9 |
if (DRSParameters->mask & (0x1<<i)) { |
sprintf((char *)p, "C%03d", i+1); |
p += 4; |
unsigned int s = drs->GetBoard(b)->GetScaler(i); |
memcpy(p, &s, sizeof(int)); |
p += sizeof(int); |
for (int j=0 ; j<m_waveDepth ; j++) { |
// save binary date as 16-bit value: |
// 0 = -0.5V, 65535 = +0.5V for range 0 |
617,4 → 621,4 |
|
} |
|
#endif |
#endif |