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() [1/2]

CastorPedestal::CastorPedestal ( )
inline

Definition at line 30 of file CastorPedestal.h.

31  : mId(0), mValue0(0), mValue1(0), mValue2(0), mValue3(0), mWidth0(0), mWidth1(0), mWidth2(0), mWidth3(0) {}

◆ CastorPedestal() [2/2]

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

◆ getValue()

float CastorPedestal::getValue ( int  fCapId) const
inline

get value for capId = 0..3

Definition at line 21 of file CastorPedestal.h.

21 { return *(getValues() + fCapId); }

References getValues().

Referenced by CastorPedestalAnalysis::CastorPedVal().

◆ getValues()

const float* CastorPedestal::getValues ( ) const
inline

get value for all capId = 0..3

Definition at line 19 of file CastorPedestal.h.

19 { return &mValue0; }

References mValue0.

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

◆ getWidth()

float CastorPedestal::getWidth ( int  fCapId) const
inline

get width for capId = 0..3

Definition at line 26 of file CastorPedestal.h.

26 { return *(getWidths() + fCapId); }

References getWidths().

◆ getWidths()

const float* CastorPedestal::getWidths ( ) const
inline

get width for all capId = 0..3

Definition at line 24 of file CastorPedestal.h.

24 { return &mWidth0; }

References mWidth0.

Referenced by getWidth().

◆ rawId()

uint32_t CastorPedestal::rawId ( ) const
inline

Definition at line 52 of file CastorPedestal.h.

52 { return mId; }

References mId.

◆ serialize()

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

Friends And Related Function Documentation

◆ boost::serialization::access

friend class boost::serialization::access
friend

Definition at line 65 of file CastorPedestal.h.

◆ cond::serialization::access

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

Definition at line 65 of file CastorPedestal.h.

Member Data Documentation

◆ mId

uint32_t CastorPedestal::mId
private

Definition at line 55 of file CastorPedestal.h.

Referenced by rawId().

◆ mValue0

float CastorPedestal::mValue0
private

Definition at line 56 of file CastorPedestal.h.

Referenced by getValues().

◆ mValue1

float CastorPedestal::mValue1
private

Definition at line 57 of file CastorPedestal.h.

◆ mValue2

float CastorPedestal::mValue2
private

Definition at line 58 of file CastorPedestal.h.

◆ mValue3

float CastorPedestal::mValue3
private

Definition at line 59 of file CastorPedestal.h.

◆ mWidth0

float CastorPedestal::mWidth0
private

Definition at line 60 of file CastorPedestal.h.

Referenced by getWidths().

◆ mWidth1

float CastorPedestal::mWidth1
private

Definition at line 61 of file CastorPedestal.h.

◆ mWidth2

float CastorPedestal::mWidth2
private

Definition at line 62 of file CastorPedestal.h.

◆ mWidth3

float CastorPedestal::mWidth3
private

Definition at line 63 of file CastorPedestal.h.

CastorPedestal::mValue1
float mValue1
Definition: CastorPedestal.h:57
CastorPedestal::mWidth3
float mWidth3
Definition: CastorPedestal.h:63
CastorPedestal::mValue0
float mValue0
Definition: CastorPedestal.h:56
CastorPedestal::mWidth0
float mWidth0
Definition: CastorPedestal.h:60
CastorPedestal::getValues
const float * getValues() const
get value for all capId = 0..3
Definition: CastorPedestal.h:19
CastorPedestal::mWidth2
float mWidth2
Definition: CastorPedestal.h:62
CastorPedestal::mValue2
float mValue2
Definition: CastorPedestal.h:58
CastorPedestal::mId
uint32_t mId
Definition: CastorPedestal.h:55
CastorPedestal::getWidths
const float * getWidths() const
get width for all capId = 0..3
Definition: CastorPedestal.h:24
CastorPedestal::mValue3
float mValue3
Definition: CastorPedestal.h:59
CastorPedestal::mWidth1
float mWidth1
Definition: CastorPedestal.h:61