22 const uint32_t*
data ) {
24 if ( boardId != 0xD3 )
25 std::cerr <<
"ERROR: You set the wrong board data to TrigGTL!!!" << std::endl;
26 if ( datasize % window != 0 )
27 std::cerr <<
"WARNING: The data in GTL maybe not complete!!!" << std::endl;
29 for ( uint32_t i = 0; i < datasize; i++ )
31 uint32_t dataId = ( (
data[i] >> 24 ) & 0x7 );
32 for ( uint32_t j = 0, mask = 1; j < 24; j++, mask <<= 1 )
36 if ( (
data[i] & mask ) != 0 ) { m_dataGroup12_One[j] += 1; }
37 if ( m_dataGroup12_One[j] == 0 ) m_dataGroup12_Zero[j] += 1;
41 if ( (
data[i] & mask ) != 0 ) { m_dataGroup12_One[j + 24] += 1; }
42 if ( m_dataGroup12_One[j + 24] == 0 ) m_dataGroup12_Zero[j + 24] += 1;
46 if ( (
data[i] & mask ) != 0 ) { m_dataGroup34_One[j] += 1; }
47 if ( m_dataGroup34_One[j] == 0 ) m_dataGroup34_Zero[j] += 1;
51 if ( (
data[i] & mask ) != 0 ) { m_dataGroup34_One[j + 24] += 1; }
52 if ( m_dataGroup34_One[j + 24] == 0 ) m_dataGroup34_Zero[j + 24] += 1;
56 if ( (
data[i] & mask ) != 0 ) { m_dataGroup5_One[j] += 1; }
57 if ( m_dataGroup5_One[j] == 0 ) m_dataGroup5_Zero[j] += 1;