47 int tp_ieta =
id.ieta();
55 for (
size_t i = 0;
i < 7;
i++) {
56 int bit12_15set =
tower[
i].first.first;
57 bool is_compressed =
tower[
i].first.second;
58 int bit12 = (bit12_15set & 0b0001);
59 int bit13 = (bit12_15set & 0b0010) >> 1;
60 int bit14 = (bit12_15set & 0b0100) >> 2;
61 int bit15 = (bit12_15set & 0b1000) >> 3;
67 if ((
abs(tp_ieta) <= 16) || (
i >= 1)) {
71 if (is_compressed == 1) {
72 if (
TDC == 1 && bit15 == 1)
74 if (
TDC == 2 && bit15 == 1)
76 if (
TDC == 0 && bit14 == 1)
90 if (
ADC > 0 && bit12 == 0)
93 if (
ADC > 0 && bit13 == 1)
99 if (DeepEnergy > 0 && EarlyEnergy == 0)
111 if (NveryDelayed > 0)
std::array< std::bitset< 6 >, 2 > Tower
std::array< std::pair< std::pair< int, bool >, std::pair< int, int > >, 7 > TowerTDC
Abs< T >::type abs(const T &t)
std::bitset< 2 > compute(const Tower &) const
const int tdc_boundary[29][7]