CMS 3D CMS Logo

Public Member Functions | Private Attributes

HcalDcsValue Class Reference

#include <HcalDcsValue.h>

List of all members.

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 Attributes

uint32_t mId
float mLowerLimit
int mLS
float mUpperLimit
float mValue

Detailed Description

Definition at line 8 of file HcalDcsValue.h.


Constructor & Destructor Documentation

HcalDcsValue::HcalDcsValue ( )

Definition at line 4 of file HcalDcsValue.cc.

                            : 
  mId(0), mLS(0), mValue(0), mUpperLimit(0), mLowerLimit(0) {
}
HcalDcsValue::HcalDcsValue ( uint32_t  fid,
int  ls,
float  val,
float  upper,
float  lower 
)

Definition at line 8 of file HcalDcsValue.cc.

                                                      :
  mId(fid), mLS(ls), mValue(val), mUpperLimit(upper), mLowerLimit(lower) {
}
HcalDcsValue::HcalDcsValue ( HcalDcsValue const &  other)

Definition at line 13 of file HcalDcsValue.cc.

                                                     :
  mId(other.mId), mLS(other.mLS), mValue(other.mValue), 
  mUpperLimit(other.mUpperLimit), mLowerLimit(other.mLowerLimit) {
}
HcalDcsValue::~HcalDcsValue ( ) [virtual]

Definition at line 18 of file HcalDcsValue.cc.

                             {
}

Member Function Documentation

uint32_t HcalDcsValue::DcsId ( ) const [inline]

Definition at line 18 of file HcalDcsValue.h.

References mId.

Referenced by HcalDcsValues::addValue().

{ return mId; }
float HcalDcsValue::getLowerLimit ( ) const [inline]

Definition at line 22 of file HcalDcsValue.h.

References mLowerLimit.

{ return mLowerLimit; }
HcalOtherSubdetector HcalDcsValue::getSubdetector ( ) const

Definition at line 21 of file HcalDcsValue.cc.

References mId, and HcalOtherDetId::subdet().

                                                         {
  HcalDcsDetId tmpId(mId);
  return tmpId.subdet();
}
float HcalDcsValue::getUpperLimit ( ) const [inline]

Definition at line 21 of file HcalDcsValue.h.

References mUpperLimit.

{ return mUpperLimit; }
float HcalDcsValue::getValue ( ) const [inline]

Definition at line 20 of file HcalDcsValue.h.

References mValue.

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

Definition at line 23 of file HcalDcsValue.h.

References mLowerLimit, mUpperLimit, and mValue.

                            { 
    return ((mValue <= mUpperLimit) && (mValue >= mLowerLimit)); 
  }
int HcalDcsValue::LS ( ) const [inline]

Definition at line 19 of file HcalDcsValue.h.

References mLS.

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

Definition at line 29 of file HcalDcsValue.h.

References mId, and mLS.

                                                  {
    if (mId == rhs.mId) return (mLS < rhs.mLS);
    return (mId < rhs.mId);
  }

Member Data Documentation

uint32_t HcalDcsValue::mId [private]

Definition at line 35 of file HcalDcsValue.h.

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

float HcalDcsValue::mLowerLimit [private]

Definition at line 39 of file HcalDcsValue.h.

Referenced by getLowerLimit(), and isValueGood().

int HcalDcsValue::mLS [private]

Definition at line 36 of file HcalDcsValue.h.

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

float HcalDcsValue::mUpperLimit [private]

Definition at line 38 of file HcalDcsValue.h.

Referenced by getUpperLimit(), and isValueGood().

float HcalDcsValue::mValue [private]

Definition at line 37 of file HcalDcsValue.h.

Referenced by getValue(), and isValueGood().