#include <SimCalorimetry/EcalTrigPrimAlgos/interface/EcalFenixEtStrip.h>
Public Member Functions | |
EcalFenixEtStrip () | |
void | process (const std::vector< std::vector< int > > &linout, int nrXtals, std::vector< int > &output) |
virtual | ~EcalFenixEtStrip () |
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.
EcalFenixEtStrip::EcalFenixEtStrip | ( | ) |
EcalFenixEtStrip::~EcalFenixEtStrip | ( | ) | [virtual] |
void EcalFenixEtStrip::process | ( | const std::vector< std::vector< int > > & | linout, | |
int | nrXtals, | |||
std::vector< int > & | output | |||
) |
Definition at line 8 of file EcalFenixEtStrip.cc.
References i.
Referenced by EcalFenixStrip::process_part1().
00009 { 00010 for (unsigned int i =0;i<output.size();i++){ 00011 output[i]=0; 00012 } 00013 for(int ixtal=0;ixtal<nrXtals;ixtal++){ 00014 for (unsigned int i=0;i<output.size();i++) { 00015 output[i]+=(linout[ixtal])[i]; 00016 } 00017 } 00018 for (unsigned int i=0;i<output.size();i++) { 00019 output[i]>>2 ; //FIXME 00020 if(output[i]>0X3FFFF)output[i]=0X3FFFF; 00021 } 00022 return; 00023 }