![]() |
![]() |
#include <SimCalorimetry/EcalTrigPrimAlgos/interface/EcalFenixStripFormatEB.h>
Public Member Functions | |
EcalFenixStripFormatEB () | |
virtual void | process (std::vector< int > &, std::vector< int > &, std::vector< int > &) |
void | setParameters (uint32_t &, const EcalTPGSlidingWindow *&) |
virtual | ~EcalFenixStripFormatEB () |
Private Member Functions | |
int | process () |
int | setInput (int input, int inputPeak) |
Private Attributes | |
int | input_ |
int | inputPeak_ |
uint32_t | shift_ |
Definition at line 18 of file EcalFenixStripFormatEB.h.
EcalFenixStripFormatEB::EcalFenixStripFormatEB | ( | ) |
EcalFenixStripFormatEB::~EcalFenixStripFormatEB | ( | ) | [virtual] |
void EcalFenixStripFormatEB::process | ( | std::vector< int > & | peakout, | |
std::vector< int > & | filtout, | |||
std::vector< int > & | output | |||
) | [virtual] |
Definition at line 31 of file EcalFenixStripFormatEB.cc.
References i, process(), and setInput().
00032 { 00033 if (peakout.size()!=filtout.size()){ 00034 edm::LogWarning("EcalTPG")<<" problem in EcalFenixStripFormatEB: peak_out and filt_out don't have the same size"; 00035 } 00036 for (unsigned int i =0;i<filtout.size();i++){ 00037 setInput(filtout[i],peakout[i]); 00038 00039 output[i]=process(); 00040 } 00041 return; 00042 }
int EcalFenixStripFormatEB::process | ( | ) | [private] |
Definition at line 20 of file EcalFenixStripFormatEB.cc.
References input_, inputPeak_, output(), and shift_.
Referenced by process(), and EcalFenixStrip::process_part2_barrel().
00021 { 00022 // buffer_=input_>>shift_; //FIXME: buffer why? 00023 00024 if(inputPeak_==0) return 0; 00025 // int output=buffer_; 00026 int output=input_>>shift_; 00027 if(output>0XFFF) output=0XFFF; //ok: barrel saturates at 12 bits 00028 return output; 00029 }
Definition at line 13 of file EcalFenixStripFormatEB.cc.
References input_, and inputPeak_.
Referenced by process().
00014 { 00015 inputPeak_=inputPeak; 00016 input_=input; 00017 return 0; 00018 }
void EcalFenixStripFormatEB::setParameters | ( | uint32_t & | id, | |
const EcalTPGSlidingWindow *& | slWin | |||
) |
Definition at line 44 of file EcalFenixStripFormatEB.cc.
Referenced by EcalFenixStrip::process_part2_barrel().
00045 { 00046 00047 const EcalTPGSlidingWindowMap &slwinmap = slWin -> getMap(); 00048 EcalTPGSlidingWindowMapIterator it=slwinmap.find(id); 00049 if (it!=slwinmap.end()) shift_=(*it).second; 00050 else edm::LogWarning("EcalTPG")<<" could not find EcalTPGSlidingWindowMap entry for "<<id; 00051 }
int EcalFenixStripFormatEB::input_ [private] |
int EcalFenixStripFormatEB::inputPeak_ [private] |
uint32_t EcalFenixStripFormatEB::shift_ [private] |
Definition at line 23 of file EcalFenixStripFormatEB.h.
Referenced by process(), and setParameters().