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 
4 
7 
8 
9 class EcalCoder ;
10 class EcalDataFrame ;
11 class EcalSimParameterMap ;
12 
13 namespace CLHEP {
14  class HepRandomEngine;
15 }
16 
17 /* \class EcalElectronicsSim
18  * \brief Converts CaloDataFrame in CaloTimeSample and vice versa.
19  *
20  */
21 
23 {
24  public:
25 
27 
28  EcalElectronicsSim( const EcalSimParameterMap* parameterMap ,
29  EcalCoder* coder ,
30  bool applyConstantTerm ,
31  double rmsConstantTerm ) ;
32 
34 
36  void analogToDigital( CLHEP::HepRandomEngine*, EcalSamples& clf, EcalDataFrame& df ) const ;
37 
38  void newEvent() {}
39 
40  void setNoiseSignalGenerator(const CaloVNoiseSignalGenerator * noiseSignalGenerator) {
41  theNoiseSignalGenerator = noiseSignalGenerator;
42  }
43 
44  private:
45 
47  void amplify( EcalSamples& clf, CLHEP::HepRandomEngine* ) const ;
48 
50 
52 
54 
56 
57  const double m_thisCT;
58  const bool m_applyConstantTerm;
59 } ;
60 
61 
62 #endif
CaloTSamples< float, 10 > EcalSamples
const bool m_applyConstantTerm
const CaloVNoiseSignalGenerator * theNoiseSignalGenerator
const EcalSimParameterMap * m_simMap
map of parameters
void setNoiseSignalGenerator(const CaloVNoiseSignalGenerator *noiseSignalGenerator)