test
CMS 3D CMS Logo

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