CMS 3D CMS Logo

EcalFenixEtStrip.cc
Go to the documentation of this file.
2 
5 
6 void EcalFenixEtStrip::process(const std::vector<std::vector<int>> &linout,
7  int nrXtals, std::vector<int> &output) {
8  for (unsigned int i = 0; i < output.size(); i++) {
9  output[i] = 0;
10  }
11  for (int ixtal = 0; ixtal < nrXtals; ixtal++) {
12  for (unsigned int i = 0; i < output.size(); i++) {
13  output[i] += (linout[ixtal])[i];
14  }
15  }
16  for (unsigned int i = 0; i < output.size(); i++) {
17  if (output[i] > 0X3FFFF)
18  output[i] = 0X3FFFF;
19  }
20  return;
21 }
virtual ~EcalFenixEtStrip()
void process(const std::vector< std::vector< int >> &linout, int nrXtals, std::vector< int > &output)