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::HcalCalibrationWidths ( )
inline

Definition at line 11 of file HcalCalibrationWidths.h.

11 {};
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.

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

Member Function Documentation

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 HcalDbASCIIIO::createObject< HcalSiPMCharacteristics >(), and HBHEPhase1Reconstructor::processData().

18 {return mEffectivePedestal [fCapId];}
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 HcalDbASCIIIO::createObject< HcalSiPMCharacteristics >(), and HBHEPhase1Reconstructor::processData().

14 {return mGain [fCapId];}
double HcalCalibrationWidths::pedestal ( int  fCapId) const
inline

Member Data Documentation

double HcalCalibrationWidths::mEffectivePedestal[4]
private

Definition at line 22 of file HcalCalibrationWidths.h.

Referenced by effpedestal(), and HcalCalibrationWidths().

double HcalCalibrationWidths::mGain[4]
private

Definition at line 20 of file HcalCalibrationWidths.h.

Referenced by gain(), and HcalCalibrationWidths().

double HcalCalibrationWidths::mPedestal[4]
private

Definition at line 21 of file HcalCalibrationWidths.h.

Referenced by HcalCalibrationWidths(), and pedestal().