CMS 3D CMS Logo

EcalElectronicsSim.h
Go to the documentation of this file.
1 #ifndef EcalSimAlgos_EcalElectronicsSim_h
2 #define EcalSimAlgos_EcalElectronicsSim_h 1
3 
6 
7 class EcalCoder;
8 class EcalDataFrame;
10 
11 namespace CLHEP {
12  class HepRandomEngine;
13 }
14 
15 /* \class EcalElectronicsSim
16  * \brief Converts CaloDataFrame in CaloTimeSample and vice versa.
17  *
18  */
19 
21 public:
23 
24  EcalElectronicsSim(const EcalSimParameterMap* parameterMap,
25  EcalCoder* coder,
26  bool applyConstantTerm,
27  double rmsConstantTerm);
28 
30 
32  void analogToDigital(CLHEP::HepRandomEngine*, EcalSamples& clf, EcalDataFrame& df) const;
33 
34  void newEvent() {}
35 
36  void setNoiseSignalGenerator(const CaloVNoiseSignalGenerator* noiseSignalGenerator) {
37  theNoiseSignalGenerator = noiseSignalGenerator;
38  }
39 
40 private:
42  void amplify(EcalSamples& clf, CLHEP::HepRandomEngine*) const;
43 
45 
47 
49 
51 
52  const double m_thisCT;
53  const bool m_applyConstantTerm;
54 };
55 
56 #endif
const bool m_applyConstantTerm
CaloTSamples< float, 10 > EcalSamples
const CaloVNoiseSignalGenerator * theNoiseSignalGenerator
const EcalSimParameterMap * m_simMap
map of parameters
void setNoiseSignalGenerator(const CaloVNoiseSignalGenerator *noiseSignalGenerator)