CMS 3D CMS Logo

EcalSimParameterMap.cc
Go to the documentation of this file.
4 #include <iostream>
5 
13  theBarrelParameters(2250., 1./2250.,
14  1., 0,
15  10, 6, true, true),
16  theEndcapParameters( 1800., 1./1800.,
17  1., 0,
18  10, 6, true, true),
19  theESParameters(1., 1., 1., 20., 3, 2, false, true)
20 {}
21 
26  double samplingFactor, double timePhase,
28  bool doPhotostatistics, bool syncPhase) :
29  theBarrelParameters(simHitToPhotoelectronsBarrel, photoelectronsToAnalogBarrel,
30  samplingFactor, timePhase,
31  readoutFrameSize, binOfMaximum, doPhotostatistics, syncPhase),
32  theEndcapParameters(simHitToPhotoelectronsEndcap, photoelectronsToAnalogEndcap,
33  samplingFactor, timePhase,
34  readoutFrameSize, binOfMaximum, doPhotostatistics, syncPhase),
35  theESParameters(1., 1., 1., 20., 3, 2, false, syncPhase)
36 {}
37 
38  /*
39  CaloSimParameters(double simHitToPhotoelectrons, double photoelectronsToAnalog,
40  double samplingFactor, double timePhase,
41  int readoutFrameSize, int binOfMaximum,
42  bool doPhotostatistics, bool syncPhase)
43  */
44 
46 {
47  if (EcalSubdetector(detId.subdetId()) == EcalBarrel)
48  return theBarrelParameters;
49  else if (EcalSubdetector(detId.subdetId()) == EcalEndcap)
50  return theEndcapParameters;
51  else
52  return theESParameters;
53 }
54 
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:41
const CaloSimParameters & simParameters(const DetId &id) const override
return the sim parameters relative to the right subdet
Definition: DetId.h:18
CaloSimParameters theEndcapParameters
EE.
CaloSimParameters theESParameters
ES.
CaloSimParameters theBarrelParameters
EB.
EcalSubdetector