27{
28 uint32_t REId, TEId, TETDC, TEADC, measure;
29 uint32_t nbuf = src.
nBuf();
30
31 for (uint32_t i = 0; i < nbuf; ++i) {
32 uint32_t* buf = src(i);
33 uint32_t* bufend = buf + src.
bufSize(i);
34 for (; buf < bufend; ++buf) {
35
36 m_builder.
unPack(*buf, REId, TETDC, TEADC, measure);
37
39 if ( TEId == 0xFFFFFFFF ) continue;
40
41 if ( m_EmcProvider ) {
42
46 m_EmcProvider->
doCalib(
id, measure, TEADC);
47 }
48
49
52 des->push_back(emcDigi);
53 }
54 }
55
56 return StatusCode::SUCCESS;
57}
uint32_t bufSize(int i) const
uint32_t getTEID(uint32_t reid)
void unPack(uint32_t reDigi, uint32_t &REId, uint32_t &TETDC, uint32_t &TEADC, uint32_t &measure)
void setMeasure(const unsigned int measure)
bool isGoodEmcDigi(uint32_t control, uint32_t id, uint32_t measure, uint32_t adc, uint32_t tdc)
void doCalib(Identifier &id, uint32_t &measure, uint32_t &adc)