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, std::vector<double> gain, std::vector<double> gainWidth,
15  int qieType, std::vector<double> qieOffset, std::vector<double> qieSlope, int mcShape, int recoShape,
16  double photoelectronsToAnalog, 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 qieType() const { return qieType_; }
30  const double qieOffset(unsigned range) const { return qieOffset_.at(range); }
31  const double qieSlope(unsigned range) const { return qieSlope_.at(range); }
32  const int mcShape() const { return mcShape_; }
33  const int recoShape() const { return recoShape_; }
34  const double photoelectronsToAnalog() const { return photoelectronsToAnalog_; }
35  const double darkCurrent(unsigned index, double intlumi) const;
36 
37  private:
38  //member variables
40  std::vector<double> gain_, gainWidth_;
41  int qieType_;
42  std::vector<double> qieOffset_, qieSlope_;
45  std::vector<double> darkCurrent_;
48 };
49 
50 #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
std::vector< double > qieOffset_