CMS 3D CMS Logo

Public Member Functions

EcalFenixTcpsFgvbEB Class Reference

calculation of strip Fgvb for Fenix Tcp, format barrel calculates fgvb for the barrel More...

#include <EcalFenixTcpsFgvbEB.h>

List of all members.

Public Member Functions

 EcalFenixTcpsFgvbEB ()
void process (std::vector< std::vector< int > > &bypasslin_out, int nStr, int bitMask, std::vector< int > &output)
virtual ~EcalFenixTcpsFgvbEB ()

Detailed Description

calculation of strip Fgvb for Fenix Tcp, format barrel calculates fgvb for the barrel

Takes the OR of all strip bits

Definition at line 15 of file EcalFenixTcpsFgvbEB.h.


Constructor & Destructor Documentation

EcalFenixTcpsFgvbEB::EcalFenixTcpsFgvbEB ( )

Definition at line 4 of file EcalFenixTcpsFgvbEB.cc.

{
}//---------------------------------------------------------------
EcalFenixTcpsFgvbEB::~EcalFenixTcpsFgvbEB ( ) [virtual]

Definition at line 7 of file EcalFenixTcpsFgvbEB.cc.

{
}

Member Function Documentation

void EcalFenixTcpsFgvbEB::process ( std::vector< std::vector< int > > &  bypasslin_out,
int  nStr,
int  bitMask,
std::vector< int > &  output 
)

Definition at line 11 of file EcalFenixTcpsFgvbEB.cc.

References i.

Referenced by EcalFenixTcp::process_part2_barrel().

{
  //  std::vector<int> indexLut(output.size());
  
  for (unsigned int i=0;i<output.size();i++) {
    output[i]=0;
  }
    
  for (unsigned int i=0;i<output.size();i++) {
    int towRes = 0;
    for (int istrip=0;istrip<nStr;istrip++) {
      int res = (bypasslin_out[istrip])[i]; 
      res = (res >>bitMask) & 1; //res is sFGVB at this stage
      towRes |= res;
    }
     
    output[i]= towRes;
  }
  return;
}