CMS 3D CMS Logo

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules 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() [1/3]

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

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

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::~HcalDcsValue ( )
virtual

Definition at line 16 of file HcalDcsValue.cc.

16 {}

Member Function Documentation

◆ DcsId()

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

◆ getLowerLimit()

float HcalDcsValue::getLowerLimit ( ) const
inline

Definition at line 22 of file HcalDcsValue.h.

References mLowerLimit.

22 { return mLowerLimit; }
float mLowerLimit
Definition: HcalDcsValue.h:38

◆ getSubdetector()

HcalOtherSubdetector HcalDcsValue::getSubdetector ( ) const

Definition at line 18 of file HcalDcsValue.cc.

References mId, and HcalOtherDetId::subdet().

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

◆ getUpperLimit()

float HcalDcsValue::getUpperLimit ( ) const
inline

Definition at line 21 of file HcalDcsValue.h.

References mUpperLimit.

21 { return mUpperLimit; }
float mUpperLimit
Definition: HcalDcsValue.h:37

◆ getValue()

float HcalDcsValue::getValue ( ) const
inline

Definition at line 20 of file HcalDcsValue.h.

References mValue.

20 { return mValue; }

◆ isValueGood()

bool HcalDcsValue::isValueGood ( ) const
inline

Definition at line 23 of file HcalDcsValue.h.

References mLowerLimit, mUpperLimit, and mValue.

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

◆ LS()

int HcalDcsValue::LS ( ) const
inline

Definition at line 19 of file HcalDcsValue.h.

References mLS.

19 { return mLS; }

◆ operator<()

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

◆ serialize()

template<class Archive >
void HcalDcsValue::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 40 of file HcalDcsValue.h.

◆ cond::serialization::access

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

Definition at line 40 of file HcalDcsValue.h.

Member Data Documentation

◆ mId

uint32_t HcalDcsValue::mId
private

Definition at line 34 of file HcalDcsValue.h.

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

◆ mLowerLimit

float HcalDcsValue::mLowerLimit
private

Definition at line 38 of file HcalDcsValue.h.

Referenced by getLowerLimit(), and isValueGood().

◆ mLS

int HcalDcsValue::mLS
private

Definition at line 35 of file HcalDcsValue.h.

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

◆ mUpperLimit

float HcalDcsValue::mUpperLimit
private

Definition at line 37 of file HcalDcsValue.h.

Referenced by getUpperLimit(), and isValueGood().

◆ mValue

float HcalDcsValue::mValue
private

Definition at line 36 of file HcalDcsValue.h.

Referenced by getValue(), and isValueGood().