CMS 3D CMS Logo

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

#include <CastorCalibrations.h>

Public Member Functions

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

Private Attributes

double mGain [4]
 
double mPedestal [4]
 

Detailed Description

Container for retrieved calibration constants for Castor

Container for retrieved calibration constants for Castor $Author: katsas

Definition at line 9 of file CastorCalibrations.h.

Constructor & Destructor Documentation

◆ CastorCalibrations() [1/2]

CastorCalibrations::CastorCalibrations ( )
inline

Definition at line 11 of file CastorCalibrations.h.

11 : mGain{}, mPedestal{} {};

◆ CastorCalibrations() [2/2]

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

Definition at line 10 of file CastorCalibrations.cc.

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

References mGain, and mPedestal.

Member Function Documentation

◆ gain()

double CastorCalibrations::gain ( int  fCapId) const
inline

get gain for capid=0..3

Definition at line 14 of file CastorCalibrations.h.

14 { return mGain[fCapId]; }

References mGain.

Referenced by CastorSimpleRecAlgoImpl::corrSaturation(), and CastorSimpleRecAlgoImpl::reco().

◆ pedestal()

double CastorCalibrations::pedestal ( int  fCapId) const
inline

get pedestal for capid=0..3

Definition at line 16 of file CastorCalibrations.h.

16 { return mPedestal[fCapId]; }

References mPedestal.

Referenced by CastorSimpleRecAlgoImpl::corrSaturation(), and CastorSimpleRecAlgoImpl::reco().

Member Data Documentation

◆ mGain

double CastorCalibrations::mGain[4]
private

Definition at line 19 of file CastorCalibrations.h.

Referenced by CastorCalibrations(), and gain().

◆ mPedestal

double CastorCalibrations::mPedestal[4]
private

Definition at line 20 of file CastorCalibrations.h.

Referenced by CastorCalibrations(), and pedestal().

CastorCalibrations::mPedestal
double mPedestal[4]
Definition: CastorCalibrations.h:20
CastorCalibrations::mGain
double mGain[4]
Definition: CastorCalibrations.h:19