CMS 3D CMS Logo

EcalFenixEtTot.cc
Go to the documentation of this file.
2 
3 //----------------------------------------------------------------------------------------
5 //----------------------------------------------------------------------------------------
7 //----------------------------------------------------------------------------------------
8 std::vector<int>
9 EcalFenixEtTot::process(const std::vector<EBDataFrame *> &calodatafr) {
10  std::vector<int> out;
11  return out;
12 }
13 //----------------------------------------------------------------------------------------
14 void EcalFenixEtTot::process(std::vector<std::vector<int>> &bypasslinout,
15  int nStr, int bitMask, std::vector<int> &output) {
16 
17  for (unsigned int i = 0; i < output.size(); i++) {
18  output[i] = 0;
19  }
20 
21  int mask = (1 << bitMask) - 1;
22  for (int istrip = 0; istrip < nStr; istrip++) {
23  for (unsigned int i = 0; i < bypasslinout[istrip].size(); i++) {
24  output[i] += (bypasslinout[istrip][i] &
25  mask); // fix bug inn case of EE: MSB are set for FG, so
26  // need to apply mask in summation.
27  if (output[i] > mask)
28  output[i] = mask;
29  }
30  }
31  return;
32 }
33 //----------------------------------------------------------------------------------------
virtual ~EcalFenixEtTot()
virtual std::vector< int > process(const std::vector< EBDataFrame * > &)