CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
HcalHardcodeParameters Class Reference

#include <HcalHardcodeParameters.h>

Public Member Functions

const double darkCurrent (unsigned index, double intlumi) const
 
const double gain (unsigned index) const
 
const double gainWidth (unsigned index) const
 
 HcalHardcodeParameters ()
 
 HcalHardcodeParameters (double pedestal, double pedestalWidth, const std::vector< double > &gain, const std::vector< double > &gainWidth, int zsThreshold, int qieType, const std::vector< double > &qieOffset, const std::vector< double > &qieSlope, int mcShape, int recoShape, double photoelectronsToAnalog, const std::vector< double > &darkCurrent)
 
 HcalHardcodeParameters (const edm::ParameterSet &p)
 
const int mcShape () const
 
const double pedestal () const
 
const double pedestalWidth () const
 
const double photoelectronsToAnalog () const
 
const double qieOffset (unsigned range) const
 
const double qieSlope (unsigned range) const
 
const int qieType () const
 
const int recoShape () const
 
const int zsThreshold () const
 
virtual ~HcalHardcodeParameters ()
 

Private Attributes

std::vector< double > darkCurrent_
 
bool doSipmRadiationDamage_
 
std::vector< double > gain_
 
std::vector< double > gainWidth_
 
int mcShape_
 
double pedestal_
 
double pedestalWidth_
 
double photoelectronsToAnalog_
 
std::vector< double > qieOffset_
 
std::vector< double > qieSlope_
 
int qieType_
 
int recoShape_
 
HcalSiPMRadiationDamage sipmRadiationDamage_
 
int zsThreshold_
 

Detailed Description

Definition at line 9 of file HcalHardcodeParameters.h.

Constructor & Destructor Documentation

HcalHardcodeParameters::HcalHardcodeParameters ( )
inline
HcalHardcodeParameters::HcalHardcodeParameters ( double  pedestal,
double  pedestalWidth,
const std::vector< double > &  gain,
const std::vector< double > &  gainWidth,
int  zsThreshold,
int  qieType,
const std::vector< double > &  qieOffset,
const std::vector< double > &  qieSlope,
int  mcShape,
int  recoShape,
double  photoelectronsToAnalog,
const std::vector< double > &  darkCurrent 
)

Definition at line 3 of file HcalHardcodeParameters.cc.

8  gain_(gain),
19 {
20 }
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_
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_
HcalHardcodeParameters::HcalHardcodeParameters ( const edm::ParameterSet p)

Definition at line 22 of file HcalHardcodeParameters.cc.

References darkCurrent_, doSipmRadiationDamage_, edm::ParameterSet::getParameter(), and sipmRadiationDamage_.

23 : pedestal_(p.getParameter<double>("pedestal")),
24  pedestalWidth_(p.getParameter<double>("pedestalWidth")),
25  gain_(p.getParameter<std::vector<double>>("gain")),
26  gainWidth_(p.getParameter<std::vector<double>>("gainWidth")),
27  zsThreshold_(p.getParameter<int>("zsThreshold")),
28  qieType_(p.getParameter<int>("qieType")),
29  qieOffset_(p.getParameter<std::vector<double>>("qieOffset")),
30  qieSlope_(p.getParameter<std::vector<double>>("qieSlope")),
31  mcShape_(p.getParameter<int>("mcShape")),
32  recoShape_(p.getParameter<int>("recoShape")),
33  photoelectronsToAnalog_(p.getParameter<double>("photoelectronsToAnalog")),
34  darkCurrent_(p.getParameter<std::vector<double>>("darkCurrent")),
35  doSipmRadiationDamage_(p.getParameter<bool>("doRadiationDamage"))
36 {
38 }
T getParameter(std::string const &) const
std::vector< double > qieSlope_
std::vector< double > gainWidth_
HcalSiPMRadiationDamage sipmRadiationDamage_
std::vector< double > darkCurrent_
std::vector< double > gain_
std::vector< double > qieOffset_
virtual HcalHardcodeParameters::~HcalHardcodeParameters ( )
inlinevirtual

Definition at line 21 of file HcalHardcodeParameters.h.

21 {}

Member Function Documentation

const double HcalHardcodeParameters::darkCurrent ( unsigned  index,
double  intlumi 
) const
const double HcalHardcodeParameters::gain ( unsigned  index) const
inline

Definition at line 27 of file HcalHardcodeParameters.h.

References gain_.

Referenced by HcalHardcodeParameters(), and HcalDbHardcode::makeGain().

