CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_6_1_2_SLHC2/src/SimCalorimetry/EcalTrigPrimAlgos/src/EcalFenixTcpsFgvbEB.cc

Go to the documentation of this file.
00001 #include <SimCalorimetry/EcalTrigPrimAlgos/interface/EcalFenixTcpsFgvbEB.h>
00002 
00003 //---------------------------------------------------------------
00004 EcalFenixTcpsFgvbEB::EcalFenixTcpsFgvbEB()
00005 {
00006 }//---------------------------------------------------------------
00007 EcalFenixTcpsFgvbEB::~EcalFenixTcpsFgvbEB()
00008 {
00009 }
00010 //---------------------------------------------------------------
00011 void EcalFenixTcpsFgvbEB::process(std::vector<std::vector<int> > & bypasslin_out, int nStr,int bitMask,std::vector<int> & output)
00012 {
00013   //  std::vector<int> indexLut(output.size());
00014   
00015   for (unsigned int i=0;i<output.size();i++) {
00016     output[i]=0;
00017   }
00018     
00019   for (unsigned int i=0;i<output.size();i++) {
00020     int towRes = 0;
00021     for (int istrip=0;istrip<nStr;istrip++) {
00022       int res = (bypasslin_out[istrip])[i]; 
00023       res = (res >>bitMask) & 1; //res is sFGVB at this stage
00024       towRes |= res;
00025     }
00026      
00027     output[i]= towRes;
00028   }
00029   return;
00030 } 
00031