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 }
electrons_cff.bool
bool
Definition: electrons_cff.py:393
funct::false
false
Definition: Factorize.h:29
AlCaHLTBitMon_ParallelJobs.p
p
Definition: AlCaHLTBitMon_ParallelJobs.py:153
HcalBarrel
Definition: HcalAssistant.h:33
DetId
Definition: DetId.h:17
HcalTBSimParameterMap::HcalTBSimParameterMap
HcalTBSimParameterMap()
hardcoded default parameters
Definition: HcalTBSimParameterMap.cc:6
HcalTBSimParameterMap::theHEParameters
HcalSimParameters theHEParameters
Definition: HcalTBSimParameterMap.h:26
CaloSimParameters
Main class for Parameters in different subdetectors.
Definition: CaloSimParameters.h:14
HcalTBSimParameterMap.h
funct::true
true
Definition: Factorize.h:173
edm::ParameterSet
Definition: ParameterSet.h:47
HcalDetId.h
HcalDetId::subdet
constexpr HcalSubdetector subdet() const
get the subdetector
Definition: HcalDetId.h:138
HcalDetId
Definition: HcalDetId.h:12
createfilelist.int
int
Definition: createfilelist.py:10
trackerHitRTTI::vector
Definition: trackerHitRTTI.h:21
HcalSubdetector.h
HcalTBSimParameterMap::theHBParameters
HcalSimParameters theHBParameters
Definition: HcalTBSimParameterMap.h:25
std
Definition: JetResolutionObject.h:76
HcalTBSimParameterMap::theHOParameters
HcalSimParameters theHOParameters
Definition: HcalTBSimParameterMap.h:27
HcalEndcap
Definition: HcalAssistant.h:34
DetId.h
HcalTBSimParameterMap::simParameters
const CaloSimParameters & simParameters(const DetId &id) const override
Definition: HcalTBSimParameterMap.cc:53