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  const std::vector<double>& noiseCorrelation)
16  : pedestal_(pedestal),
17  pedestalWidth_(pedestalWidth),
18  gain_(gain),
19  gainWidth_(gainWidth),
20  zsThreshold_(zsThreshold),
21  qieType_(qieType),
22  qieOffset_(qieOffset),
23  qieSlope_(qieSlope),
24  mcShape_(mcShape),
25  recoShape_(recoShape),
26  photoelectronsToAnalog_(photoelectronsToAnalog),
27  darkCurrent_(darkCurrent),
28  noiseCorrelation_(noiseCorrelation),
29  doSipmRadiationDamage_(false) {}
30 
32  : pedestal_(p.getParameter<double>("pedestal")),
33  pedestalWidth_(p.getParameter<double>("pedestalWidth")),
34  gain_(p.getParameter<std::vector<double>>("gain")),
35  gainWidth_(p.getParameter<std::vector<double>>("gainWidth")),
36  zsThreshold_(p.getParameter<int>("zsThreshold")),
37  qieType_(p.getParameter<int>("qieType")),
38  qieOffset_(p.getParameter<std::vector<double>>("qieOffset")),
39  qieSlope_(p.getParameter<std::vector<double>>("qieSlope")),
40  mcShape_(p.getParameter<int>("mcShape")),
41  recoShape_(p.getParameter<int>("recoShape")),
42  photoelectronsToAnalog_(p.getParameter<double>("photoelectronsToAnalog")),
43  darkCurrent_(p.getParameter<std::vector<double>>("darkCurrent")),
44  noiseCorrelation_(p.getParameter<std::vector<double>>("noiseCorrelation")),
45  doSipmRadiationDamage_(p.getParameter<bool>("doRadiationDamage")) {
48 }
49 
50 const double HcalHardcodeParameters::darkCurrent(unsigned index, double intlumi) const {
51  if (doSipmRadiationDamage_ and intlumi > 0)
52  return sipmRadiationDamage_.getDarkCurrent(intlumi, index);
53  return darkCurrent_.at(index);
54 }
55 
56 const double HcalHardcodeParameters::noiseCorrelation(unsigned index) const { return noiseCorrelation_.at(index); }
electrons_cff.bool
bool
Definition: electrons_cff.py:366
funct::false
false
Definition: Factorize.h:29
AlCaHLTBitMon_ParallelJobs.p
p
Definition: AlCaHLTBitMon_ParallelJobs.py:153
HcalHardcodeParameters::doSipmRadiationDamage_
bool doSipmRadiationDamage_
Definition: HcalHardcodeParameters.h:60
HcalHardcodeParameters.h
HcalSiPMRadiationDamage::getDarkCurrent
double getDarkCurrent(double intlumi, unsigned index) const
Definition: HcalSiPMRadiationDamage.cc:20
HcalHardcodeParameters::sipmRadiationDamage_
HcalSiPMRadiationDamage sipmRadiationDamage_
Definition: HcalHardcodeParameters.h:61
HcalHardcodeParameters::darkCurrent
const double darkCurrent(unsigned index, double intlumi) const
Definition: HcalHardcodeParameters.cc:50
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:58
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
HcalHardcodeParameters::noiseCorrelation_
std::vector< double > noiseCorrelation_
Definition: HcalHardcodeParameters.h:59
AlignmentPI::index
index
Definition: AlignmentPayloadInspectorHelper.h:46
HcalHardcodeParameters::HcalHardcodeParameters
HcalHardcodeParameters()
Definition: HcalHardcodeParameters.h:12
HcalHardcodeParameters::noiseCorrelation
const double noiseCorrelation(unsigned index) const
Definition: HcalHardcodeParameters.cc:56