CMS 3D CMS Logo

Public Types | Static Public Member Functions

ESDigitizerTraits Class Reference

#include <EcalDigitizerTraits.h>

List of all members.

Public Types

typedef ESDataFrame Digi
 the dataframes
typedef ESDigiCollection DigiCollection
 the digis collection
typedef CaloTSamples< float, 3 > EcalSamples
typedef ESElectronicsSimFast ElectronicsSim
 the electronics simulation

Static Public Member Functions

static void fix (Digi &digi, edm::DataFrame df)

Detailed Description

Definition at line 46 of file EcalDigitizerTraits.h.


Member Typedef Documentation

the dataframes

Definition at line 52 of file EcalDigitizerTraits.h.

the digis collection

Definition at line 50 of file EcalDigitizerTraits.h.

Definition at line 56 of file EcalDigitizerTraits.h.

the electronics simulation

Definition at line 54 of file EcalDigitizerTraits.h.


Member Function Documentation

static void ESDigitizerTraits::fix ( Digi digi,
edm::DataFrame  df 
) [inline, static]

Definition at line 58 of file EcalDigitizerTraits.h.

References i, and evf::evtn::offset().

                                                     {
         for( unsigned int i ( 0 ) ; i != 3; ++i )
         {
            static const int offset ( 65536 ) ; // for int16 to uint16
            const int16_t dshort ( digi[i].raw() ) ;
            const int     dint   ( (int) dshort + // add offset for uint16 conversion
                                   ( (int16_t) 0 > dshort ? 
                                     offset : (int) 0 ) ) ;
            df[i] = dint ;
         }
      }