CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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 
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 
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 }
const CaloSimParameters & simParameters(const DetId &id) const override
return the sim parameters relative to the right subdet
Main class for Parameters in different subdetectors.
constexpr int subdetId() const
get the contents of the subdetector field (not cast into any detector&#39;s numbering enum) ...
Definition: DetId.h:48
Definition: DetId.h:17
CaloSimParameters theEndcapParameters
EE.
CaloSimParameters theESParameters
ES.
CaloSimParameters theBarrelParameters
EB.
EcalSubdetector