CMS 3D CMS Logo

HcalHardcodeParameters.cc
Go to the documentation of this file.
2 
4  double pedestalWidth,
5  const std::vector<double>& gain,
6  const std::vector<double>& gainWidth,
7  int zsThreshold,
8  int qieType,
9  const std::vector<double>& qieOffset,
10  const std::vector<double>& qieSlope,
11  int mcShape,
12  int recoShape,
14  const std::vector<double>& darkCurrent)
15  : pedestal_(pedestal),
16  pedestalWidth_(pedestalWidth),
17  gain_(gain),
18  gainWidth_(gainWidth),
19  zsThreshold_(zsThreshold),
20  qieType_(qieType),
21  qieOffset_(qieOffset),
22  qieSlope_(qieSlope),
23  mcShape_(mcShape),
24  recoShape_(recoShape),
25  photoelectronsToAnalog_(photoelectronsToAnalog),
26  darkCurrent_(darkCurrent),
27  doSipmRadiationDamage_(false) {}
28 
30  : pedestal_(p.getParameter<double>("pedestal")),
31  pedestalWidth_(p.getParameter<double>("pedestalWidth")),
32  gain_(p.getParameter<std::vector<double>>("gain")),
33  gainWidth_(p.getParameter<std::vector<double>>("gainWidth")),
34  zsThreshold_(p.getParameter<int>("zsThreshold")),
35  qieType_(p.getParameter<int>("qieType")),
36  qieOffset_(p.getParameter<std::vector<double>>("qieOffset")),
37  qieSlope_(p.getParameter<std::vector<double>>("qieSlope")),
38  mcShape_(p.getParameter<int>("mcShape")),
39  recoShape_(p.getParameter<int>("recoShape")),
40  photoelectronsToAnalog_(p.getParameter<double>("photoelectronsToAnalog")),
41  darkCurrent_(p.getParameter<std::vector<double>>("darkCurrent")),
42  doSipmRadiationDamage_(p.getParameter<bool>("doRadiationDamage")) {
45 }
46 
47 const double HcalHardcodeParameters::darkCurrent(unsigned index, double intlumi) const {
48  if (doSipmRadiationDamage_ and intlumi > 0)
49  return sipmRadiationDamage_.getDarkCurrent(intlumi, index);
50  return darkCurrent_.at(index);
51 }
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
HcalHardcodeParameters::doSipmRadiationDamage_
bool doSipmRadiationDamage_
Definition: HcalHardcodeParameters.h:57
HcalHardcodeParameters.h
HcalSiPMRadiationDamage::getDarkCurrent
double getDarkCurrent(double intlumi, unsigned index) const
Definition: HcalSiPMRadiationDamage.cc:20
HcalHardcodeParameters::sipmRadiationDamage_
HcalSiPMRadiationDamage sipmRadiationDamage_
Definition: HcalHardcodeParameters.h:58
HcalHardcodeParameters::darkCurrent
const double darkCurrent(unsigned index, double intlumi) const
Definition: HcalHardcodeParameters.cc:47
edm::ParameterSet
Definition: ParameterSet.h:47
sistrip::extrainfo::gain_
static const char gain_[]
Definition: ConstantsForDqm.h:39
createfilelist.int
int
Definition: createfilelist.py:10
trackerHitRTTI::vector
Definition: trackerHitRTTI.h:21
HcalHardcodeParameters::darkCurrent_
std::vector< double > darkCurrent_
Definition: HcalHardcodeParameters.h:56
EcalCondDBWriter_cfi.pedestal
pedestal
Definition: EcalCondDBWriter_cfi.py:49
PedestalClient_cfi.gain
gain
Definition: PedestalClient_cfi.py:37
std
Definition: JetResolutionObject.h:76
HcalSiPMRadiationDamage
Definition: HcalSiPMRadiationDamage.h:14
hcalSimParameters_cfi.photoelectronsToAnalog
photoelectronsToAnalog
Definition: hcalSimParameters_cfi.py:18
AlignmentPI::index
index
Definition: AlignmentPayloadInspectorHelper.h:46
HcalHardcodeParameters::HcalHardcodeParameters
HcalHardcodeParameters()
Definition: HcalHardcodeParameters.h:12