SimCalorimetry
HcalSimAlgos
interface
HcalBaseSignalGenerator.h
Go to the documentation of this file.
1
#ifndef HcalSimAlgos_HcalBaseSignalGenerator_h
2
#define HcalSimAlgos_HcalBaseSignalGenerator_h
3
4
#include "
SimCalorimetry/CaloSimAlgos/interface/CaloVNoiseSignalGenerator.h
"
5
#include "
SimCalorimetry/HcalSimAlgos/interface/HcalSimParameterMap.h
"
6
class
HcalElectronicsSim
;
7
8
class
HcalBaseSignalGenerator
:
public
CaloVNoiseSignalGenerator
{
9
public
:
10
HcalBaseSignalGenerator
() :
theParameterMap
(nullptr),
theElectronicsSim
(nullptr) {}
11
12
~HcalBaseSignalGenerator
()
override
{}
13
14
void
setParameterMap
(
HcalSimParameterMap
*
map
) {
theParameterMap
=
map
; }
15
16
// can be needed to set starting cap ID
17
void
setElectronicsSim
(
HcalElectronicsSim
* electronicsSim) {
theElectronicsSim
= electronicsSim; }
18
19
protected
:
20
void
fC2pe
(
CaloSamples
&
samples
)
const
{
21
assert
(
theParameterMap
!=
nullptr
);
22
float
factor
= 1. /
theParameterMap
->
simParameters
(
samples
.id()).
photoelectronsToAnalog
(
samples
.id());
23
samples
*=
factor
;
24
}
25
26
HcalSimParameterMap
*
theParameterMap
;
27
HcalElectronicsSim
*
theElectronicsSim
;
28
};
29
30
#endif
HcalBaseSignalGenerator::fC2pe
void fC2pe(CaloSamples &samples) const
Definition:
HcalBaseSignalGenerator.h:20
HcalBaseSignalGenerator::setParameterMap
void setParameterMap(HcalSimParameterMap *map)
Definition:
HcalBaseSignalGenerator.h:14
cms::cuda::assert
assert(be >=bs)
EgammaValidation_cff.samples
samples
Definition:
EgammaValidation_cff.py:19
CaloVNoiseSignalGenerator.h
HcalSimParameterMap.h
HcalBaseSignalGenerator::theParameterMap
HcalSimParameterMap * theParameterMap
Definition:
HcalBaseSignalGenerator.h:26
CaloVNoiseSignalGenerator
Definition:
CaloVNoiseSignalGenerator.h:11
HcalSimParameterMap
Definition:
HcalSimParameterMap.h:10
DQMScaleToClient_cfi.factor
factor
Definition:
DQMScaleToClient_cfi.py:8
HcalBaseSignalGenerator::HcalBaseSignalGenerator
HcalBaseSignalGenerator()
Definition:
HcalBaseSignalGenerator.h:10
HcalBaseSignalGenerator::setElectronicsSim
void setElectronicsSim(HcalElectronicsSim *electronicsSim)
Definition:
HcalBaseSignalGenerator.h:17
HcalBaseSignalGenerator::theElectronicsSim
HcalElectronicsSim * theElectronicsSim
Definition:
HcalBaseSignalGenerator.h:27
HcalBaseSignalGenerator::~HcalBaseSignalGenerator
~HcalBaseSignalGenerator() override
Definition:
HcalBaseSignalGenerator.h:12
CaloSamples
Definition:
CaloSamples.h:14
hcalSimParameters_cfi.photoelectronsToAnalog
photoelectronsToAnalog
Definition:
hcalSimParameters_cfi.py:18
HcalElectronicsSim
Definition:
HcalElectronicsSim.h:25
genParticles_cff.map
map
Definition:
genParticles_cff.py:11
HcalBaseSignalGenerator
Definition:
HcalBaseSignalGenerator.h:8
HcalSimParameterMap::simParameters
const CaloSimParameters & simParameters(const DetId &id) const override
Definition:
HcalSimParameterMap.cc:30
Generated for CMSSW Reference Manual by
1.8.16