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 45 of file EcalDigitizerTraits.h.

Member Typedef Documentation

◆ Digi

the dataframes

Definition at line 50 of file EcalDigitizerTraits.h.

◆ DigiCollection

the digis collection

Definition at line 48 of file EcalDigitizerTraits.h.

◆ EcalSamples

Definition at line 54 of file EcalDigitizerTraits.h.

◆ ElectronicsSim

the electronics simulation

Definition at line 52 of file EcalDigitizerTraits.h.

Member Function Documentation

◆ fix()

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

Definition at line 56 of file EcalDigitizerTraits.h.

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

References hgcalPerformanceValidation::df, mps_fire::i, and hltrates_dqm_sourceclient-live_cfg::offset.

mps_fire.i
i
Definition: mps_fire.py:428
hgcalPerformanceValidation.df
df
Definition: hgcalPerformanceValidation.py:733
hltrates_dqm_sourceclient-live_cfg.offset
offset
Definition: hltrates_dqm_sourceclient-live_cfg.py:82