12 : tcpFormat_(tcpFormat), debug_(
debug), famos_(famos), binOfMax_(binOfMax) {
20 std::vector<int> &Et_odd_sum,
21 std::vector<int> &fgvb,
22 std::vector<int> &sfgvb,
24 std::vector<EcalTriggerPrimitiveSample> &
out,
25 std::vector<EcalTriggerPrimitiveSample> &
out2,
26 bool isInInnerRings) {
33 for (
unsigned int i = 0;
i <
out.size(); ++
i) {
35 myEt = Et_even_sum[
i] >> eTTotShift;
36 if (isInInnerRings && (myEt <= 0xfff))
47 lut_out = (
lut_)[myEt];
49 int ttFlag = (lut_out & 0x700) >> 8;
50 myEt = lut_out & 0xff;
56 for (
unsigned int i = 0;
i < Et_even_sum.size(); ++
i) {
58 int mysFgvb = sfgvb[
i];
59 bool is_odd_larger =
false;
62 if (Et_odd_sum[
i] > Et_even_sum[
i]) {
68 myEt = Et_even_sum[
i];
71 if (Et_odd_sum[
i] > Et_even_sum[
i]) {
74 myEt = Et_even_sum[
i];
78 myEt = Et_even_sum[
i] + Et_odd_sum[
i];
82 myEt = Et_even_sum[
i];
87 int infobit1 = myFgvb;
89 infobit1 = is_odd_larger;
91 if (isInInnerRings && (myEt <= 0xfff))
108 lut_out = (
lut_)[myEt];
110 int ttFlag = (lut_out & 0x700) >> 8;
114 myEt = lut_out & 0xff;
129 if (ecaltpgSpike !=
nullptr) {
132 if (sit != spikeMap.end()) {
139 if (it != groupmap.end()) {
140 uint32_t lutid = (*it).second;
143 if (itl != lutmap.end()) {
144 lut_ = (*itl).second.getLut();
146 edm::LogWarning(
"EcalTPG") <<
" could not find EcalTPGLutMap for " << lutid;
149 edm::LogWarning(
"EcalTPG") <<
" could not find EcalTPGFineGrainTowerEEMap for " << towid;
153 if (itbadTT != badTTMap.end()) {
std::map< uint32_t, uint16_t >::const_iterator EcalTPGTowerStatusMapIterator
std::map< uint32_t, uint16_t > EcalTPGTowerStatusMap
const EcalTPGLutMap & getMap() const
std::map< uint32_t, uint32_t >::const_iterator EcalTPGGroupsMapItr
uint16_t EEFenixTcpInfobit1
const EcalTPGGroupsMap & getMap() const
std::map< uint32_t, uint16_t >::const_iterator EcalTPGSpikeMapIterator
uint16_t EEFenixTcpOutput
const std::map< uint32_t, uint16_t > & getMap() const
std::map< uint32_t, EcalTPGLut > EcalTPGLutMap
std::map< uint32_t, uint16_t > EcalTPGSpikeMap
const std::map< uint32_t, uint16_t > & getMap() const
Log< level::Warning, false > LogWarning
std::map< uint32_t, uint32_t > EcalTPGGroupsMap
std::map< uint32_t, EcalTPGLut >::const_iterator EcalTPGLutMapItr