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
const double pedestalWidth() const
std::vector< double > qieSlope_
const double darkCurrent(unsigned index, double intlumi) const
std::vector< double > gainWidth_
const double gainWidth(unsigned index) const
HcalSiPMRadiationDamage sipmRadiationDamage_
const double qieOffset(unsigned range) const
std::vector< double > noiseCorrelation_
std::vector< double > darkCurrent_
std::vector< double > gain_
const double noiseCorrelation(unsigned index) const
const double photoelectronsToAnalog() const
const double qieSlope(unsigned range) const
std::vector< double > qieOffset_
const double gain(unsigned index) const
const double pedestal() const