CMS 3D CMS Logo

List of all members | Public Member Functions
EcalFenixEtStrip Class Reference

#include <EcalFenixEtStrip.h>

Public Member Functions

 EcalFenixEtStrip ()
 
void process (const std::vector< std::vector< int >> &linout, int nrXtals, std::vector< int > &output)
 
virtual ~EcalFenixEtStrip ()
 

Detailed Description

class for calculation of Et for Fenix strip input: 5x18 bits output: 18 bits representing sum

sum method gets vector of CaloTimeSamples as input (steph comment : Ursula, why CaloTimeSample ?) simple sum, test for max? max in h4ana is 0x3FFFF

—> if overflow sum= (2^18-1)

Definition at line 20 of file EcalFenixEtStrip.h.

Constructor & Destructor Documentation

◆ EcalFenixEtStrip()

EcalFenixEtStrip::EcalFenixEtStrip ( )

Definition at line 3 of file EcalFenixEtStrip.cc.

3 {}

◆ ~EcalFenixEtStrip()

EcalFenixEtStrip::~EcalFenixEtStrip ( )
virtual

Definition at line 4 of file EcalFenixEtStrip.cc.

4 {}

Member Function Documentation

◆ process()

void EcalFenixEtStrip::process ( const std::vector< std::vector< int >> &  linout,
int  nrXtals,
std::vector< int > &  output 
)

Definition at line 6 of file EcalFenixEtStrip.cc.

References mps_fire::i.

Referenced by EcalFenixStrip::process_part1().

6  {
7  for (unsigned int i = 0; i < output.size(); i++) {
8  output[i] = 0;
9  }
10  for (int ixtal = 0; ixtal < nrXtals; ixtal++) {
11  for (unsigned int i = 0; i < output.size(); i++) {
12  output[i] += (linout[ixtal])[i];
13  }
14  }
15  for (unsigned int i = 0; i < output.size(); i++) {
16  if (output[i] > 0X3FFFF)
17  output[i] = 0X3FFFF;
18  }
19  return;
20 }
Definition: output.py:1