CMS 3D CMS Logo

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
HcalHardcodeParameters.cc
Go to the documentation of this file.
2 
4  const double pedestalWidth,
5  const std::vector<double>& gain,
6  const std::vector<double>& gainWidth,
7  const int zsThreshold,
8  const int qieType,
9  const std::vector<double>& qieOffset,
10  const std::vector<double>& qieSlope,
11  const int mcShape,
12  const int recoShape,
13  const double photoelectronsToAnalog,
14  const std::vector<double>& darkCurrent,
15  const std::vector<double>& noiseCorrelation,
16  const double noiseTh,
17  const double seedTh)
18  : pedestal_(pedestal),
19  pedestalWidth_(pedestalWidth),
20  gain_(gain),
21  gainWidth_(gainWidth),
22  zsThreshold_(zsThreshold),
23  qieType_(qieType),
24  qieOffset_(qieOffset),
25  qieSlope_(qieSlope),
26  mcShape_(mcShape),
27  recoShape_(recoShape),
28  photoelectronsToAnalog_(photoelectronsToAnalog),
29  darkCurrent_(darkCurrent),
30  noiseCorrelation_(noiseCorrelation),
31  doSipmRadiationDamage_(false),
32  noiseThreshold_(noiseTh),
33  seedThreshold_(seedTh) {}
34 
36  : pedestal_(p.getParameter<double>("pedestal")),
37  pedestalWidth_(p.getParameter<double>("pedestalWidth")),
38  gain_(p.getParameter<std::vector<double>>("gain")),
39  gainWidth_(p.getParameter<std::vector<double>>("gainWidth")),
40  zsThreshold_(p.getParameter<int>("zsThreshold")),
41  qieType_(p.getParameter<int>("qieType")),
42  qieOffset_(p.getParameter<std::vector<double>>("qieOffset")),
43  qieSlope_(p.getParameter<std::vector<double>>("qieSlope")),
44  mcShape_(p.getParameter<int>("mcShape")),
45  recoShape_(p.getParameter<int>("recoShape")),
46  photoelectronsToAnalog_(p.getParameter<double>("photoelectronsToAnalog")),
47  darkCurrent_(p.getParameter<std::vector<double>>("darkCurrent")),
48  noiseCorrelation_(p.getParameter<std::vector<double>>("noiseCorrelation")),
49  doSipmRadiationDamage_(p.getParameter<bool>("doRadiationDamage")),
50  noiseThreshold_(p.getParameter<double>("noiseThreshold")),
51  seedThreshold_(p.getParameter<double>("seedThreshold")) {
54 }
55 
56 double HcalHardcodeParameters::darkCurrent(unsigned index, double intlumi) const {
57  if (doSipmRadiationDamage_ and intlumi > 0)
59  return darkCurrent_.at(index);
60 }
61 
double getDarkCurrent(double intlumi, unsigned index) const
double darkCurrent(unsigned index, double intlumi) const
double noiseCorrelation(unsigned index) const
HcalSiPMRadiationDamage sipmRadiationDamage_
std::vector< double > noiseCorrelation_
std::vector< double > darkCurrent_
static const char gain_[]