1367 const Time &
t = get<0>(dat);
1368 const bool changed = get<1>(dat);
1369 const FAD::EventHeader &h = get<2>(dat);
1371 const FAD::EventHeader old =
fVecHeader[h.Id()];
1374 if (old.fVersion != h.fVersion || changed)
1378 array<float,42>
data;
1379 for (
int i=0;
i<42;
i++)
1382 str << (ver[i]>>8) <<
'.' << (ver[
i]&0xff);
1383 data[
i] = stof(str.str());
1388 if (old.fRunNumber != h.fRunNumber || changed)
1395 if (old.fTriggerGeneratorPrescaler != h.fTriggerGeneratorPrescaler || changed)
1402 if (old.fDNA != h.fDNA || changed)
1408 if (old.fStatus != h.fStatus || changed)
1414 if (memcmp(old.fDac, h.fDac,
sizeof(h.fDac)) || changed)
1416 array<uint16_t, FAD::kNumDac*42> dacs;
1421 memcpy(&dacs[
i*42], &dac[0],
sizeof(uint16_t)*42);
DimDescribedService fDimDNA
array< FAD::EventHeader, 40 > fVecHeader
void Update(DimDescribedService &svc, const array< T, N > &data, const Time &t=Time(), int n=N)
DimDescribedService fDimStatus
array< T, 42 > Compare(const S *vec, const T *t)
Adds some functionality to boost::posix_time::ptime for our needs.
DimDescribedService fDimDac
DimDescribedService fDimPrescaler
array< T, 42 > CompareBits(const FAD::EventHeader *h, const T *t)
DimDescribedService fDimRunNumber
void setData(const void *ptr, size_t sz)
DimDescribedService fDimFwVersion