CMS 3D CMS Logo

EcalFenixEtStrip Class Reference

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

#include <SimCalorimetry/EcalTrigPrimAlgos/interface/EcalFenixEtStrip.h>

List of all members.

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 (  ) 

Definition at line 3 of file EcalFenixEtStrip.cc.

00003                                   {
00004 }

EcalFenixEtStrip::~EcalFenixEtStrip (  )  [virtual]

Definition at line 5 of file EcalFenixEtStrip.cc.

00005                                    {
00006 }


Member Function Documentation

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 }


The documentation for this class was generated from the following files:
Generated on Tue Jun 9 18:19:37 2009 for CMSSW by  doxygen 1.5.4