CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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

Date:
2011/10/13 09:37:52
Revision:
1.2

Definition at line 9 of file CastorCalibrations.h.

Constructor & Destructor Documentation

CastorCalibrations::CastorCalibrations ( )
inline

Definition at line 11 of file CastorCalibrations.h.

11 {};
CastorCalibrations::CastorCalibrations ( const float  fGain[4],
const float  fPedestal[4] 
)

Definition at line 12 of file CastorCalibrations.cc.

References mGain, and mPedestal.

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

Member Function Documentation

double CastorCalibrations::gain ( int  fCapId) const
inline

get gain for capid=0..3

Definition at line 14 of file CastorCalibrations.h.

References mGain.

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

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

get pedestal for capid=0..3

Definition at line 16 of file CastorCalibrations.h.

References mPedestal.

Referenced by CastorSimpleRecAlgoImpl::corrSaturation(), CastorPSMonitor::processEvent(), CastorLEDMonitor::processEvent(), and CastorSimpleRecAlgoImpl::reco().

16 {return mPedestal [fCapId];}

Member Data Documentation

double CastorCalibrations::mGain[4]
private

Definition at line 18 of file CastorCalibrations.h.

Referenced by CastorCalibrations(), and gain().

double CastorCalibrations::mPedestal[4]
private

Definition at line 19 of file CastorCalibrations.h.

Referenced by CastorCalibrations(), and pedestal().