CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 
22 EcalSimParameterMap::EcalSimParameterMap(double simHitToPhotoelectronsBarrel,
23  double simHitToPhotoelectronsEndcap,
24  double photoelectronsToAnalogBarrel,
25  double photoelectronsToAnalogEndcap,
26  double samplingFactor, double timePhase,
27  int readoutFrameSize, int binOfMaximum,
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 
virtual const CaloSimParameters & simParameters(const DetId &id) const
return the sim parameters relative to the right subdet
Main class for Parameters in different subdetectors.
int subdetId() const
get the contents of the subdetector field (not cast into any detector&#39;s numbering enum) ...
Definition: DetId.h:39
Definition: DetId.h:20
CaloSimParameters theEndcapParameters
EE.
CaloSimParameters theESParameters
ES.
CaloSimParameters theBarrelParameters
EB.
EcalSubdetector