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 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  :
5  mId(0), mLS(0), mValue(0), mUpperLimit(0), mLowerLimit(0) {
6 }
float mUpperLimit
Definition: HcalDcsValue.h:40
uint32_t mId
Definition: HcalDcsValue.h:37
float mLowerLimit
Definition: HcalDcsValue.h:41
HcalDcsValue::HcalDcsValue ( uint32_t  fid,
int  ls,
float  val,
float  upper,
float  lower 
)

Definition at line 8 of file HcalDcsValue.cc.

9  :
10  mId(fid), mLS(ls), mValue(val), mUpperLimit(upper), mLowerLimit(lower) {
11 }
float mUpperLimit
Definition: HcalDcsValue.h:40
def ls
Definition: eostools.py:348
uint32_t mId
Definition: HcalDcsValue.h:37
list fid
Definition: NewTree.py:51
float mLowerLimit
Definition: HcalDcsValue.h:41
HcalDcsValue::HcalDcsValue ( HcalDcsValue const &  other)

Definition at line 13 of file HcalDcsValue.cc.

13  :
14  mId(other.mId), mLS(other.mLS), mValue(other.mValue),
15  mUpperLimit(other.mUpperLimit), mLowerLimit(other.mLowerLimit) {
16 }
float mUpperLimit
Definition: HcalDcsValue.h:40
uint32_t mId
Definition: HcalDcsValue.h:37
float mLowerLimit
Definition: HcalDcsValue.h:41
HcalDcsValue::~HcalDcsValue ( )
virtual

Definition at line 18 of file HcalDcsValue.cc.

18  {
19 }

Member Function Documentation

uint32_t HcalDcsValue::DcsId ( ) const
inline

Definition at line 20 of file HcalDcsValue.h.

References mId.

Referenced by HcalDcsValues::addValue().

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

Definition at line 24 of file HcalDcsValue.h.

References mLowerLimit.

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

Definition at line 21 of file HcalDcsValue.cc.

References mId, and HcalOtherDetId::subdet().

21  {
22  HcalDcsDetId tmpId(mId);
23  return tmpId.subdet();
24 }
uint32_t mId
Definition: HcalDcsValue.h:37
float HcalDcsValue::getUpperLimit ( ) const
inline

Definition at line 23 of file HcalDcsValue.h.

References mUpperLimit.

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

Definition at line 22 of file HcalDcsValue.h.

References mValue.

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

Definition at line 25 of file HcalDcsValue.h.

References mLowerLimit, mUpperLimit, and mValue.

25  {
26  return ((mValue <= mUpperLimit) && (mValue >= mLowerLimit));
27  }
float mUpperLimit
Definition: HcalDcsValue.h:40
float mLowerLimit
Definition: HcalDcsValue.h:41
int HcalDcsValue::LS ( ) const
inline

Definition at line 21 of file HcalDcsValue.h.

References mLS.

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

Definition at line 31 of file HcalDcsValue.h.

References mId, and mLS.

31  {
32  if (mId == rhs.mId) return (mLS < rhs.mLS);
33  return (mId < rhs.mId);
34  }
uint32_t mId
Definition: HcalDcsValue.h:37
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 43 of file HcalDcsValue.h.

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

Definition at line 43 of file HcalDcsValue.h.

Member Data Documentation

uint32_t HcalDcsValue::mId
private

Definition at line 37 of file HcalDcsValue.h.

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

float HcalDcsValue::mLowerLimit
private

Definition at line 41 of file HcalDcsValue.h.

Referenced by getLowerLimit(), and isValueGood().

int HcalDcsValue::mLS
private

Definition at line 38 of file HcalDcsValue.h.

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

float HcalDcsValue::mUpperLimit
private

Definition at line 40 of file HcalDcsValue.h.

Referenced by getUpperLimit(), and isValueGood().

float HcalDcsValue::mValue
private

Definition at line 39 of file HcalDcsValue.h.

Referenced by getValue(), and isValueGood().