CMS 3D CMS Logo

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

#include <HcalDcsValue.h>

Public Member Functions

uint32_t DcsId () const
 
float getLowerLimit () const
 
HcalOtherSubdetector getSubdetector () const
 
float getUpperLimit () const
 
float getValue () const
 
 HcalDcsValue ()
 
 HcalDcsValue (uint32_t fid, int ls, float val, float upper, float lower)
 
 HcalDcsValue (HcalDcsValue const &other)
 
bool isValueGood () const
 
int LS () const
 
bool operator< (HcalDcsValue const &rhs) const
 
virtual ~HcalDcsValue ()
 

Private Member Functions

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

Private Attributes

uint32_t mId
 
float mLowerLimit
 
int mLS
 
float mUpperLimit
 
float mValue
 

Friends

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

Detailed Description

Definition at line 10 of file HcalDcsValue.h.

Constructor & Destructor Documentation

HcalDcsValue::HcalDcsValue ( )

Definition at line 4 of file HcalDcsValue.cc.

4 : mId(0), mLS(0), mValue(0), mUpperLimit(0), mLowerLimit(0) {}
float mUpperLimit
Definition: HcalDcsValue.h:37
uint32_t mId
Definition: HcalDcsValue.h:34
float mLowerLimit
Definition: HcalDcsValue.h:38
HcalDcsValue::HcalDcsValue ( uint32_t  fid,
int  ls,
float  val,
float  upper,
float  lower 
)

Definition at line 6 of file HcalDcsValue.cc.

7  : mId(fid), mLS(ls), mValue(val), mUpperLimit(upper), mLowerLimit(lower) {}
float mUpperLimit
Definition: HcalDcsValue.h:37
uint32_t mId
Definition: HcalDcsValue.h:34
def ls(path, rec=False)
Definition: eostools.py:349
float mLowerLimit
Definition: HcalDcsValue.h:38
HcalDcsValue::HcalDcsValue ( HcalDcsValue const &  other)

Definition at line 9 of file HcalDcsValue.cc.

10  : mId(other.mId),
11  mLS(other.mLS),
12  mValue(other.mValue),
13  mUpperLimit(other.mUpperLimit),
14  mLowerLimit(other.mLowerLimit) {}
float mUpperLimit
Definition: HcalDcsValue.h:37
uint32_t mId
Definition: HcalDcsValue.h:34
float mLowerLimit
Definition: HcalDcsValue.h:38
HcalDcsValue::~HcalDcsValue ( )
virtual

Definition at line 16 of file HcalDcsValue.cc.

16 {}

Member Function Documentation

uint32_t HcalDcsValue::DcsId ( ) const
inline

Definition at line 18 of file HcalDcsValue.h.

References mId.

Referenced by HcalDcsValues::addValue().

18 { return mId; }
uint32_t mId
Definition: HcalDcsValue.h:34
float HcalDcsValue::getLowerLimit ( ) const
inline

Definition at line 22 of file HcalDcsValue.h.

References mLowerLimit.

22 { return mLowerLimit; }
float mLowerLimit
Definition: HcalDcsValue.h:38
HcalOtherSubdetector HcalDcsValue::getSubdetector ( ) const

Definition at line 18 of file HcalDcsValue.cc.

References mId, and HcalOtherDetId::subdet().

Referenced by isValueGood().

18  {
19  HcalDcsDetId tmpId(mId);
20  return tmpId.subdet();
21 }
uint32_t mId
Definition: HcalDcsValue.h:34
float HcalDcsValue::getUpperLimit ( ) const
inline

Definition at line 21 of file HcalDcsValue.h.

References mUpperLimit.

21 { return mUpperLimit; }
float mUpperLimit
Definition: HcalDcsValue.h:37
float HcalDcsValue::getValue ( ) const
inline

Definition at line 20 of file HcalDcsValue.h.

References mValue.

20 { return mValue; }
bool HcalDcsValue::isValueGood ( ) const
inline

Definition at line 23 of file HcalDcsValue.h.

References getSubdetector(), mLowerLimit, mUpperLimit, and mValue.

23 { return ((mValue <= mUpperLimit) && (mValue >= mLowerLimit)); }
float mUpperLimit
Definition: HcalDcsValue.h:37
float mLowerLimit
Definition: HcalDcsValue.h:38
int HcalDcsValue::LS ( ) const
inline

Definition at line 19 of file HcalDcsValue.h.

References mLS.

19 { return mLS; }
bool HcalDcsValue::operator< ( HcalDcsValue const &  rhs) const
inline

Definition at line 27 of file HcalDcsValue.h.

References mId, and mLS.

27  {
28  if (mId == rhs.mId)
29  return (mLS < rhs.mLS);
30  return (mId < rhs.mId);
31  }
uint32_t mId
Definition: HcalDcsValue.h:34
template<class Archive >
void HcalDcsValue::serialize ( Archive &  ar,
const unsigned int  version 
)
private

Friends And Related Function Documentation

friend class boost::serialization::access
friend

Definition at line 40 of file HcalDcsValue.h.

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

Definition at line 40 of file HcalDcsValue.h.

Member Data Documentation

uint32_t HcalDcsValue::mId
private

Definition at line 34 of file HcalDcsValue.h.

Referenced by DcsId(), getSubdetector(), and operator<().

float HcalDcsValue::mLowerLimit
private

Definition at line 38 of file HcalDcsValue.h.

Referenced by getLowerLimit(), and isValueGood().

int HcalDcsValue::mLS
private

Definition at line 35 of file HcalDcsValue.h.

Referenced by LS(), and operator<().

float HcalDcsValue::mUpperLimit
private

Definition at line 37 of file HcalDcsValue.h.

Referenced by getUpperLimit(), and isValueGood().

float HcalDcsValue::mValue
private

Definition at line 36 of file HcalDcsValue.h.

Referenced by getValue(), and isValueGood().