CMS 3D CMS Logo

EcalFenixEtTot.cc
Go to the documentation of this file.
2 
3 //----------------------------------------------------------------------------------------
5 //----------------------------------------------------------------------------------------
7 //----------------------------------------------------------------------------------------
8 std::vector<int> EcalFenixEtTot::process(const std::vector<EBDataFrame *> &calodatafr) {
9  std::vector<int> out;
10  return out;
11 }
12 //----------------------------------------------------------------------------------------
13 void EcalFenixEtTot::process(std::vector<std::vector<int>> &bypasslinout,
14  int nStr,
15  int bitMask,
16  std::vector<int> &output) {
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] & mask); // fix bug inn case of EE: MSB are set for FG, so
25  // need to apply mask in summation.
26  if (output[i] > mask)
27  output[i] = mask;
28  }
29  }
30  return;
31 }
32 //----------------------------------------------------------------------------------------
mps_fire.i
i
Definition: mps_fire.py:428
EcalFenixEtTot::process
virtual std::vector< int > process(const std::vector< EBDataFrame * > &)
Definition: EcalFenixEtTot.cc:8
convertSQLitetoXML_cfg.output
output
Definition: convertSQLitetoXML_cfg.py:72
EcalFenixEtTot::~EcalFenixEtTot
virtual ~EcalFenixEtTot()
Definition: EcalFenixEtTot.cc:6
EcalFenixEtTot::EcalFenixEtTot
EcalFenixEtTot()
Definition: EcalFenixEtTot.cc:4
EcalFenixEtTot.h
trackerHitRTTI::vector
Definition: trackerHitRTTI.h:21
MillePedeFileConverter_cfg.out
out
Definition: MillePedeFileConverter_cfg.py:31