test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
HcalTBSimParameterMap.cc
Go to the documentation of this file.
5 
6 
8  theHBParameters(2000., std::vector<double>(16, 0.3305), 117, 5, 10, 5,
9  true, false, 1, std::vector<double>(16, 117.)),
10  theHEParameters(2000., std::vector<double>(16, 0.3305), 178, 5, 10, 5,
11  true, false, 16, std::vector<double>(16, 178.)),
12  theHOParameters(4000., std::vector<double>(16, 0.3065), 217, 5, 10, 5,
13  true, false, 1, std::vector<double>(16, 217.)) {}
14 
15 /*
16  CaloSimParameters(double photomultiplierGain, double amplifierGain,
17  double samplingFactor, double timePhase,
18  int readoutFrameSize, int binOfMaximum,
19  bool doPhotostatistics)
20 */
21 
23  theHBParameters(p.getUntrackedParameter<double>("photomultiplierGainTBHB",2000.),
24  p.getUntrackedParameter<std::vector<double> >("photoelectronsToAnalogTBHB",std::vector<double>(16, 0.3305)),
25  p.getUntrackedParameter<double>("samplingFactorTBHB",117),
26  p.getUntrackedParameter<double>("timePhaseTBHB",5),
27  p.getUntrackedParameter<int>("readoutFrameSizeTB",10),
28  p.getUntrackedParameter<int>("binOfMaximumTBHB",5),
29  p.getUntrackedParameter<bool>("doPhotostatisticsTB",true),
30  p.getUntrackedParameter<bool>("syncPhaseTB",true),
31  p.getUntrackedParameter<int>("firstRingTBHB",1),
32  p.getUntrackedParameter<std::vector<double> >("samplingFactorsTBHB", std::vector<double>(16, 117.)) ),
33  theHEParameters(p.getUntrackedParameter<double>("photomultiplierGainTBHE",2000.),
34  p.getUntrackedParameter<std::vector<double> >("photoelectronsToAnalogTBHE",std::vector<double>(16, 0.3305)),
35  p.getUntrackedParameter<double>("samplingFactorTBHE",178),
36  p.getUntrackedParameter<double>("timePhaseTBHE",5),
37  p.getUntrackedParameter<int>("readoutFrameSizeTB",10),
38  p.getUntrackedParameter<int>("binOfMaximumTBHE",5),
39  p.getUntrackedParameter<bool>("doPhotostatisticsTB",true),
40  p.getUntrackedParameter<bool>("syncPhaseTB",true),
41  p.getUntrackedParameter<int>("firstRingTBHE",16),
42  p.getUntrackedParameter<std::vector<double> >("samplingFactorsTBHE", std::vector<double>(16, 178.)) ),
43  theHOParameters(p.getUntrackedParameter<double>("photomultiplierGainTBHE",4000.),
44  p.getUntrackedParameter<std::vector<double> >("photoelectronsToAnalogTBHO",std::vector<double>(16, 3065)),
45  p.getUntrackedParameter<double>("samplingFactorTBHO",217),
46  p.getUntrackedParameter<double>("timePhaseTBHO",5),
47  p.getUntrackedParameter<int>("readoutFrameSizeTB",10),
48  p.getUntrackedParameter<int>("binOfMaximumTBHO",5),
49  p.getUntrackedParameter<bool>("doPhotostatisticsTB",true),
50  p.getUntrackedParameter<bool>("syncPhaseTB",true),
51  p.getUntrackedParameter<int>("firstRingTBHO",1),
52  p.getUntrackedParameter<std::vector<double> >("samplingFactorsTBHO", std::vector<double>(16, 217.)) ) {}
53 
54 
56  HcalDetId hcalDetId(detId);
57  if(hcalDetId.subdet() == HcalBarrel) {
58  return theHBParameters;
59  } else if(hcalDetId.subdet() == HcalEndcap) {
60  return theHEParameters;
61  } else {
62  return theHOParameters;
63  }
64 }
65 
HcalTBSimParameterMap()
hardcoded default parameters
HcalSimParameters theHOParameters
virtual const CaloSimParameters & simParameters(const DetId &id) const
HcalSubdetector subdet() const
get the subdetector
Definition: HcalDetId.h:30
HcalSimParameters theHEParameters
Main class for Parameters in different subdetectors.
HcalSimParameters theHBParameters
Definition: DetId.h:18
volatile std::atomic< bool > shutdown_flag false