CMS 3D CMS Logo

EcalSimParameterMap.cc
Go to the documentation of this file.
4 #include <iostream>
5 
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 
21  double samplingFactor,
22  double timePhase,
23  int readoutFrameSize,
24  int binOfMaximum,
25  bool doPhotostatistics,
26  bool syncPhase)
27  : theBarrelParameters(simHitToPhotoelectronsBarrel,
30  timePhase,
34  syncPhase),
35  theEndcapParameters(simHitToPhotoelectronsEndcap,
38  timePhase,
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 
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