10 result[0] = tower[
is_mip][0];
14 result[1] = result[0] & (tower[
is_above_mip].count() > 0);
28 result[0] = result[1] = tower[
is_mip][0];
36 result[0] = result[1] =
true;
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;
62 int TDC = tower[
i].second.first;
63 int ADC = tower[
i].second.second;
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)
115 result[4] = result[5] =
false;
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]