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
CastorPedestal Class Reference

#include <CastorPedestal.h>

Public Member Functions

 CastorPedestal ()
 
 CastorPedestal (unsigned long fId, float fCap0, float fCap1, float fCap2, float fCap3, float wCap0=0, float wCap1=0, float wCap2=0, float wCap3=0)
 
float getValue (int fCapId) const
 get value for capId = 0..3 More...
 
const float * getValues () const
 get value for all capId = 0..3 More...
 
float getWidth (int fCapId) const
 get width for capId = 0..3 More...
 
const float * getWidths () const
 get width for all capId = 0..3 More...
 
uint32_t rawId () const
 

Private Attributes

 COND_SERIALIZABLE
 
uint32_t mId
 
float mValue0
 
float mValue1
 
float mValue2
 
float mValue3
 
float mWidth0
 
float mWidth1
 
float mWidth2
 
float mWidth3
 

Detailed Description

Author
Fedor Ratnikov (UMd) POOL object to store Pedestal values 4xCapId $Author: ratnikov
Date:
2009/03/24 16:05:27
Revision:
1.8

Adapted for CASTOR by L. Mundim (26/03/2009)

Definition at line 17 of file CastorPedestal.h.

Constructor & Destructor Documentation

CastorPedestal::CastorPedestal ( )
inline

Definition at line 31 of file CastorPedestal.h.

31  : mId (0), mValue0 (0), mValue1 (0), mValue2 (0), mValue3 (0),
32  mWidth0 (0), mWidth1 (0), mWidth2 (0), mWidth3 (0) {}
CastorPedestal::CastorPedestal ( unsigned long  fId,
float  fCap0,
float  fCap1,
float  fCap2,
float  fCap3,
float  wCap0 = 0,
float  wCap1 = 0,
float  wCap2 = 0,
float  wCap3 = 0 
)
inline

Definition at line 34 of file CastorPedestal.h.

35  :
36  mId (fId), mValue0 (fCap0), mValue1 (fCap1), mValue2 (fCap2), mValue3 (fCap3),
37  mWidth0 (wCap0), mWidth1 (wCap1), mWidth2 (wCap2), mWidth3 (wCap3) {}

Member Function Documentation

float CastorPedestal::getValue ( int  fCapId) const
inline

get value for capId = 0..3

Definition at line 22 of file CastorPedestal.h.

References getValues().

Referenced by CastorPedestalAnalysis::CastorPedVal().

22 {return *(getValues () + fCapId);}
const float * getValues() const
get value for all capId = 0..3
const float* CastorPedestal::getValues ( ) const
inline

get value for all capId = 0..3

Definition at line 20 of file CastorPedestal.h.

References mValue0.

Referenced by CastorDbXml::dumpObject(), getValue(), and CastorDbService::makeCastorCalibration().

20 {return &mValue0;}
float CastorPedestal::getWidth ( int  fCapId) const
inline

get width for capId = 0..3

Definition at line 27 of file CastorPedestal.h.

References getWidths().

Referenced by CastorMonitorModule::beginRun().

27 {return *(getWidths () + fCapId);}
const float * getWidths() const
get width for all capId = 0..3
const float* CastorPedestal::getWidths ( ) const
inline

get width for all capId = 0..3

Definition at line 25 of file CastorPedestal.h.

References mWidth0.

Referenced by getWidth().

25 {return &mWidth0;}
uint32_t CastorPedestal::rawId ( ) const
inline

Definition at line 39 of file CastorPedestal.h.

References mId.

39 {return mId;}

Member Data Documentation

CastorPedestal::COND_SERIALIZABLE
private

Definition at line 51 of file CastorPedestal.h.

uint32_t CastorPedestal::mId
private

Definition at line 41 of file CastorPedestal.h.

Referenced by rawId().

float CastorPedestal::mValue0
private

Definition at line 42 of file CastorPedestal.h.

Referenced by getValues().

float CastorPedestal::mValue1
private

Definition at line 43 of file CastorPedestal.h.

float CastorPedestal::mValue2
private

Definition at line 44 of file CastorPedestal.h.

float CastorPedestal::mValue3
private

Definition at line 45 of file CastorPedestal.h.

float CastorPedestal::mWidth0
private

Definition at line 46 of file CastorPedestal.h.

Referenced by getWidths().

float CastorPedestal::mWidth1
private

Definition at line 47 of file CastorPedestal.h.

float CastorPedestal::mWidth2
private

Definition at line 48 of file CastorPedestal.h.

float CastorPedestal::mWidth3
private

Definition at line 49 of file CastorPedestal.h.