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  //construct from pset
28 
29  //destructor
31 
32  //accessors
33  //note: all vector accessors use at() in order to throw exceptions for malformed conditions
34  const double pedestal() const { return pedestal_; }
35  const double pedestalWidth() const { return pedestalWidth_; }
36  const double gain(unsigned index) const { return gain_.at(index); }
37  const double gainWidth(unsigned index) const { return gainWidth_.at(index); }
38  const int zsThreshold() const { return zsThreshold_; }
39  const int qieType() const { return qieType_; }
40  const double qieOffset(unsigned range) const { return qieOffset_.at(range); }
41  const double qieSlope(unsigned range) const { return qieSlope_.at(range); }
42  const int mcShape() const { return mcShape_; }
43  const int recoShape() const { return recoShape_; }
44  const double photoelectronsToAnalog() const { return photoelectronsToAnalog_; }
45  const double darkCurrent(unsigned index, double intlumi) const;
46 
47 private:
48  //member variables
50  std::vector<double> gain_, gainWidth_;
52  int qieType_;
53  std::vector<double> qieOffset_, qieSlope_;
56  std::vector<double> darkCurrent_;
59 };
60 
61 #endif
FastTimerService_cff.range
range
Definition: FastTimerService_cff.py:34
HcalHardcodeParameters::pedestalWidth_
double pedestalWidth_
Definition: HcalHardcodeParameters.h:49
AlCaHLTBitMon_ParallelJobs.p
p
Definition: AlCaHLTBitMon_ParallelJobs.py:153
HcalHardcodeParameters::pedestal
const double pedestal() const
Definition: HcalHardcodeParameters.h:34
HcalHardcodeParameters::gainWidth
const double gainWidth(unsigned index) const
Definition: HcalHardcodeParameters.h:37
HcalHardcodeParameters::qieType
const int qieType() const
Definition: HcalHardcodeParameters.h:39
HcalHardcodeParameters::doSipmRadiationDamage_
bool doSipmRadiationDamage_
Definition: HcalHardcodeParameters.h:57
HcalHardcodeParameters::pedestal_
double pedestal_
Definition: HcalHardcodeParameters.h:49
HcalHardcodeParameters::gain
const double gain(unsigned index) const
Definition: HcalHardcodeParameters.h:36
HcalHardcodeParameters::photoelectronsToAnalog_
double photoelectronsToAnalog_
Definition: HcalHardcodeParameters.h:55
HcalHardcodeParameters
Definition: HcalHardcodeParameters.h:9
HcalHardcodeParameters::recoShape_
int recoShape_
Definition: HcalHardcodeParameters.h:54
HcalHardcodeParameters::sipmRadiationDamage_
HcalSiPMRadiationDamage sipmRadiationDamage_
Definition: HcalHardcodeParameters.h:58
HcalHardcodeParameters::qieSlope
const double qieSlope(unsigned range) const
Definition: HcalHardcodeParameters.h:41
HcalHardcodeParameters::darkCurrent
const double darkCurrent(unsigned index, double intlumi) const
Definition: HcalHardcodeParameters.cc:47
HcalHardcodeParameters::gainWidth_
std::vector< double > gainWidth_
Definition: HcalHardcodeParameters.h:50
HcalHardcodeParameters::qieSlope_
std::vector< double > qieSlope_
Definition: HcalHardcodeParameters.h:53
HcalHardcodeParameters::zsThreshold_
int zsThreshold_
Definition: HcalHardcodeParameters.h:51
edm::ParameterSet
Definition: ParameterSet.h:47
HcalHardcodeParameters::gain_
std::vector< double > gain_
Definition: HcalHardcodeParameters.h:50
HcalHardcodeParameters::mcShape
const int mcShape() const
Definition: HcalHardcodeParameters.h:42
HcalHardcodeParameters::recoShape
const int recoShape() const
Definition: HcalHardcodeParameters.h:43
HcalHardcodeParameters::zsThreshold
const int zsThreshold() const
Definition: HcalHardcodeParameters.h:38
HcalHardcodeParameters::darkCurrent_
std::vector< double > darkCurrent_
Definition: HcalHardcodeParameters.h:56
HcalHardcodeParameters::qieType_
int qieType_
Definition: HcalHardcodeParameters.h:52
HcalHardcodeParameters::~HcalHardcodeParameters
virtual ~HcalHardcodeParameters()
Definition: HcalHardcodeParameters.h:30
HcalSiPMRadiationDamage
Definition: HcalSiPMRadiationDamage.h:14
HcalHardcodeParameters::qieOffset_
std::vector< double > qieOffset_
Definition: HcalHardcodeParameters.h:53
HcalHardcodeParameters::pedestalWidth
const double pedestalWidth() const
Definition: HcalHardcodeParameters.h:35
HcalHardcodeParameters::photoelectronsToAnalog
const double photoelectronsToAnalog() const
Definition: HcalHardcodeParameters.h:44
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:40
ParameterSet.h
HcalSiPMRadiationDamage.h
HcalHardcodeParameters::mcShape_
int mcShape_
Definition: HcalHardcodeParameters.h:54