CMS 3D CMS Logo

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

#include <CastorCalibrationWidths.h>

Public Member Functions

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

Private Attributes

double mGain [4]
 
double mPedestal [4]
 

Detailed Description

Container for retrieving uncertainties of calibration constants for Castor

Container for retrieving uncertainties of calibration constants for Castor $Author: katsas

Definition at line 9 of file CastorCalibrationWidths.h.

Constructor & Destructor Documentation

◆ CastorCalibrationWidths() [1/2]

CastorCalibrationWidths::CastorCalibrationWidths ( )
inline

◆ CastorCalibrationWidths() [2/2]

CastorCalibrationWidths::CastorCalibrationWidths ( const float  fGain[4],
const float  fPedestal[4] 
)

Definition at line 10 of file CastorCalibrationWidths.cc.

References mGain, and mPedestal.

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

Member Function Documentation

◆ gain()

double CastorCalibrationWidths::gain ( int  fCapId) const
inline

get gain width for capid=0..3

Definition at line 14 of file CastorCalibrationWidths.h.

References mGain.

14 { return mGain[fCapId]; }

◆ pedestal()

double CastorCalibrationWidths::pedestal ( int  fCapId) const
inline

get pedestal width for capid=0..3

Definition at line 16 of file CastorCalibrationWidths.h.

References mPedestal.

16 { return mPedestal[fCapId]; }

Member Data Documentation

◆ mGain

double CastorCalibrationWidths::mGain[4]
private

Definition at line 19 of file CastorCalibrationWidths.h.

Referenced by CastorCalibrationWidths(), and gain().

◆ mPedestal

double CastorCalibrationWidths::mPedestal[4]
private

Definition at line 20 of file CastorCalibrationWidths.h.

Referenced by CastorCalibrationWidths(), and pedestal().