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
EBDigitizerTraits::fix
static void fix(Digi &digi, edm::DataFrame df)
Definition: EcalDigitizerTraits.h:29
mps_fire.i
i
Definition: mps_fire.py:428
ESOldDigitizerTraits::DigiCollection
ESDigiCollection DigiCollection
the digis collection
Definition: EcalDigitizerTraits.h:70
EBDigitizerTraits_Ph2::DigiCollection
EBDigiCollectionPh2 DigiCollection
the digis collection
Definition: EcalDigitizerTraits.h:82
EcalDataFrame_Ph2
Definition: EcalDataFrame_Ph2.h:12
ESElectronicsSim
Definition: ESElectronicsSim.h:16
EBDataFrame
Definition: EBDataFrame.h:11
EBDigitizerTraits_Ph2
Definition: EcalDigitizerTraits.h:79
EEDigitizerTraits::EcalSamples
CaloTSamples< float, 10 > EcalSamples
the electronics simulation
Definition: EcalDigitizerTraits.h:39
ESDigitizerTraits::fix
static void fix(Digi &digi, edm::DataFrame df)
Definition: EcalDigitizerTraits.h:56
EBDigitizerTraits_Ph2::Digi
EcalDataFrame_Ph2 Digi
the dataframes
Definition: EcalDigitizerTraits.h:84
ESDigitizerTraits::Digi
ESDataFrame Digi
the dataframes
Definition: EcalDigitizerTraits.h:50
EcalDataFrame.h
ESDataFrame
Definition: ESDataFrame.h:10
ESDigitizerTraits::DigiCollection
ESDigiCollection DigiCollection
the digis collection
Definition: EcalDigitizerTraits.h:48
ESOldDigitizerTraits
Definition: EcalDigitizerTraits.h:67
EBDigitizerTraits_Ph2::fix
static void fix(Digi &digi, edm::DataFrame df)
Definition: EcalDigitizerTraits.h:89
EBDigitizerTraits_Ph2::EcalSamples
CaloTSamples< float, ecalPh2::sampleSize > EcalSamples
the electronics simulation
Definition: EcalDigitizerTraits.h:86
CaloTSamples
Definition: CaloTSamples.h:14
ESOldDigitizerTraits::ElectronicsSim
ESElectronicsSim ElectronicsSim
the electronics simulation
Definition: EcalDigitizerTraits.h:74
EcalDataFrame_Ph2.h
EBDigitizerTraits
Definition: EcalDigitizerTraits.h:19
EBDigitizerTraits_Ph2::ElectronicsSim
EcalElectronicsSim< EcalLiteDTUCoder, EcalSamples, Digi > ElectronicsSim
Definition: EcalDigitizerTraits.h:87
EcalDigiCollections.h
EcalLiteDTUCoder.h
ESDigiCollection
Definition: EcalDigiCollections.h:82
CaloTSamples.h
EcalElectronicsSim
Definition: EcalElectronicsSim.h:20
EBDigiCollection
Definition: EcalDigiCollections.h:56
EEDigiCollection
Definition: EcalDigiCollections.h:69
EcalHitResponse
Definition: EcalHitResponse.h:29
EEDigitizerTraits::fix
static void fix(Digi &digi, edm::DataFrame df)
Definition: EcalDigitizerTraits.h:42
EEDigitizerTraits::Digi
EEDataFrame Digi
the dataframes
Definition: EcalDigitizerTraits.h:37
EBDataFrame.h
ESElectronicsSimFast
Definition: ESElectronicsSimFast.h:16
ESDigitizerTraits
Definition: EcalDigitizerTraits.h:45
EEDigitizerTraits::DigiCollection
EEDigiCollection DigiCollection
the digis collection
Definition: EcalDigitizerTraits.h:35
EEDataFrame.h
edm::DataFrame
Definition: DataFrame.h:15
EEDigitizerTraits
Definition: EcalDigitizerTraits.h:32
hgcalPerformanceValidation.df
df
Definition: hgcalPerformanceValidation.py:733
EcalCoder.h
EBDigitizerTraits::ElectronicsSim
EcalElectronicsSim< EcalCoder, EcalSamples, EcalDataFrame > ElectronicsSim
Definition: EcalDigitizerTraits.h:27
EBDigiCollectionPh2
Definition: EcalDigiCollections.h:33
EcalElectronicsSim.h
ESDigitizerTraits::ElectronicsSim
ESElectronicsSimFast ElectronicsSim
the electronics simulation
Definition: EcalDigitizerTraits.h:52
ESOldDigitizerTraits::Digi
ESDataFrame Digi
the dataframes
Definition: EcalDigitizerTraits.h:72
EBDigitizerTraits::Digi
EBDataFrame Digi
the dataframes
Definition: EcalDigitizerTraits.h:24
hltrates_dqm_sourceclient-live_cfg.offset
offset
Definition: hltrates_dqm_sourceclient-live_cfg.py:82
EEDataFrame
Definition: EEDataFrame.h:12
ESElectronicsSimFast.h
EEDigitizerTraits::ElectronicsSim
EcalElectronicsSim< EcalCoder, EcalSamples, EcalDataFrame > ElectronicsSim
Definition: EcalDigitizerTraits.h:40
EBDigitizerTraits::EcalSamples
CaloTSamples< float, 10 > EcalSamples
the electronics simulation
Definition: EcalDigitizerTraits.h:26
ESDigitizerTraits::EcalSamples
CaloTSamples< float, 3 > EcalSamples
Definition: EcalDigitizerTraits.h:54
EBDigitizerTraits::DigiCollection
EBDigiCollection DigiCollection
the digis collection
Definition: EcalDigitizerTraits.h:22
ESElectronicsSim.h