15 unsigned int maskFgvb[]={1,2,4,8,0x10};
24 std::vector<int> indexLut(output.size());
26 for (
unsigned int i=0;
i<output.size();
i++) {
29 for (
unsigned int ixtal=0;ixtal<linout.size();ixtal++) {
30 int adc=linout[ixtal][
i];
31 int res= (adc>threshold_fg) ? 1 : 0;
32 indexLut[
i]=indexLut[
i] | (res <<ixtal & maskFgvb[ixtal]);
34 int mask = 1<<indexLut[
i];
35 output[
i]= lut_fg & mask;
36 if (output[
i]>0) output[
i]=1;
45 if (it!=fgmap.end())
fgparams_=&(*it).second;
46 else edm::LogWarning(
"EcalTPG")<<
" could not find EcalTPGFineGrainStripEEMap entry for "<<
id;
int adc(sample_type sample)
get the ADC sample (12 bits)
std::map< uint32_t, EcalTPGFineGrainStripEE::Item > EcalTPGFineGrainStripEEMap
const EcalTPGFineGrainStripEE::Item * fgparams_
virtual ~EcalFenixStripFgvbEE()
std::map< uint32_t, EcalTPGFineGrainStripEE::Item >::const_iterator EcalTPGFineGrainStripEEMapIterator
void process(std::vector< std::vector< int > > &lin_out, std::vector< int > &output)
void setParameters(uint32_t id, const EcalTPGFineGrainStripEE *)