This writes one event to the file
- Parameters
-
e | the pointer to the EVENT |
Implements DataProcessorImp.
Definition at line 207 of file DataWriteFits.cc.
References data, EVT_CTRL2::fEvent, fTriggerCounter, EVT_CTRL2::time, and EVT_CTRL2::triggerCounter.
Referenced by DataWriteFits().
219 const EVENT &e = *evt.
fEvent;
221 const int realRoiTM = (e.RoiTM > e.Roi) ? e.Roi : 0;
222 const size_t sz =
sizeof(EVENT) +
sizeof(e.StartPix)*e.Roi+
sizeof(e.StartTM)*realRoiTM;
224 const vector<char>
data =
fConv->
ToFits(reinterpret_cast<const char*>(&e)+4, sz-4);
bool WriteData(size_t &start, const void *ptr, size_t size)
std::array< uint32_t, 8 > triggerCounter
void ToFits(void *dest, const void *src, size_t size) const
std::array< uint32_t, 8 > fTriggerCounter