CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Types | Public Member Functions | Private Member Functions | Private Attributes | Friends
HcalChannelStatus Class Reference

#include <HcalChannelStatus.h>

Public Types

enum  StatusBit {
  HcalCellOff =0, HcalCellMask =1, HcalCellDead =5, HcalCellHot =6,
  HcalCellStabErr =7, HcalCellTimErr =8, HcalCellExcludeFromHBHENoiseSummary = 9, HcalCellExcludeFromHBHENoiseSummaryR45 = 10,
  HcalBadLaserSignal = 11, HcalCellTrigMask =15, HcalCellCaloTowerMask =18, HcalCellCaloTowerProb =19
}
 

Public Member Functions

uint32_t getValue () const
 
 HcalChannelStatus ()
 
 HcalChannelStatus (unsigned long fid, uint32_t status)
 
bool isBitSet (unsigned int bitnumber) const
 
uint32_t rawId () const
 
void setBit (unsigned int bitnumber)
 
void setValue (uint32_t value)
 
void unsetBit (unsigned int bitnumber)
 

Private Member Functions

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

Private Attributes

uint32_t mId
 
uint32_t mStatus
 

Friends

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

Detailed Description

Definition at line 15 of file HcalChannelStatus.h.

Member Enumeration Documentation

Enumerator
HcalCellOff 
HcalCellMask 
HcalCellDead 
HcalCellHot 
HcalCellStabErr 
HcalCellTimErr 
HcalCellExcludeFromHBHENoiseSummary 
HcalCellExcludeFromHBHENoiseSummaryR45 
HcalBadLaserSignal 
HcalCellTrigMask 
HcalCellCaloTowerMask 
HcalCellCaloTowerProb 

Definition at line 19 of file HcalChannelStatus.h.

19  {
20  HcalCellOff=0, // 1=Hcal cell is off
21  HcalCellMask=1, // 1=Hcal cell is masked/to be masked at RecHit Level
22  // Quality Bits
23  HcalCellDead=5, // 1=Hcal cell is dead (from DQM algo)
24  HcalCellHot=6, // 1=Hcal cell is hot (from DQM algo)
25  HcalCellStabErr=7, // 1=Hcal cell has stability error
26  HcalCellTimErr=8, // 1=Hcal cell has timing error
27  HcalCellExcludeFromHBHENoiseSummary = 9, //1=cell is completely excluded from all HBHENoiseSummary computations
28  HcalCellExcludeFromHBHENoiseSummaryR45 = 10, //1=cell's rechit is excluded when calculating the TS4TS5 ratio only in the HBHE Noise Summary
29  HcalBadLaserSignal = 11, //1 = channel does not receive good laser calibration signal
30  // Trigger Bits
31  HcalCellTrigMask=15, // 1=cell is masked from the Trigger
32  // CaloTower Bits
33  HcalCellCaloTowerMask=18, // 1=cell is always excluded from the CaloTower, regardless of other bit settings.
34  HcalCellCaloTowerProb=19 // 1=cell is counted as problematic within the tower.
35  };

Constructor & Destructor Documentation

HcalChannelStatus::HcalChannelStatus ( )
inline

Definition at line 37 of file HcalChannelStatus.h.

37 : mId(0), mStatus(0) {}
HcalChannelStatus::HcalChannelStatus ( unsigned long  fid,
uint32_t  status 
)
inline

Definition at line 38 of file HcalChannelStatus.h.

38 : mId(fid), mStatus(status) {}
tuple status
Definition: ntuplemaker.py:245
list fid
Definition: NewTree.py:51

Member Function Documentation

uint32_t HcalChannelStatus::getValue ( ) const
inline
bool HcalChannelStatus::isBitSet ( unsigned int  bitnumber) const
inline

Definition at line 57 of file HcalChannelStatus.h.

References mStatus.

Referenced by HcalBeamMonitor::beginRun().

58  {
59  uint32_t statadd = 0x1<<(bitnumber);
60  return (mStatus&statadd)?(true):(false);
61  }
uint32_t HcalChannelStatus::rawId ( ) const
inline

Definition at line 63 of file HcalChannelStatus.h.

References mId.

Referenced by HcalBeamMonitor::beginRun(), and HcalMonitorClient::writeChannelStatus().

63 {return mId;}
template<class Archive >
void HcalChannelStatus::serialize ( Archive &  ar,
const unsigned int  version 
)
private
void HcalChannelStatus::setBit ( unsigned int  bitnumber)
inline

Definition at line 45 of file HcalChannelStatus.h.

References mStatus.

Referenced by HcalMonitorClient::writeChannelStatus().

46  {
47  uint32_t statadd = 0x1<<(bitnumber);
48  mStatus = mStatus|statadd;
49  }
void HcalChannelStatus::setValue ( uint32_t  value)
inline
void HcalChannelStatus::unsetBit ( unsigned int  bitnumber)
inline

Definition at line 50 of file HcalChannelStatus.h.

References mStatus.

Referenced by HcalMonitorClient::writeChannelStatus().

51  {
52  uint32_t statadd = 0x1<<(bitnumber);
53  statadd = ~statadd;
54  mStatus = mStatus&statadd;
55  }

Friends And Related Function Documentation

friend class boost::serialization::access
friend

Definition at line 72 of file HcalChannelStatus.h.

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

Definition at line 72 of file HcalChannelStatus.h.

Member Data Documentation

uint32_t HcalChannelStatus::mId
private

Definition at line 68 of file HcalChannelStatus.h.

Referenced by rawId().

uint32_t HcalChannelStatus::mStatus
private

Definition at line 69 of file HcalChannelStatus.h.

Referenced by getValue(), isBitSet(), setBit(), setValue(), and unsetBit().