27 { return gain_.at(index); }
std::vector< double > gain_
const double HcalHardcodeParameters::gainWidth ( unsigned  index) const
inline

Definition at line 28 of file HcalHardcodeParameters.h.

References gainWidth_.

Referenced by HcalHardcodeParameters(), and HcalDbHardcode::makeGainWidth().

28 { return gainWidth_.at(index); }
std::vector< double > gainWidth_
const int HcalHardcodeParameters::mcShape ( ) const
inline

Definition at line 33 of file HcalHardcodeParameters.h.

References mcShape_.

Referenced by HcalHardcodeParameters(), and HcalDbHardcode::makeMCParam().

const double HcalHardcodeParameters::pedestal ( ) const
inline

Definition at line 25 of file HcalHardcodeParameters.h.

References pedestal_.

Referenced by HcalHardcodeParameters(), and HcalDbHardcode::makePedestal().

25 { return pedestal_; }
const double HcalHardcodeParameters::pedestalWidth ( ) const
inline
const double HcalHardcodeParameters::photoelectronsToAnalog ( ) const
inline
const double HcalHardcodeParameters::qieOffset ( unsigned  range) const
inline

Definition at line 31 of file HcalHardcodeParameters.h.

References qieOffset_.

Referenced by HcalHardcodeParameters().

31 { return qieOffset_.at(range); }
std::vector< double > qieOffset_
const double HcalHardcodeParameters::qieSlope ( unsigned  range) const
inline

Definition at line 32 of file HcalHardcodeParameters.h.

References qieSlope_.

Referenced by HcalHardcodeParameters().

32 { return qieSlope_.at(range); }
std::vector< double > qieSlope_
const int HcalHardcodeParameters::qieType ( ) const
inline

Definition at line 30 of file HcalHardcodeParameters.h.

References qieType_.

Referenced by HcalHardcodeParameters(), and HcalDbHardcode::makeQIEType().

const int HcalHardcodeParameters::recoShape ( ) const
inline

Definition at line 34 of file HcalHardcodeParameters.h.

References recoShape_.

Referenced by HcalHardcodeParameters(), and HcalDbHardcode::makeRecoParam().

const int HcalHardcodeParameters::zsThreshold ( ) const
inline

Member Data Documentation

std::vector<double> HcalHardcodeParameters::darkCurrent_
private

Definition at line 47 of file HcalHardcodeParameters.h.

Referenced by darkCurrent(), and HcalHardcodeParameters().

bool HcalHardcodeParameters::doSipmRadiationDamage_
private

Definition at line 48 of file HcalHardcodeParameters.h.

Referenced by darkCurrent(), and HcalHardcodeParameters().

std::vector<double> HcalHardcodeParameters::gain_
private

Definition at line 41 of file HcalHardcodeParameters.h.

Referenced by gain().

std::vector<double> HcalHardcodeParameters::gainWidth_
private

Definition at line 41 of file HcalHardcodeParameters.h.

Referenced by gainWidth().

int HcalHardcodeParameters::mcShape_
private

Definition at line 45 of file HcalHardcodeParameters.h.

Referenced by mcShape().

double HcalHardcodeParameters::pedestal_
private

Definition at line 40 of file HcalHardcodeParameters.h.

Referenced by pedestal().

double HcalHardcodeParameters::pedestalWidth_
private

Definition at line 40 of file HcalHardcodeParameters.h.

Referenced by pedestalWidth().

double HcalHardcodeParameters::photoelectronsToAnalog_
private

Definition at line 46 of file HcalHardcodeParameters.h.

Referenced by photoelectronsToAnalog().

std::vector<double> HcalHardcodeParameters::qieOffset_
private

Definition at line 44 of file HcalHardcodeParameters.h.

Referenced by qieOffset().

std::vector<double> HcalHardcodeParameters::qieSlope_
private

Definition at line 44 of file HcalHardcodeParameters.h.

Referenced by qieSlope().

int HcalHardcodeParameters::qieType_
private

Definition at line 43 of file HcalHardcodeParameters.h.

Referenced by qieType().

int HcalHardcodeParameters::recoShape_
private

Definition at line 45 of file HcalHardcodeParameters.h.

Referenced by recoShape().

HcalSiPMRadiationDamage HcalHardcodeParameters::sipmRadiationDamage_
private

Definition at line 49 of file HcalHardcodeParameters.h.

Referenced by darkCurrent(), and HcalHardcodeParameters().

int HcalHardcodeParameters::zsThreshold_
private

Definition at line 42 of file HcalHardcodeParameters.h.

Referenced by zsThreshold().