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 
7 #include "CLHEP/Random/RandGaussQ.h"
8 
9 
10 class EcalCoder ;
11 class EcalDataFrame ;
12 class EcalSimParameterMap ;
13 
14 
15 /* \class EcalElectronicsSim
16  * \brief Converts CaloDataFrame in CaloTimeSample and vice versa.
17  *
18  */
19 
21 {
22  public:
23 
25 
26  EcalElectronicsSim( const EcalSimParameterMap* parameterMap ,
27  EcalCoder* coder ,
28  bool applyConstantTerm ,
29  double rmsConstantTerm ) ;
30 
32 
34  void analogToDigital( EcalSamples& clf, EcalDataFrame& df ) const ;
35 
36  void newEvent() {}
37 
38  private:
39 
41  void amplify( EcalSamples& clf ) const ;
42 
44 
46 
48 
49  CLHEP::RandGaussQ* m_gaussQDistribution ;
50 } ;
51 
52 
53 #endif
void amplify(EcalSamples &clf) const
input signal is in pe. Converted in GeV
CaloTSamples< float, 10 > EcalSamples
CLHEP::RandGaussQ * m_gaussQDistribution
void analogToDigital(EcalSamples &clf, EcalDataFrame &df) const
from EcalSamples to EcalDataFrame
const EcalSimParameterMap * m_simMap
map of parameters
EcalElectronicsSim(const EcalSimParameterMap *parameterMap, EcalCoder *coder, bool applyConstantTerm, double rmsConstantTerm)