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 public:
21  typedef EBDataFrame Digi;
24 
26 
27  static void fix(Digi& digi, edm::DataFrame df){};
28 };
29 
31 public:
35  typedef EEDataFrame Digi;
38 
40 
41  static void fix(Digi& digi, edm::DataFrame df) {}
42 };
43 
45 public:
49  typedef ESDataFrame Digi;
52 
54 
55  static void fix(Digi& digi, edm::DataFrame df) {
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  }
64 };
65 
67 public:
71  typedef ESDataFrame Digi;
74 
75  // typedef CaloTSamples<float,3> EcalSamples ;
76 };
77 
78 #endif
CaloTSamples< float, 3 > EcalSamples
static void fix(Digi &digi, edm::DataFrame df)
ESDigiCollection DigiCollection
the digis collection
EBDigiCollection DigiCollection
the digis collection
CaloTSamples< float, 10 > EcalSamples
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
ESElectronicsSim ElectronicsSim
the electronics simulation
static void fix(Digi &digi, edm::DataFrame df)
CaloTSamples< float, 10 > EcalSamples
EEDataFrame Digi
the dataframes
EEDigiCollection DigiCollection
the digis collection
ESElectronicsSimFast ElectronicsSim
the electronics simulation
EBDataFrame Digi
the dataframes
EcalElectronicsSim ElectronicsSim
the electronics simulation