test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 ( )

Definition at line 4 of file EcalFenixTcpsFgvbEB.cc.

5 {
6 }//---------------------------------------------------------------
EcalFenixTcpsFgvbEB::~EcalFenixTcpsFgvbEB ( )
virtual

Definition at line 7 of file EcalFenixTcpsFgvbEB.cc.

8 {
9 }

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 ConfigBuilder.ConfigBuilder::addExtraStream(), ConfigBuilder.ConfigBuilder::completeInputCommand(), ConfigBuilder.ConfigBuilder::doNotInlineEventContent(), ConfigBuilder.ConfigBuilder.PrintAllModules::leave(), ConfigBuilder.ConfigBuilder::prepare_HLT(), ConfigBuilder.ConfigBuilder::prepare_LHE(), ConfigBuilder.ConfigBuilder::prepare_PATFILTER(), ConfigBuilder.ConfigBuilder::prepare_VALIDATION(), EcalFenixTcp::process_part2_barrel(), ConfigBuilder.ConfigBuilder::renameHLTprocessInSequence(), ConfigBuilder.ConfigBuilder::renameInputTagsInSequence(), and ConfigBuilder.ConfigBuilder::scheduleSequence().

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