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 (HcalDcsValue const &other)
 
 HcalDcsValue (uint32_t fid, int ls, float val, float upper, float lower)
 
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) {}

◆ 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) {}

◆ 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) {}

◆ ~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.

18 { return mId; }

References mId.

Referenced by HcalDcsValues::addValue().

◆ getLowerLimit()

float HcalDcsValue::getLowerLimit ( ) const
inline

Definition at line 22 of file HcalDcsValue.h.

22 { return mLowerLimit; }

References mLowerLimit.

◆ getSubdetector()

HcalOtherSubdetector HcalDcsValue::getSubdetector ( ) const

Definition at line 18 of file HcalDcsValue.cc.

18  {
19  HcalDcsDetId tmpId(mId);
20  return tmpId.subdet();
21 }

References mId, and HcalOtherDetId::subdet().

◆ getUpperLimit()

float HcalDcsValue::getUpperLimit ( ) const
inline

Definition at line 21 of file HcalDcsValue.h.

21 { return mUpperLimit; }

References mUpperLimit.

◆ getValue()

float HcalDcsValue::getValue ( ) const
inline

Definition at line 20 of file HcalDcsValue.h.

20 { return mValue; }

References mValue.

◆ isValueGood()

bool HcalDcsValue::isValueGood ( ) const
inline

Definition at line 23 of file HcalDcsValue.h.

23 { return ((mValue <= mUpperLimit) && (mValue >= mLowerLimit)); }

References mLowerLimit, mUpperLimit, and mValue.

◆ LS()

int HcalDcsValue::LS ( ) const
inline

Definition at line 19 of file HcalDcsValue.h.

19 { return mLS; }

References mLS.

◆ operator<()

bool HcalDcsValue::operator< ( HcalDcsValue const &  rhs) const
inline

Definition at line 27 of file HcalDcsValue.h.

27  {
28  if (mId == rhs.mId)
29  return (mLS < rhs.mLS);
30  return (mId < rhs.mId);
31  }

References mId, and mLS.

◆ 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().

eostools.ls
def ls(path, rec=False)
Definition: eostools.py:349
HcalDcsDetId
Definition: HcalDcsDetId.h:27
HcalDcsValue::mId
uint32_t mId
Definition: HcalDcsValue.h:34
HcalDcsValue::mLowerLimit
float mLowerLimit
Definition: HcalDcsValue.h:38
trackingPlots.other
other
Definition: trackingPlots.py:1465
HcalDcsValue::mUpperLimit
float mUpperLimit
Definition: HcalDcsValue.h:37
heppy_batch.val
val
Definition: heppy_batch.py:351
pileupCalc.upper
upper
Definition: pileupCalc.py:214
HcalDcsValue::mValue
float mValue
Definition: HcalDcsValue.h:36
HcalDcsValue::mLS
int mLS
Definition: HcalDcsValue.h:35