CMS 3D CMS Logo

EcalFenixEtTot Class Reference

class for calculation of Et for Fenix tcp calculates the sum More...

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

List of all members.

Public Member Functions

 EcalFenixEtTot ()
void process (std::vector< std::vector< int > > &, int nStr, int bitMask, std::vector< int > &out)
virtual std::vector< intprocess (const std::vector< EBDataFrame * > &)
virtual ~EcalFenixEtTot ()


Detailed Description

class for calculation of Et for Fenix tcp calculates the sum

inputs: -5x 12 bits (12 first bits of output of passlin or take 13 bits and select the first 12 ones in the class... for EBDataFrame 5X 10 bits (10 first bits) according to the second parameter) -number of interesting bits according EE or EBDataFrame

output :12 bits (EB) or 10(EE)

in case of overflow, result is set to (2**12)-1 or (2**10)-1

Definition at line 24 of file EcalFenixEtTot.h.


Constructor & Destructor Documentation

EcalFenixEtTot::EcalFenixEtTot (  ) 

Definition at line 4 of file EcalFenixEtTot.cc.

00005 {}

EcalFenixEtTot::~EcalFenixEtTot (  )  [virtual]

Definition at line 7 of file EcalFenixEtTot.cc.

00008 {}


Member Function Documentation

void EcalFenixEtTot::process ( std::vector< std::vector< int > > &  bypasslinout,
int  nStr,
int  bitMask,
std::vector< int > &  out 
)

Definition at line 16 of file EcalFenixEtTot.cc.

References i.

00017 {
00018 
00019   for (unsigned int i=0;i<output.size();i++){
00020     output[i]= 0;
00021   }
00022 
00023   int mask = (1<<bitMask)-1;
00024   for(int istrip=0;istrip<nStr;istrip++){
00025     for (unsigned int i=0;i<bypasslinout[istrip].size();i++) {
00026       output[i]+= bypasslinout[istrip][i];
00027       if (output[i]>mask) output[i]= mask;
00028     }
00029   }
00030   return;
00031 }

std::vector< int > EcalFenixEtTot::process ( const std::vector< EBDataFrame * > &  calodatafr  )  [virtual]

Definition at line 10 of file EcalFenixEtTot.cc.

References out.

Referenced by EcalFenixTcp::process_part1().

00011 {
00012     std::vector<int> out;
00013     return out;
00014 }


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