CMS 3D CMS Logo

EcalDigitizerTraits.h
Go to the documentation of this file.
1 #ifndef EcalSimAlgos_EcalDigitizerTraits_h
2 #define EcalSimAlgos_EcalDigitizerTraits_h
3 
11 
16 
17 class EcalHitResponse;
18 
20 public:
24  typedef EBDataFrame Digi;
28 
29  static void fix(Digi& digi, edm::DataFrame df) {}
30 };
31 
33 public:
37  typedef EEDataFrame Digi;
41 
42  static void fix(Digi& digi, edm::DataFrame df) {}
43 };
44 
46 public:
50  typedef ESDataFrame Digi;
53 
55 
56  static void fix(Digi& digi, edm::DataFrame df) {
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  }
65 };
66 
68 public:
72  typedef ESDataFrame Digi;
75 
76  // typedef CaloTSamples<float,3> EcalSamples ;
77 };
78 
80 public:
88 
89  static void fix(Digi& digi, edm::DataFrame df) {}
90 };
91 
92 #endif
CaloTSamples< float, 3 > EcalSamples
static void fix(Digi &digi, edm::DataFrame df)
EcalElectronicsSim< EcalLiteDTUCoder, EcalSamples, Digi > ElectronicsSim
static void fix(Digi &digi, edm::DataFrame df)
EcalElectronicsSim< EcalCoder, EcalSamples, EcalDataFrame > ElectronicsSim
ESDigiCollection DigiCollection
the digis collection
EBDigiCollection DigiCollection
the digis collection
CaloTSamples< float, 10 > EcalSamples
the electronics simulation
ESDigiCollection DigiCollection
the digis collection
ESDataFrame Digi
the dataframes
static void fix(Digi &digi, edm::DataFrame df)
ESDataFrame Digi
the dataframes
EBDigiCollectionPh2 DigiCollection
the digis collection
ESElectronicsSim ElectronicsSim
the electronics simulation
CaloTSamples< float, ecalPh2::sampleSize > EcalSamples
the electronics simulation
static void fix(Digi &digi, edm::DataFrame df)
CaloTSamples< float, 10 > EcalSamples
the electronics simulation
EEDataFrame Digi
the dataframes
EEDigiCollection DigiCollection
the digis collection
EcalElectronicsSim< EcalCoder, EcalSamples, EcalDataFrame > ElectronicsSim
ESElectronicsSimFast ElectronicsSim
the electronics simulation
EBDataFrame Digi
the dataframes
EcalDataFrame_Ph2 Digi
the dataframes