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
EBDigitizerTraits::fix
static void fix(Digi &digi, edm::DataFrame df)
Definition: EcalDigitizerTraits.h:27
mps_fire.i
i
Definition: mps_fire.py:355
ESOldDigitizerTraits::DigiCollection
ESDigiCollection DigiCollection
the digis collection
Definition: EcalDigitizerTraits.h:69
EEDigitizerTraits::ElectronicsSim
EcalElectronicsSim ElectronicsSim
the electronics simulation
Definition: EcalDigitizerTraits.h:37
ESElectronicsSim
Definition: ESElectronicsSim.h:16
EBDataFrame
Definition: EBDataFrame.h:11
EEDigitizerTraits::EcalSamples
CaloTSamples< float, 10 > EcalSamples
Definition: EcalDigitizerTraits.h:39
ESDigitizerTraits::fix
static void fix(Digi &digi, edm::DataFrame df)
Definition: EcalDigitizerTraits.h:55
EBDigitizerTraits::ElectronicsSim
EcalElectronicsSim ElectronicsSim
the electronics simulation
Definition: EcalDigitizerTraits.h:23
ESDigitizerTraits::Digi
ESDataFrame Digi
the dataframes
Definition: EcalDigitizerTraits.h:49
EcalDataFrame.h
ESDataFrame
Definition: ESDataFrame.h:10
ESDigitizerTraits::DigiCollection
ESDigiCollection DigiCollection
the digis collection
Definition: EcalDigitizerTraits.h:47
ESOldDigitizerTraits
Definition: EcalDigitizerTraits.h:66
CaloTSamples
Definition: CaloTSamples.h:14
ESOldDigitizerTraits::ElectronicsSim
ESElectronicsSim ElectronicsSim
the electronics simulation
Definition: EcalDigitizerTraits.h:73
EBDigitizerTraits
Definition: EcalDigitizerTraits.h:16
EcalDigiCollections.h
ESDigiCollection
Definition: EcalDigiCollections.h:58
CaloTSamples.h
EcalElectronicsSim
Definition: EcalElectronicsSim.h:20
EBDigiCollection
Definition: EcalDigiCollections.h:32
EEDigiCollection
Definition: EcalDigiCollections.h:45
EcalHitResponse
Definition: EcalHitResponse.h:28
EEDigitizerTraits::fix
static void fix(Digi &digi, edm::DataFrame df)
Definition: EcalDigitizerTraits.h:41
EEDigitizerTraits::Digi
EEDataFrame Digi
the dataframes
Definition: EcalDigitizerTraits.h:35
EBDataFrame.h
ESElectronicsSimFast
Definition: ESElectronicsSimFast.h:16
ESDigitizerTraits
Definition: EcalDigitizerTraits.h:44
EEDigitizerTraits::DigiCollection
EEDigiCollection DigiCollection
the digis collection
Definition: EcalDigitizerTraits.h:33
EEDataFrame.h
edm::DataFrame
Definition: DataFrame.h:15
EEDigitizerTraits
Definition: EcalDigitizerTraits.h:30
EcalElectronicsSim.h
ESDigitizerTraits::ElectronicsSim
ESElectronicsSimFast ElectronicsSim
the electronics simulation
Definition: EcalDigitizerTraits.h:51
ESOldDigitizerTraits::Digi
ESDataFrame Digi
the dataframes
Definition: EcalDigitizerTraits.h:71
EBDigitizerTraits::Digi
EBDataFrame Digi
the dataframes
Definition: EcalDigitizerTraits.h:21
hltrates_dqm_sourceclient-live_cfg.offset
offset
Definition: hltrates_dqm_sourceclient-live_cfg.py:78
EEDataFrame
Definition: EEDataFrame.h:12
ESElectronicsSimFast.h
EBDigitizerTraits::EcalSamples
CaloTSamples< float, 10 > EcalSamples
Definition: EcalDigitizerTraits.h:25
ESDigitizerTraits::EcalSamples
CaloTSamples< float, 3 > EcalSamples
Definition: EcalDigitizerTraits.h:53
EBDigitizerTraits::DigiCollection
EBDigiCollection DigiCollection
the digis collection
Definition: EcalDigitizerTraits.h:19
ESElectronicsSim.h