CMS 3D CMS Logo

List of all members | Public Types | Static Public Member Functions
ESDigitizerTraits Class Reference

#include <EcalDigitizerTraits.h>

Public Types

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

Static Public Member Functions

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

Detailed Description

Definition at line 44 of file EcalDigitizerTraits.h.

Member Typedef Documentation

the dataframes

Definition at line 49 of file EcalDigitizerTraits.h.

the digis collection

Definition at line 47 of file EcalDigitizerTraits.h.

Definition at line 53 of file EcalDigitizerTraits.h.

the electronics simulation

Definition at line 51 of file EcalDigitizerTraits.h.

Member Function Documentation

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

Definition at line 55 of file EcalDigitizerTraits.h.

References mps_fire::i, and PFRecoTauDiscriminationByIsolation_cfi::offset.

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