CMS 3D CMS Logo

List of all members | Public Member Functions | Private Member Functions | Private Attributes | Friends
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 Member Functions

template<class Archive >
void serialize (Archive &ar, const unsigned int version)
 

Private Attributes

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

Friends

class boost::serialization::access
 
template<typename CondSerializationT , typename Enabled >
struct cond::serialization::access
 

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 16 of file CastorPedestal.h.

Constructor & Destructor Documentation

CastorPedestal::CastorPedestal ( )
inline

Definition at line 30 of file CastorPedestal.h.

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 33 of file CastorPedestal.h.

42  : mId(fId),
43  mValue0(fCap0),
44  mValue1(fCap1),
45  mValue2(fCap2),
46  mValue3(fCap3),
47  mWidth0(wCap0),
48  mWidth1(wCap1),
49  mWidth2(wCap2),
50  mWidth3(wCap3) {}

Member Function Documentation

float CastorPedestal::getValue ( int  fCapId) const
inline

get value for capId = 0..3

Definition at line 21 of file CastorPedestal.h.

References getValues().

Referenced by CastorPedestalAnalysis::CastorPedVal().

21 { 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 19 of file CastorPedestal.h.

References mValue0.

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

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

get width for capId = 0..3

Definition at line 26 of file CastorPedestal.h.

References getWidths().

26 { 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 24 of file CastorPedestal.h.

References mWidth0.

Referenced by getWidth().

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

Definition at line 52 of file CastorPedestal.h.

References mId.

52 { return mId; }
template<class Archive >
void CastorPedestal::serialize ( Archive &  ar,
const unsigned int  version 
)
private

Friends And Related Function Documentation

friend class boost::serialization::access
friend

Definition at line 65 of file CastorPedestal.h.

template<typename CondSerializationT , typename Enabled >
friend struct cond::serialization::access
friend

Definition at line 65 of file CastorPedestal.h.

Member Data Documentation

uint32_t CastorPedestal::mId
private

Definition at line 55 of file CastorPedestal.h.

Referenced by rawId().

float CastorPedestal::mValue0
private

Definition at line 56 of file CastorPedestal.h.

Referenced by getValues().

float CastorPedestal::mValue1
private

Definition at line 57 of file CastorPedestal.h.

float CastorPedestal::mValue2
private

Definition at line 58 of file CastorPedestal.h.

float CastorPedestal::mValue3
private

Definition at line 59 of file CastorPedestal.h.

float CastorPedestal::mWidth0
private

Definition at line 60 of file CastorPedestal.h.

Referenced by getWidths().

float CastorPedestal::mWidth1
private

Definition at line 61 of file CastorPedestal.h.

float CastorPedestal::mWidth2
private

Definition at line 62 of file CastorPedestal.h.

float CastorPedestal::mWidth3
private

Definition at line 63 of file CastorPedestal.h.