CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
EcalElectronicsSim.h
Go to the documentation of this file.
1 
2 #ifndef EcalSimAlgos_EcalElectronicsSim_h
3 #define EcalSimAlgos_EcalElectronicsSim_h 1
4 
5 
8 #include "CLHEP/Random/RandGaussQ.h"
9 
10 
11 class EcalCoder ;
12 class EcalDataFrame ;
13 class EcalSimParameterMap ;
14 
15 
16 /* \class EcalElectronicsSim
17  * \brief Converts CaloDataFrame in CaloTimeSample and vice versa.
18  *
19  */
20 
22 {
23  public:
24 
26 
27  EcalElectronicsSim( const EcalSimParameterMap* parameterMap ,
28  EcalCoder* coder ,
29  bool applyConstantTerm ,
30  double rmsConstantTerm ) ;
31 
33 
35  void analogToDigital( EcalSamples& clf, EcalDataFrame& df ) const ;
36 
37  void newEvent() {}
38 
39  void setNoiseSignalGenerator(const CaloVNoiseSignalGenerator * noiseSignalGenerator) {
40  theNoiseSignalGenerator = noiseSignalGenerator;
41  }
42 
43  private:
44 
46  void amplify( EcalSamples& clf ) const ;
47 
49 
51 
53 
55 
56  CLHEP::RandGaussQ* m_gaussQDistribution ;
57 } ;
58 
59 
60 #endif
void amplify(EcalSamples &clf) const
input signal is in pe. Converted in GeV
CaloTSamples< float, 10 > EcalSamples
CLHEP::RandGaussQ * m_gaussQDistribution
const CaloVNoiseSignalGenerator * theNoiseSignalGenerator
void analogToDigital(EcalSamples &clf, EcalDataFrame &df) const
from EcalSamples to EcalDataFrame
const EcalSimParameterMap * m_simMap
map of parameters
void setNoiseSignalGenerator(const CaloVNoiseSignalGenerator *noiseSignalGenerator)
EcalElectronicsSim(const EcalSimParameterMap *parameterMap, EcalCoder *coder, bool applyConstantTerm, double rmsConstantTerm)