15 std::vector<int> indexLut(output.size());
17 for (
unsigned int i = 0;
i < output.size();
i++) {
20 for (
unsigned int ixtal = 0; ixtal < linout.size(); ixtal++) {
21 int adc = linout[ixtal][
i];
22 int res = (((adc & 0xffff) >
threshold_fg_) || ((adc & 0x30000) != 0x0)) ? 1 : 0;
23 indexLut[
i] = indexLut[
i] | (res << ixtal);
25 int mask = 1 << (indexLut[
i]);
26 output[
i] = ((
lut_fg_ & mask) == 0x0) ? 0 : 1;
28 output[
i - 1] = output[
i];
36 if (it != fgmap.end()) {
40 if (identif ==
false) {
41 edm::LogWarning(
"EcalTPG") <<
" could not find EcalTPGFineGrainStripEEMap entry for at least "
std::map< uint32_t, EcalTPGFineGrainStripEE::Item > EcalTPGFineGrainStripEEMap
void process(std::vector< std::vector< int >> &lin_out, std::vector< int > &output)
void setParameters(int identif, uint32_t id, const EcalTPGFineGrainStripEE *)
virtual ~EcalFenixStripFgvbEE()
std::map< uint32_t, EcalTPGFineGrainStripEE::Item >::const_iterator EcalTPGFineGrainStripEEMapIterator
const std::map< uint32_t, Item > & getMap() const
Log< level::Warning, false > LogWarning
uint16_t *__restrict__ uint16_t const *__restrict__ adc