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
14  HcalHardcodeParameters(double pedestal, double pedestalWidth, const std::vector<double>& gain, const std::vector<double>& gainWidth, int zsThreshold,
15  int qieType, const std::vector<double>& qieOffset, const std::vector<double>& qieSlope, int mcShape, int recoShape,
16  double photoelectronsToAnalog, const std::vector<double>& darkCurrent);
17  //construct from pset
19 
20  //destructor
22 
23  //accessors
24  //note: all vector accessors use at() in order to throw exceptions for malformed conditions
25  const double pedestal() const { return pedestal_; }
26  const double pedestalWidth() const { return pedestalWidth_; }
27  const double gain(unsigned index) const { return gain_.at(index); }
28  const double gainWidth(unsigned index) const { return gainWidth_.at(index); }
29  const int zsThreshold() const { return zsThreshold_; }
30  const int qieType() const { return qieType_; }
31  const double qieOffset(unsigned range) const { return qieOffset_.at(range); }
32  const double qieSlope(unsigned range) const { return qieSlope_.at(range); }
33  const int mcShape() const { return mcShape_; }
34  const int recoShape() const { return recoShape_; }
35  const double photoelectronsToAnalog() const { return photoelectronsToAnalog_; }
36  const double darkCurrent(unsigned index, double intlumi) const;
37 
38  private:
39  //member variables
41  std::vector<double> gain_, gainWidth_;
43  int qieType_;
44  std::vector<double> qieOffset_, qieSlope_;
47  std::vector<double> darkCurrent_;
50 };
51 
52 #endif
const double pedestalWidth() const
const double qieOffset(unsigned range) const
std::vector< double > qieSlope_
const double qieSlope(unsigned range) const
const int recoShape() const
const double gainWidth(unsigned index) const
const double photoelectronsToAnalog() const
std::vector< double > gainWidth_
HcalSiPMRadiationDamage sipmRadiationDamage_
const double pedestal() const
std::vector< double > darkCurrent_
std::vector< double > gain_
const double darkCurrent(unsigned index, double intlumi) const
const double gain(unsigned index) const
const int zsThreshold() const
std::vector< double > qieOffset_