CMS 3D CMS Logo

List of all members | Public Member Functions
EcalFenixTcpsFgvbEB Class Reference

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 ()
 

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::EcalFenixTcpsFgvbEB ( )

Definition at line 4 of file EcalFenixTcpsFgvbEB.cc.

4 {} //---------------------------------------------------------------

◆ ~EcalFenixTcpsFgvbEB()

EcalFenixTcpsFgvbEB::~EcalFenixTcpsFgvbEB ( )
virtual

Definition at line 5 of file EcalFenixTcpsFgvbEB.cc.

5 {}

Member Function Documentation

◆ process()

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

Definition at line 7 of file EcalFenixTcpsFgvbEB.cc.

References mps_fire::i, and convertSQLitetoXML_cfg::output.

Referenced by EcalFenixTcp::process_part2_barrel().

10  {
11  // std::vector<int> indexLut(output.size());
12 
13  for (unsigned int i = 0; i < output.size(); i++) {
14  output[i] = 0;
15  }
16 
17  for (unsigned int i = 0; i < output.size(); i++) {
18  int towRes = 0;
19  for (int istrip = 0; istrip < nStr; istrip++) {
20  int res = (bypasslin_out[istrip])[i];
21  res = (res >> bitMask) & 1; // res is sFGVB at this stage
22  towRes |= res;
23  }
24 
25  output[i] = towRes;
26  }
27  return;
28 }
Definition: Electron.h:6