calculation of strip Fgvb for Fenix Tcp, format barrel calculates fgvb for the barrel More...
#include <EcalFenixTcpsFgvbEB.h>
Public Member Functions | |
EcalFenixTcpsFgvbEB () | |
void | process (std::vector< std::vector< int > > &bypasslin_out, int nStr, int bitMask, std::vector< int > &output) |
virtual | ~EcalFenixTcpsFgvbEB () |
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.
EcalFenixTcpsFgvbEB::EcalFenixTcpsFgvbEB | ( | ) |
Definition at line 4 of file EcalFenixTcpsFgvbEB.cc.
{
}//---------------------------------------------------------------
EcalFenixTcpsFgvbEB::~EcalFenixTcpsFgvbEB | ( | ) | [virtual] |
Definition at line 7 of file EcalFenixTcpsFgvbEB.cc.
{ }
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; }