CMS 3D CMS Logo

EcalFenixTcpsFgvbEB.cc
Go to the documentation of this file.
2 
3 //---------------------------------------------------------------
5 {
6 }//---------------------------------------------------------------
8 {
9 }
10 //---------------------------------------------------------------
11 void EcalFenixTcpsFgvbEB::process(std::vector<std::vector<int> > & bypasslin_out, int nStr,int bitMask,std::vector<int> & output)
12 {
13  // std::vector<int> indexLut(output.size());
14 
15  for (unsigned int i=0;i<output.size();i++) {
16  output[i]=0;
17  }
18 
19  for (unsigned int i=0;i<output.size();i++) {
20  int towRes = 0;
21  for (int istrip=0;istrip<nStr;istrip++) {
22  int res = (bypasslin_out[istrip])[i];
23  res = (res >>bitMask) & 1; //res is sFGVB at this stage
24  towRes |= res;
25  }
26 
27  output[i]= towRes;
28  }
29  return;
30 }
31 
void process(std::vector< std::vector< int > > &bypasslin_out, int nStr, int bitMask, std::vector< int > &output)
Definition: Electron.h:6