CMS 3D CMS Logo

EcalDigitizerTraits.h
Go to the documentation of this file.
1 #ifndef EcalSimAlgos_EcalDigitizerTraits_h
2 #define EcalSimAlgos_EcalDigitizerTraits_h
3 
9 
13 
14 class EcalHitResponse ;
15 
17 {
18  public:
22  typedef EBDataFrame Digi;
25 
27 
28  static void fix( Digi& digi, edm::DataFrame df ) {};
29 };
30 
32 {
33  public:
37  typedef EEDataFrame Digi;
40 
42 
43  static void fix( Digi& digi, edm::DataFrame df ) {}
44 };
45 
47 {
48  public:
52  typedef ESDataFrame Digi ;
55 
57 
58  static void fix( Digi& digi, edm::DataFrame df ) {
59  for( unsigned int i ( 0 ) ; i != 3; ++i )
60  {
61  static const int offset ( 65536 ) ; // for int16 to uint16
62  const int16_t dshort ( digi[i].raw() ) ;
63  const int dint ( (int) dshort + // add offset for uint16 conversion
64  ( (int16_t) 0 > dshort ?
65  offset : (int) 0 ) ) ;
66  df[i] = dint ;
67  }
68  }
69 };
70 
72 {
73  public:
77  typedef ESDataFrame Digi ;
80 
81 // typedef CaloTSamples<float,3> EcalSamples ;
82 };
83 
84 
85 #endif
86 
int i
Definition: DBlmapReader.cc:9
static void fix(Digi &digi, edm::DataFrame df)
ESDigiCollection DigiCollection
the digis collection
EBDigiCollection DigiCollection
the digis collection
ESDigiCollection DigiCollection
the digis collection
ESDataFrame Digi
the dataframes
static void fix(Digi &digi, edm::DataFrame df)
ESDataFrame Digi
the dataframes
EcalElectronicsSim ElectronicsSim
the electronics simulation
CaloTSamples< float, 10 > EcalSamples
ESElectronicsSim ElectronicsSim
the electronics simulation
CaloTSamples< float, 10 > EcalSamples
CaloTSamples< float, 3 > EcalSamples
static void fix(Digi &digi, edm::DataFrame df)
EEDataFrame Digi
the dataframes
EEDigiCollection DigiCollection
the digis collection
ESElectronicsSimFast ElectronicsSim
the electronics simulation
EBDataFrame Digi
the dataframes
EcalElectronicsSim ElectronicsSim
the electronics simulation