CMS 3D CMS Logo

List of all members | Public Member Functions
EcalFenixEtTot Class Reference

class for calculation of Et for Fenix tcp calculates the sum More...

#include <EcalFenixEtTot.h>

Public Member Functions

 EcalFenixEtTot ()
 
virtual std::vector< int > process (const std::vector< EBDataFrame * > &)
 
void process (std::vector< std::vector< int >> &, int nStr, int bitMask, std::vector< int > &out)
 
virtual ~EcalFenixEtTot ()
 

Detailed Description

class for calculation of Et for Fenix tcp calculates the sum

inputs: -5x 12 bits (12 first bits of output of passlin or take 13 bits and select the first 12 ones in the class... for EBDataFrame 5X 10 bits (10 first bits) according to the second parameter) -number of interesting bits according EE or EBDataFrame

output :12 bits (EB) or 10(EE)

in case of overflow, result is set to (2**12)-1 or (2**10)-1

Definition at line 25 of file EcalFenixEtTot.h.

Constructor & Destructor Documentation

◆ EcalFenixEtTot()

EcalFenixEtTot::EcalFenixEtTot ( )

Definition at line 4 of file EcalFenixEtTot.cc.

4 {}

◆ ~EcalFenixEtTot()

EcalFenixEtTot::~EcalFenixEtTot ( )
virtual

Definition at line 6 of file EcalFenixEtTot.cc.

6 {}

Member Function Documentation

◆ process() [1/2]

std::vector< int > EcalFenixEtTot::process ( const std::vector< EBDataFrame * > &  calodatafr)
virtual

Definition at line 8 of file EcalFenixEtTot.cc.

8  {
9  std::vector<int> out;
10  return out;
11 }

References MillePedeFileConverter_cfg::out.

Referenced by EcalFenixTcp::process_part1().

◆ process() [2/2]

void EcalFenixEtTot::process ( std::vector< std::vector< int >> &  bypasslinout,
int  nStr,
int  bitMask,
std::vector< int > &  out 
)

Definition at line 13 of file EcalFenixEtTot.cc.

16  {
17  for (unsigned int i = 0; i < output.size(); i++) {
18  output[i] = 0;
19  }
20 
21  int mask = (1 << bitMask) - 1;
22  for (int istrip = 0; istrip < nStr; istrip++) {
23  for (unsigned int i = 0; i < bypasslinout[istrip].size(); i++) {
24  output[i] += (bypasslinout[istrip][i] & mask); // fix bug inn case of EE: MSB are set for FG, so
25  // need to apply mask in summation.
26  if (output[i] > mask)
27  output[i] = mask;
28  }
29  }
30  return;
31 }

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

mps_fire.i
i
Definition: mps_fire.py:355
convertSQLitetoXML_cfg.output
output
Definition: convertSQLitetoXML_cfg.py:32
MillePedeFileConverter_cfg.out
out
Definition: MillePedeFileConverter_cfg.py:31