FACT++  1.0
bool DataWriteRaw::WriteEvt ( const EVT_CTRL2 evt)
virtual

Implements DataProcessorImp.

Definition at line 81 of file DataWriteRaw.cc.

References EVT_CTRL2::fEvent, and NPIX.

82 {
83  const EVENT &e = *evt.fEvent;
84 
85  const int sh = sizeof(EVENT)-2 + NPIX*e.Roi*2;
86 
87  WriteBlockHeader(kEvent, 1, fCounter++, sh);
88  fOut.write(reinterpret_cast<const char*>(&e)+2, sh);
89  return true;
90 }
std::ofstream fOut
Definition: DataWriteRaw.h:8
EVENT * fEvent
Definition: EventBuilder.h:132
void WriteBlockHeader(uint32_t type, uint32_t ver, uint32_t cnt, uint32_t len)
Definition: DataWriteRaw.cc:8
#define NPIX
Definition: BasicGlCamera.h:5
uint32_t fCounter
Definition: DataWriteRaw.h:12