CMS 3D CMS Logo

HcalTBSimParameterMap.cc
Go to the documentation of this file.
5 
7  : theHBParameters(2000., 117, 5, 10, 5, true, false, 1, std::vector<double>(16, 117.), 10.),
8  theHEParameters(2000., 178, 5, 10, 5, true, false, 16, std::vector<double>(16, 178.), 10.),
9  theHOParameters(4000., 217, 5, 10, 5, true, false, 1, std::vector<double>(16, 217.), 5.) {}
10 
11 /*
12  CaloSimParameters(double photomultiplierGain, double amplifierGain,
13  double samplingFactor, double timePhase,
14  int readoutFrameSize, int binOfMaximum,
15  bool doPhotostatistics)
16 */
17 
19  : theHBParameters(
20  p.getUntrackedParameter<double>("photomultiplierGainTBHB", 2000.),
21  p.getUntrackedParameter<double>("samplingFactorTBHB", 117),
22  p.getUntrackedParameter<double>("timePhaseTBHB", 5),
23  p.getUntrackedParameter<int>("readoutFrameSizeTB", 10),
24  p.getUntrackedParameter<int>("binOfMaximumTBHB", 5),
25  p.getUntrackedParameter<bool>("doPhotostatisticsTB", true),
26  p.getUntrackedParameter<bool>("syncPhaseTB", true),
27  p.getUntrackedParameter<int>("firstRingTBHB", 1),
28  p.getUntrackedParameter<std::vector<double>>("samplingFactorsTBHB", std::vector<double>(16, 117.)),
29  p.getUntrackedParameter<double>("sipmTauTBHB", 10.)),
30  theHEParameters(
31  p.getUntrackedParameter<double>("photomultiplierGainTBHE", 2000.),
32  p.getUntrackedParameter<double>("samplingFactorTBHE", 178),
33  p.getUntrackedParameter<double>("timePhaseTBHE", 5),
34  p.getUntrackedParameter<int>("readoutFrameSizeTB", 10),
35  p.getUntrackedParameter<int>("binOfMaximumTBHE", 5),
36  p.getUntrackedParameter<bool>("doPhotostatisticsTB", true),
37  p.getUntrackedParameter<bool>("syncPhaseTB", true),
38  p.getUntrackedParameter<int>("firstRingTBHE", 16),
39  p.getUntrackedParameter<std::vector<double>>("samplingFactorsTBHE", std::vector<double>(16, 178.)),
40  p.getUntrackedParameter<double>("sipmTauTBHE", 10.)),
41  theHOParameters(
42  p.getUntrackedParameter<double>("photomultiplierGainTBHE", 4000.),
43  p.getUntrackedParameter<double>("samplingFactorTBHO", 217),
44  p.getUntrackedParameter<double>("timePhaseTBHO", 5),
45  p.getUntrackedParameter<int>("readoutFrameSizeTB", 10),
46  p.getUntrackedParameter<int>("binOfMaximumTBHO", 5),
47  p.getUntrackedParameter<bool>("doPhotostatisticsTB", true),
48  p.getUntrackedParameter<bool>("syncPhaseTB", true),
49  p.getUntrackedParameter<int>("firstRingTBHO", 1),
50  p.getUntrackedParameter<std::vector<double>>("samplingFactorsTBHO", std::vector<double>(16, 217.)),
51  p.getUntrackedParameter<double>("sipmTauTBHO", 5.)) {}
52 
54  HcalDetId hcalDetId(detId);
55  if (hcalDetId.subdet() == HcalBarrel) {
56  return theHBParameters;
57  } else if (hcalDetId.subdet() == HcalEndcap) {
58  return theHEParameters;
59  } else {
60  return theHOParameters;
61  }
62 }
HcalTBSimParameterMap()
hardcoded default parameters
HcalSimParameters theHOParameters
const CaloSimParameters & simParameters(const DetId &id) const override
HcalSimParameters theHEParameters
Main class for Parameters in different subdetectors.
constexpr HcalSubdetector subdet() const
get the subdetector
Definition: HcalDetId.h:138
HcalSimParameters theHBParameters
Definition: DetId.h:17