SimCalorimetry
EcalSimAlgos
src
EcalSimParameterMap.cc
Go to the documentation of this file.
1
#include "
SimCalorimetry/EcalSimAlgos/interface/EcalSimParameterMap.h
"
2
#include "
DataFormats/DetId/interface/DetId.h
"
3
#include "
DataFormats/EcalDetId/interface/EcalSubdetector.h
"
4
#include <iostream>
5
12
EcalSimParameterMap::EcalSimParameterMap
()
13
: theBarrelParameters(2250., 1. / 2250., 1., 0, 10, 6,
true
,
true
),
14
theEndcapParameters(1800., 1. / 1800., 1., 0, 10, 6,
true
,
true
),
15
theESParameters(1., 1., 1., 20., 3, 2,
false
,
true
) {}
16
17
EcalSimParameterMap::EcalSimParameterMap
(
double
simHitToPhotoelectronsBarrel
,
18
double
simHitToPhotoelectronsEndcap
,
19
double
photoelectronsToAnalogBarrel
,
20
double
photoelectronsToAnalogEndcap
,
21
double
samplingFactor
,
22
double
timePhase
,
23
int
readoutFrameSize
,
24
int
binOfMaximum
,
25
bool
doPhotostatistics
,
26
bool
syncPhase
)
27
: theBarrelParameters(
simHitToPhotoelectronsBarrel
,
28
photoelectronsToAnalogBarrel
,
29
samplingFactor
,
30
timePhase
,
31
readoutFrameSize
,
32
binOfMaximum
,
33
doPhotostatistics
,
34
syncPhase
),
35
theEndcapParameters(
simHitToPhotoelectronsEndcap
,
36
photoelectronsToAnalogEndcap
,
37
samplingFactor
,
38
timePhase
,
39
readoutFrameSize
,
40
binOfMaximum
,
41
doPhotostatistics
,
42
syncPhase
),
43
theESParameters(1., 1., 1., 20., 3, 2,
false
,
syncPhase
) {}
44
45
/*
46
CaloSimParameters(double simHitToPhotoelectrons, double photoelectronsToAnalog,
47
double samplingFactor, double timePhase,
48
int readoutFrameSize, int binOfMaximum,
49
bool doPhotostatistics, bool syncPhase)
50
*/
51
52
const
CaloSimParameters
&
EcalSimParameterMap::simParameters
(
const
DetId
& detId)
const
{
53
if
(
EcalSubdetector
(detId.
subdetId
()) ==
EcalBarrel
)
54
return
theBarrelParameters
;
55
else
if
(
EcalSubdetector
(detId.
subdetId
()) ==
EcalEndcap
)
56
return
theEndcapParameters
;
57
else
58
return
theESParameters
;
59
}
EcalSimParameterMap::theBarrelParameters
CaloSimParameters theBarrelParameters
EB.
Definition:
EcalSimParameterMap.h:33
ecalSimParameterMap_cff.syncPhase
syncPhase
Definition:
ecalSimParameterMap_cff.py:10
funct::false
false
Definition:
Factorize.h:29
ecalSimParameterMap_cff.photoelectronsToAnalogEndcap
photoelectronsToAnalogEndcap
Definition:
ecalSimParameterMap_cff.py:4
ecalSimParameterMap_cff.samplingFactor
samplingFactor
Definition:
ecalSimParameterMap_cff.py:7
EcalSubdetector
EcalSubdetector
Definition:
EcalSubdetector.h:10
ecalSimParameterMap_cff.photoelectronsToAnalogBarrel
photoelectronsToAnalogBarrel
Definition:
ecalSimParameterMap_cff.py:12
EcalBarrel
Definition:
EcalSubdetector.h:10
EcalSimParameterMap.h
DetId
Definition:
DetId.h:17
hcalSimParameters_cfi.readoutFrameSize
readoutFrameSize
Definition:
hcalSimParameters_cfi.py:14
CaloSimParameters
Main class for Parameters in different subdetectors.
Definition:
CaloSimParameters.h:14
EcalSimParameterMap::EcalSimParameterMap
EcalSimParameterMap()
ctor
Definition:
EcalSimParameterMap.cc:12
DetId::subdetId
constexpr int subdetId() const
get the contents of the subdetector field (not cast into any detector's numbering enum)
Definition:
DetId.h:48
EcalSubdetector.h
EcalEndcap
Definition:
EcalSubdetector.h:10
funct::true
true
Definition:
Factorize.h:173
EcalSimParameterMap::simParameters
const CaloSimParameters & simParameters(const DetId &id) const override
return the sim parameters relative to the right subdet
Definition:
EcalSimParameterMap.cc:52
ecalSimParameterMap_cff.timePhase
timePhase
Definition:
ecalSimParameterMap_cff.py:8
EcalSimParameterMap::theESParameters
CaloSimParameters theESParameters
ES.
Definition:
EcalSimParameterMap.h:37
ecalEBTriggerPrimitiveDigis_cfi.binOfMaximum
binOfMaximum
Definition:
ecalEBTriggerPrimitiveDigis_cfi.py:9
ecalSimParameterMap_cff.simHitToPhotoelectronsBarrel
simHitToPhotoelectronsBarrel
Definition:
ecalSimParameterMap_cff.py:9
EcalSimParameterMap::theEndcapParameters
CaloSimParameters theEndcapParameters
EE.
Definition:
EcalSimParameterMap.h:35
ecalSimParameterMap_cff.doPhotostatistics
doPhotostatistics
Definition:
ecalSimParameterMap_cff.py:11
DetId.h
ecalSimParameterMap_cff.simHitToPhotoelectronsEndcap
simHitToPhotoelectronsEndcap
Definition:
ecalSimParameterMap_cff.py:6
Generated for CMSSW Reference Manual by
1.8.16