CMS 3D CMS Logo

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

#include <HcalCalibrationWidths.h>

Public Member Functions

double effpedestal (int fCapId) const
 get effective pedestal width for capid=0..3 More...
 
double gain (int fCapId) const
 get gain width for capid=0..3 More...
 
 HcalCalibrationWidths ()
 
 HcalCalibrationWidths (const float fGain[4], const float fPedestal[4], const float fEffectivePedestal[4])
 
double pedestal (int fCapId) const
 get pedestal width for capid=0..3 More...
 

Private Attributes

double mEffectivePedestal [4]
 
double mGain [4]
 
double mPedestal [4]
 

Detailed Description

Container for retrieving uncertainties of calibration constants for HCAL $Author: ratnikov

Definition at line 9 of file HcalCalibrationWidths.h.

Constructor & Destructor Documentation

◆ HcalCalibrationWidths() [1/2]

HcalCalibrationWidths::HcalCalibrationWidths ( )
inline

Definition at line 11 of file HcalCalibrationWidths.h.

11 {}

◆ HcalCalibrationWidths() [2/2]

HcalCalibrationWidths::HcalCalibrationWidths ( const float  fGain[4],
const float  fPedestal[4],
const float  fEffectivePedestal[4] 
)

Definition at line 10 of file HcalCalibrationWidths.cc.

References mEffectivePedestal, mGain, and mPedestal.

12  {
13  for (size_t iCap = 0; iCap < 4; ++iCap) {
14  mGain[iCap] = fGain[iCap];
15  mPedestal[iCap] = fPedestal[iCap];
16  mEffectivePedestal[iCap] = fEffectivePedestal[iCap];
17  }
18 }

Member Function Documentation

◆ effpedestal()

double HcalCalibrationWidths::effpedestal ( int  fCapId) const
inline

get effective pedestal width for capid=0..3

Definition at line 18 of file HcalCalibrationWidths.h.

References mEffectivePedestal.

Referenced by HcalChannelPropertiesEP::produce2().

18 { return mEffectivePedestal[fCapId]; }

◆ gain()

double HcalCalibrationWidths::gain ( int  fCapId) const
inline

get gain width for capid=0..3

Definition at line 14 of file HcalCalibrationWidths.h.

References mGain.

Referenced by HcalChannelPropertiesEP::produce2().

14 { return mGain[fCapId]; }

◆ pedestal()

double HcalCalibrationWidths::pedestal ( int  fCapId) const
inline

get pedestal width for capid=0..3

Definition at line 16 of file HcalCalibrationWidths.h.

References mPedestal.

Referenced by HcalChannelPropertiesEP::produce2().

16 { return mPedestal[fCapId]; }

Member Data Documentation

◆ mEffectivePedestal

double HcalCalibrationWidths::mEffectivePedestal[4]
private

Definition at line 23 of file HcalCalibrationWidths.h.

Referenced by effpedestal(), and HcalCalibrationWidths().

◆ mGain

double HcalCalibrationWidths::mGain[4]
private

Definition at line 21 of file HcalCalibrationWidths.h.

Referenced by gain(), and HcalCalibrationWidths().

◆ mPedestal

double HcalCalibrationWidths::mPedestal[4]
private

Definition at line 22 of file HcalCalibrationWidths.h.

Referenced by HcalCalibrationWidths(), and pedestal().