SimCalorimetry
EcalSimAlgos
interface
EcalElectronicsSim.h
Go to the documentation of this file.
1
#ifndef EcalSimAlgos_EcalElectronicsSim_h
2
#define EcalSimAlgos_EcalElectronicsSim_h 1
3
4
#include "
CalibFormats/CaloObjects/interface/CaloTSamples.h
"
5
#include "
SimCalorimetry/CaloSimAlgos/interface/CaloVNoiseSignalGenerator.h
"
6
7
class
EcalCoder
;
8
class
EcalDataFrame
;
9
class
EcalSimParameterMap
;
10
11
namespace
CLHEP
{
12
class
HepRandomEngine;
13
}
14
15
/* \class EcalElectronicsSim
16
* \brief Converts CaloDataFrame in CaloTimeSample and vice versa.
17
*
18
*/
19
20
class
EcalElectronicsSim
{
21
public
:
22
typedef
CaloTSamples<float, 10>
EcalSamples
;
23
24
EcalElectronicsSim
(
const
EcalSimParameterMap
* parameterMap,
25
EcalCoder
* coder,
26
bool
applyConstantTerm
,
27
double
rmsConstantTerm);
28
29
~EcalElectronicsSim
();
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
46
const
EcalSimParameterMap
*
m_simMap
;
47
48
const
CaloVNoiseSignalGenerator
*
theNoiseSignalGenerator
;
49
50
EcalCoder
*
m_theCoder
;
51
52
const
double
m_thisCT
;
53
const
bool
m_applyConstantTerm
;
54
};
55
56
#endif
EcalElectronicsSim::EcalElectronicsSim
EcalElectronicsSim(const EcalSimParameterMap *parameterMap, EcalCoder *coder, bool applyConstantTerm, double rmsConstantTerm)
Definition:
EcalElectronicsSim.cc:13
ecalElectronicsSim_cff.applyConstantTerm
applyConstantTerm
Definition:
ecalElectronicsSim_cff.py:6
EcalElectronicsSim::m_applyConstantTerm
const bool m_applyConstantTerm
Definition:
EcalElectronicsSim.h:53
EcalElectronicsSim::EcalSamples
CaloTSamples< float, 10 > EcalSamples
Definition:
EcalElectronicsSim.h:22
EcalDataFrame
Definition:
EcalDataFrame.h:16
CaloVNoiseSignalGenerator.h
EcalSimParameterMap
Definition:
EcalSimParameterMap.h:11
CaloTSamples
Definition:
CaloTSamples.h:14
EcalElectronicsSim::~EcalElectronicsSim
~EcalElectronicsSim()
Definition:
EcalElectronicsSim.cc:19
CaloVNoiseSignalGenerator
Definition:
CaloVNoiseSignalGenerator.h:11
CLHEP
Definition:
CocoaGlobals.h:27
CaloTSamples.h
EcalElectronicsSim::amplify
void amplify(EcalSamples &clf, CLHEP::HepRandomEngine *) const
input signal is in pe. Converted in GeV
Definition:
EcalElectronicsSim.cc:30
EcalElectronicsSim
Definition:
EcalElectronicsSim.h:20
EcalElectronicsSim::m_theCoder
EcalCoder * m_theCoder
Definition:
EcalElectronicsSim.h:50
EcalElectronicsSim::theNoiseSignalGenerator
const CaloVNoiseSignalGenerator * theNoiseSignalGenerator
Definition:
EcalElectronicsSim.h:48
EcalElectronicsSim::m_simMap
const EcalSimParameterMap * m_simMap
map of parameters
Definition:
EcalElectronicsSim.h:46
EcalCoder
Definition:
EcalCoder.h:27
EcalElectronicsSim::analogToDigital
void analogToDigital(CLHEP::HepRandomEngine *, EcalSamples &clf, EcalDataFrame &df) const
from EcalSamples to EcalDataFrame
Definition:
EcalElectronicsSim.cc:21
EcalElectronicsSim::setNoiseSignalGenerator
void setNoiseSignalGenerator(const CaloVNoiseSignalGenerator *noiseSignalGenerator)
Definition:
EcalElectronicsSim.h:36
EcalElectronicsSim::newEvent
void newEvent()
Definition:
EcalElectronicsSim.h:34
EcalElectronicsSim::m_thisCT
const double m_thisCT
Definition:
EcalElectronicsSim.h:52
Generated for CMSSW Reference Manual by
1.8.16