CMS 3D CMS Logo

HcalHardcodeParameters.h
Go to the documentation of this file.
1 #ifndef HcalAlgos_HcalHardcodeParameters_h
2 #define HcalAlgos_HcalHardcodeParameters_h
3 
6 
7 #include <vector>
8 
10 public:
11  //default constructor
13  //construct from values
15  double pedestalWidth,
16  const std::vector<double>& gain,
17  const std::vector<double>& gainWidth,
18  int zsThreshold,
19  int qieType,
20  const std::vector<double>& qieOffset,
21  const std::vector<double>& qieSlope,
22  int mcShape,
23  int recoShape,
25  const std::vector<double>& darkCurrent,
26  const std::vector<double>& noiseCorrelation);
27  //construct from pset
29 
30  //destructor
32 
33  //accessors
34  //note: all vector accessors use at() in order to throw exceptions for malformed conditions
35  const double pedestal() const { return pedestal_; }
36  const double pedestalWidth() const { return pedestalWidth_; }
37  const double gain(unsigned index) const { return gain_.at(index); }
38  const double gainWidth(unsigned index) const { return gainWidth_.at(index); }
39  const int zsThreshold() const { return zsThreshold_; }
40  const int qieType() const { return qieType_; }
41  const double qieOffset(unsigned range) const { return qieOffset_.at(range); }
42  const double qieSlope(unsigned range) const { return qieSlope_.at(range); }
43  const int mcShape() const { return mcShape_; }
44  const int recoShape() const { return recoShape_; }
45  const double photoelectronsToAnalog() const { return photoelectronsToAnalog_; }
46  const double darkCurrent(unsigned index, double intlumi) const;
47  const double noiseCorrelation(unsigned index) const;
48 
49 private:
50  //member variables
52  std::vector<double> gain_, gainWidth_;
54  int qieType_;
55  std::vector<double> qieOffset_, qieSlope_;
58  std::vector<double> darkCurrent_;
59  std::vector<double> noiseCorrelation_;
62 };
63 
64 #endif
FastTimerService_cff.range
range
Definition: FastTimerService_cff.py:34
HcalHardcodeParameters::pedestalWidth_
double pedestalWidth_
Definition: HcalHardcodeParameters.h:51
AlCaHLTBitMon_ParallelJobs.p
p
Definition: AlCaHLTBitMon_ParallelJobs.py:153
HcalHardcodeParameters::pedestal
const double pedestal() const
Definition: HcalHardcodeParameters.h:35
HcalHardcodeParameters::gainWidth
const double gainWidth(unsigned index) const
Definition: HcalHardcodeParameters.h:38
HcalHardcodeParameters::qieType
const int qieType() const
Definition: HcalHardcodeParameters.h:40
HcalHardcodeParameters::doSipmRadiationDamage_
bool doSipmRadiationDamage_
Definition: HcalHardcodeParameters.h:60
HcalHardcodeParameters::pedestal_
double pedestal_
Definition: HcalHardcodeParameters.h:51
HcalHardcodeParameters::gain
const double gain(unsigned index) const
Definition: HcalHardcodeParameters.h:37
HcalHardcodeParameters::photoelectronsToAnalog_
double photoelectronsToAnalog_
Definition: HcalHardcodeParameters.h:57
HcalHardcodeParameters
Definition: HcalHardcodeParameters.h:9
HcalHardcodeParameters::recoShape_
int recoShape_
Definition: HcalHardcodeParameters.h:56
HcalHardcodeParameters::sipmRadiationDamage_
HcalSiPMRadiationDamage sipmRadiationDamage_
Definition: HcalHardcodeParameters.h:61
HcalHardcodeParameters::qieSlope
const double qieSlope(unsigned range) const
Definition: HcalHardcodeParameters.h:42
HcalHardcodeParameters::darkCurrent
const double darkCurrent(unsigned index, double intlumi) const
Definition: HcalHardcodeParameters.cc:50
HcalHardcodeParameters::gainWidth_
std::vector< double > gainWidth_
Definition: HcalHardcodeParameters.h:52
HcalHardcodeParameters::qieSlope_
std::vector< double > qieSlope_
Definition: HcalHardcodeParameters.h:55
HcalHardcodeParameters::zsThreshold_
int zsThreshold_
Definition: HcalHardcodeParameters.h:53
edm::ParameterSet
Definition: ParameterSet.h:47
HcalHardcodeParameters::gain_
std::vector< double > gain_
Definition: HcalHardcodeParameters.h:52
HcalHardcodeParameters::mcShape
const int mcShape() const
Definition: HcalHardcodeParameters.h:43
HcalHardcodeParameters::recoShape
const int recoShape() const
Definition: HcalHardcodeParameters.h:44
HcalHardcodeParameters::zsThreshold
const int zsThreshold() const
Definition: HcalHardcodeParameters.h:39
HcalHardcodeParameters::darkCurrent_
std::vector< double > darkCurrent_
Definition: HcalHardcodeParameters.h:58
HcalHardcodeParameters::qieType_
int qieType_
Definition: HcalHardcodeParameters.h:54
HcalHardcodeParameters::~HcalHardcodeParameters
virtual ~HcalHardcodeParameters()
Definition: HcalHardcodeParameters.h:31
HcalSiPMRadiationDamage
Definition: HcalSiPMRadiationDamage.h:14
HcalHardcodeParameters::qieOffset_
std::vector< double > qieOffset_
Definition: HcalHardcodeParameters.h:55
HcalHardcodeParameters::noiseCorrelation_
std::vector< double > noiseCorrelation_
Definition: HcalHardcodeParameters.h:59
HcalHardcodeParameters::pedestalWidth
const double pedestalWidth() const
Definition: HcalHardcodeParameters.h:36
HcalHardcodeParameters::photoelectronsToAnalog
const double photoelectronsToAnalog() const
Definition: HcalHardcodeParameters.h:45
AlignmentPI::index
index
Definition: AlignmentPayloadInspectorHelper.h:46
HcalHardcodeParameters::HcalHardcodeParameters
HcalHardcodeParameters()
Definition: HcalHardcodeParameters.h:12
HcalHardcodeParameters::qieOffset
const double qieOffset(unsigned range) const
Definition: HcalHardcodeParameters.h:41
ParameterSet.h
HcalHardcodeParameters::noiseCorrelation
const double noiseCorrelation(unsigned index) const
Definition: HcalHardcodeParameters.cc:56
HcalSiPMRadiationDamage.h
HcalHardcodeParameters::mcShape_
int mcShape_
Definition: HcalHardcodeParameters.h:56