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 }
const CaloSimParameters & simParameters(const DetId &id) const override
return the sim parameters relative to the right subdet
Main class for Parameters in different subdetectors.
Definition: DetId.h:17
CaloSimParameters theEndcapParameters
EE.
CaloSimParameters theESParameters
ES.
CaloSimParameters theBarrelParameters
EB.
EcalSubdetector