CMS 3D CMS Logo

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