#include <EcalFenixMaxof2.h>
Public Member Functions | |
EcalFenixMaxof2 (int maxNrSamples, int nbMaxStrips) | |
void | process (std::vector< std::vector< int >> &, int nStr, int bitMask, int bitOddEven, std::vector< int > &out) |
virtual | ~EcalFenixMaxof2 () |
Private Attributes | |
int | nbMaxStrips_ |
std::vector< std::vector< int > > | sumby2_ |
finds max sum of two adjacent samples
input: 5x 12 bits (les 12 premiers bits sortant du bypasslin) output: 12 bits
computes 4 sums of 2 strips and gives the max max limited by 0xfff
As in the firmware the computation is performed only on the even energy sum, so the oddEvenFlag (14th bit) is used to exclude the energy of the odd strips from the computation. D.Valsecchi.
Definition at line 20 of file EcalFenixMaxof2.h.
EcalFenixMaxof2::EcalFenixMaxof2 | ( | int | maxNrSamples, |
int | nbMaxStrips | ||
) |
|
virtual |
Definition at line 11 of file EcalFenixMaxof2.cc.
void EcalFenixMaxof2::process | ( | std::vector< std::vector< int >> & | bypasslinout, |
int | nStr, | ||
int | bitMask, | ||
int | bitOddEven, | ||
std::vector< int > & | out | ||
) |
Definition at line 13 of file EcalFenixMaxof2.cc.
References mps_fire::i, and sumby2_.
Referenced by EcalFenixTcp::process_part2_barrel().
|
private |
Definition at line 27 of file EcalFenixMaxof2.h.
Referenced by EcalFenixMaxof2().
|
private |
Definition at line 28 of file EcalFenixMaxof2.h.
Referenced by EcalFenixMaxof2(), and process().