ATLAS Offline Software
Classes | Public Types | Public Member Functions | Private Member Functions | Private Attributes | Friends | List of all members
LArBadChannel Class Reference

#include <LArBadChannel.h>

Collaboration diagram for LArBadChannel:

Classes

class  LArBadChannelEnum
 
class  LArBadChannelSCEnum
 

Public Types

typedef unsigned int PosType
 
typedef unsigned int BitWord
 

Public Member Functions

 LArBadChannel (BitWord rawStatus=0, bool isSC=false)
 
bool statusBad (PosType pb) const
 Returns true if corresponding status bit its set
More...
 
bool statusOK (PosType pb) const
 Returns true if there is no problem in corresponding status bit. More...
 
bool good () const
 Returns true if no problems at all (all bits at zero) More...
 
bool maskedOSUM () const
 
bool deformedTail () const
 
bool deformedPulse () const
 
bool nonLinearRamp () const
 
bool ADCJump () const
 
bool SCAProblem () const
 
bool offOFCs () const
 
bool offAmplitude () const
 
bool offScale () const
 
bool lowLightFibre () const
 
bool transmissionErrorFibre () const
 
bool deadReadout () const
 
bool deadCalib () const
 
bool deadPhys () const
 
bool almostDead () const
 
bool shortProblem () const
 
bool unstable () const
 
bool distorted () const
 
bool lowNoiseHG () const
 
bool highNoiseHG () const
 
bool unstableNoiseHG () const
 
bool lowNoiseMG () const
 
bool highNoiseMG () const
 
bool unstableNoiseMG () const
 
bool lowNoiseLG () const
 
bool highNoiseLG () const
 
bool unstableNoiseLG () const
 
bool missingFEB () const
 
bool peculiarCalibrationLine () const
 
bool problematicForUnknownReason () const
 
bool sporadicBurstNoise () const
 
bool deadSCACell () const
 
bool badFirstSample () const
 
bool unflaggedByLADIeS () const
 
bool reflaggedByLADIeS () const
 
bool reallyNoisy () const
 
bool noisy () const
 
bool operator!= (BitWord other)
 
bool operator!= (LArBadChannel other)
 
bool operator== (BitWord other)
 
bool operator== (LArBadChannel other)
 
LArBadChanneloperator|= (LArBadChannel other)
 
BitWord packedData () const
 
bool isSC () const
 
void setSC ()
 

Private Member Functions

BitWordpackedDataRef ()
 

Private Attributes

BitWord m_word
 
bool m_isSC
 

Friends

class TLArBadChanBitPackingBase< LArBadChannel::LArBadChannelSCEnum >
 
class TLArBadChanBitPackingBase< LArBadChannel::LArBadChannelEnum >
 

Detailed Description

Definition at line 10 of file LArBadChannel.h.

Member Typedef Documentation

◆ BitWord

typedef unsigned int LArBadChannel::BitWord

Definition at line 13 of file LArBadChannel.h.

◆ PosType

typedef unsigned int LArBadChannel::PosType

Definition at line 12 of file LArBadChannel.h.

Constructor & Destructor Documentation

◆ LArBadChannel()

LArBadChannel::LArBadChannel ( BitWord  rawStatus = 0,
bool  isSC = false 
)
inlineexplicit

Definition at line 77 of file LArBadChannel.h.

77 : m_word(rawStatus), m_isSC(isSC) {}

Member Function Documentation

◆ ADCJump()

bool LArBadChannel::ADCJump ( ) const
inline

Definition at line 97 of file LArBadChannel.h.

97 {if (m_isSC) return statusBad( LArBadChannelSCEnum::ADCJumpBit); else return false;}

◆ almostDead()

bool LArBadChannel::almostDead ( ) const
inline

Definition at line 110 of file LArBadChannel.h.

110 { if(m_isSC) return false; else return statusBad( LArBadChannelEnum::almostDeadBit);}

◆ badFirstSample()

bool LArBadChannel::badFirstSample ( ) const
inline

Definition at line 128 of file LArBadChannel.h.

128 {if(m_isSC) return false; else return statusBad( LArBadChannelEnum::badFirstSampleBit);}

◆ deadCalib()

bool LArBadChannel::deadCalib ( ) const
inline

Definition at line 108 of file LArBadChannel.h.

◆ deadPhys()

bool LArBadChannel::deadPhys ( ) const
inline

Definition at line 109 of file LArBadChannel.h.

◆ deadReadout()

bool LArBadChannel::deadReadout ( ) const
inline

◆ deadSCACell()

bool LArBadChannel::deadSCACell ( ) const
inline

Definition at line 127 of file LArBadChannel.h.

127 {if(m_isSC) return false; else return statusBad( LArBadChannelEnum::deadSCACellBit);}

◆ deformedPulse()

bool LArBadChannel::deformedPulse ( ) const
inline

Definition at line 95 of file LArBadChannel.h.

95 {if (m_isSC) return statusBad( LArBadChannelSCEnum::DeformedPulseBit); else return false;}

◆ deformedTail()

bool LArBadChannel::deformedTail ( ) const
inline

Definition at line 94 of file LArBadChannel.h.

94 {if (m_isSC) return statusBad( LArBadChannelSCEnum::DeformedTailBit); else return false;}

◆ distorted()

bool LArBadChannel::distorted ( ) const
inline

Definition at line 113 of file LArBadChannel.h.

113 { if(m_isSC) return false; else return statusBad( LArBadChannelEnum::distortedBit);}

◆ good()

bool LArBadChannel::good ( ) const
inline

Returns true if no problems at all (all bits at zero)

Definition at line 89 of file LArBadChannel.h.

89 {return m_word == 0;}

◆ highNoiseHG()

bool LArBadChannel::highNoiseHG ( ) const
inline

Definition at line 115 of file LArBadChannel.h.

115 { if(m_isSC) return false; else return statusBad( LArBadChannelEnum::highNoiseHGBit);}

◆ highNoiseLG()

bool LArBadChannel::highNoiseLG ( ) const
inline

Definition at line 121 of file LArBadChannel.h.

121 { if(m_isSC) return false; else return statusBad( LArBadChannelEnum::highNoiseLGBit);}

◆ highNoiseMG()

bool LArBadChannel::highNoiseMG ( ) const
inline

Definition at line 118 of file LArBadChannel.h.

118 { if(m_isSC) return false; else return statusBad( LArBadChannelEnum::highNoiseMGBit);}

◆ isSC()

bool LArBadChannel::isSC ( ) const
inline

Definition at line 145 of file LArBadChannel.h.

145 {return m_isSC;}

◆ lowLightFibre()

bool LArBadChannel::lowLightFibre ( ) const
inline

Definition at line 102 of file LArBadChannel.h.

102 {if (m_isSC) return statusBad( LArBadChannelSCEnum::lowLightFibreBit); else return false;}

◆ lowNoiseHG()

bool LArBadChannel::lowNoiseHG ( ) const
inline

Definition at line 114 of file LArBadChannel.h.

114 { if(m_isSC) return false; else return statusBad( LArBadChannelEnum::lowNoiseHGBit);}

◆ lowNoiseLG()

bool LArBadChannel::lowNoiseLG ( ) const
inline

Definition at line 120 of file LArBadChannel.h.

120 { if(m_isSC) return false; else return statusBad( LArBadChannelEnum::lowNoiseLGBit);}

◆ lowNoiseMG()

bool LArBadChannel::lowNoiseMG ( ) const
inline

Definition at line 117 of file LArBadChannel.h.

117 { if(m_isSC) return false; else return statusBad( LArBadChannelEnum::lowNoiseMGBit);}

◆ maskedOSUM()

bool LArBadChannel::maskedOSUM ( ) const
inline

Definition at line 93 of file LArBadChannel.h.

93 {if (m_isSC) return statusBad( LArBadChannelSCEnum::maskedOSUMBit); else return false;}

◆ missingFEB()

bool LArBadChannel::missingFEB ( ) const
inline

Definition at line 123 of file LArBadChannel.h.

123 { if(m_isSC) return false; else return statusBad( LArBadChannelEnum::missingFEBBit);}

◆ noisy()

bool LArBadChannel::noisy ( ) const
inline

Definition at line 134 of file LArBadChannel.h.

134 {return (reallyNoisy() || lowNoiseHG() || lowNoiseMG() || lowNoiseLG());}

◆ nonLinearRamp()

bool LArBadChannel::nonLinearRamp ( ) const
inline

Definition at line 96 of file LArBadChannel.h.

96 { if (m_isSC) return statusBad( LArBadChannelSCEnum::NonLinearRampBit); else return false;}

◆ offAmplitude()

bool LArBadChannel::offAmplitude ( ) const
inline

Definition at line 100 of file LArBadChannel.h.

100 {if (m_isSC) return statusBad( LArBadChannelSCEnum::OffAmplitudeBit); else return false;}

◆ offOFCs()

bool LArBadChannel::offOFCs ( ) const
inline

Definition at line 99 of file LArBadChannel.h.

99 {if (m_isSC) return statusBad( LArBadChannelSCEnum::OffOFCsBit); else return false;}

◆ offScale()

bool LArBadChannel::offScale ( ) const
inline

Definition at line 101 of file LArBadChannel.h.

101 {if (m_isSC) return statusBad( LArBadChannelSCEnum::OffScaleBit); else return false;}

◆ operator!=() [1/2]

bool LArBadChannel::operator!= ( BitWord  other)
inline

Definition at line 136 of file LArBadChannel.h.

136 {return m_word != other;}

◆ operator!=() [2/2]

bool LArBadChannel::operator!= ( LArBadChannel  other)
inline

Definition at line 137 of file LArBadChannel.h.

137 {return m_word != other.packedData();}

◆ operator==() [1/2]

bool LArBadChannel::operator== ( BitWord  other)
inline

Definition at line 138 of file LArBadChannel.h.

138 {return m_word == other;}

◆ operator==() [2/2]

bool LArBadChannel::operator== ( LArBadChannel  other)
inline

Definition at line 139 of file LArBadChannel.h.

139 {return m_word == other.packedData();}

◆ operator|=()

LArBadChannel& LArBadChannel::operator|= ( LArBadChannel  other)
inline

Definition at line 141 of file LArBadChannel.h.

141 {m_word|=other.m_word; return *this;}

◆ packedData()

BitWord LArBadChannel::packedData ( ) const
inline

Definition at line 143 of file LArBadChannel.h.

143 {return m_word;}

◆ packedDataRef()

BitWord& LArBadChannel::packedDataRef ( )
inlineprivate

Definition at line 152 of file LArBadChannel.h.

152 {return m_word;}

◆ peculiarCalibrationLine()

bool LArBadChannel::peculiarCalibrationLine ( ) const
inline

Definition at line 124 of file LArBadChannel.h.

124 { if(m_isSC) return false; else return statusBad( LArBadChannelEnum::peculiarCalibrationLineBit);}

◆ problematicForUnknownReason()

bool LArBadChannel::problematicForUnknownReason ( ) const
inline

◆ reallyNoisy()

bool LArBadChannel::reallyNoisy ( ) const
inline

Definition at line 132 of file LArBadChannel.h.

132  {return (highNoiseHG() || highNoiseMG() || highNoiseLG() ||

◆ reflaggedByLADIeS()

bool LArBadChannel::reflaggedByLADIeS ( ) const
inline

◆ SCAProblem()

bool LArBadChannel::SCAProblem ( ) const
inline

Definition at line 98 of file LArBadChannel.h.

98 {if (m_isSC) return statusBad( LArBadChannelSCEnum::SCAProblemBit); else return false;}

◆ setSC()

void LArBadChannel::setSC ( )
inline

Definition at line 146 of file LArBadChannel.h.

146 {m_isSC=true;}

◆ shortProblem()

bool LArBadChannel::shortProblem ( ) const
inline

Definition at line 111 of file LArBadChannel.h.

111 { if(m_isSC) return false; else return statusBad( LArBadChannelEnum::shortBit);}

◆ sporadicBurstNoise()

bool LArBadChannel::sporadicBurstNoise ( ) const
inline

◆ statusBad()

bool LArBadChannel::statusBad ( PosType  pb) const
inline

Returns true if corresponding status bit its set

Definition at line 80 of file LArBadChannel.h.

80  {
81  BitWord mask = 1u << pb;
82  return ((m_word & mask) != 0);
83  }

◆ statusOK()

bool LArBadChannel::statusOK ( PosType  pb) const
inline

Returns true if there is no problem in corresponding status bit.

Definition at line 86 of file LArBadChannel.h.

86 {return !statusBad(pb);}

◆ transmissionErrorFibre()

bool LArBadChannel::transmissionErrorFibre ( ) const
inline

Definition at line 103 of file LArBadChannel.h.

103 {if (m_isSC) return statusBad( LArBadChannelSCEnum::transmissionErrorFibreBit); else return false;}

◆ unflaggedByLADIeS()

bool LArBadChannel::unflaggedByLADIeS ( ) const
inline

◆ unstable()

bool LArBadChannel::unstable ( ) const
inline

Definition at line 112 of file LArBadChannel.h.

112 { if(m_isSC) return false; else return statusBad( LArBadChannelEnum::unstableBit);}

◆ unstableNoiseHG()

bool LArBadChannel::unstableNoiseHG ( ) const
inline

Definition at line 116 of file LArBadChannel.h.

116 { if(m_isSC) return false; else return statusBad( LArBadChannelEnum::unstableNoiseHGBit);}

◆ unstableNoiseLG()

bool LArBadChannel::unstableNoiseLG ( ) const
inline

Definition at line 122 of file LArBadChannel.h.

122 { if(m_isSC) return false; else return statusBad( LArBadChannelEnum::unstableNoiseLGBit);}

◆ unstableNoiseMG()

bool LArBadChannel::unstableNoiseMG ( ) const
inline

Definition at line 119 of file LArBadChannel.h.

119 { if(m_isSC) return false; else return statusBad( LArBadChannelEnum::unstableNoiseMGBit);}

Friends And Related Function Documentation

◆ TLArBadChanBitPackingBase< LArBadChannel::LArBadChannelEnum >

Definition at line 153 of file LArBadChannel.h.

◆ TLArBadChanBitPackingBase< LArBadChannel::LArBadChannelSCEnum >

Definition at line 153 of file LArBadChannel.h.

Member Data Documentation

◆ m_isSC

bool LArBadChannel::m_isSC
private

Definition at line 153 of file LArBadChannel.h.

◆ m_word

BitWord LArBadChannel::m_word
private

Definition at line 151 of file LArBadChannel.h.


The documentation for this class was generated from the following file:
LArBadChannel::LArBadChannelSCEnum::DeformedTailBit
@ DeformedTailBit
Definition: LArBadChannel.h:60
LArBadChannel::lowNoiseHG
bool lowNoiseHG() const
Definition: LArBadChannel.h:114
LArBadChannel::LArBadChannelEnum::problematicForUnknownReasonBit
@ problematicForUnknownReasonBit
Definition: LArBadChannel.h:38
LArBadChannel::LArBadChannelEnum::badFirstSampleBit
@ badFirstSampleBit
Definition: LArBadChannel.h:41
LArBadChannel::LArBadChannelSCEnum::OffAmplitudeBit
@ OffAmplitudeBit
Definition: LArBadChannel.h:66
keylayer_zslicemap.pb
pb
Definition: keylayer_zslicemap.py:188
LArBadChannel::LArBadChannelEnum::deadReadoutBit
@ deadReadoutBit
Definition: LArBadChannel.h:20
LArBadChannel::unstableNoiseLG
bool unstableNoiseLG() const
Definition: LArBadChannel.h:122
LArBadChannel::LArBadChannelSCEnum::deadPhysBit
@ deadPhysBit
Definition: LArBadChannel.h:55
LArBadChannel::lowNoiseLG
bool lowNoiseLG() const
Definition: LArBadChannel.h:120
LArBadChannel::LArBadChannelSCEnum::sporadicBurstNoiseBit
@ sporadicBurstNoiseBit
Definition: LArBadChannel.h:59
LArBadChannel::LArBadChannelSCEnum::reflaggedByLADIeSBit
@ reflaggedByLADIeSBit
Definition: LArBadChannel.h:71
LArBadChannel::LArBadChannelEnum::lowNoiseLGBit
@ lowNoiseLGBit
Definition: LArBadChannel.h:33
LArBadChannel::LArBadChannelSCEnum::SCAProblemBit
@ SCAProblemBit
Definition: LArBadChannel.h:64
LArBadChannel::LArBadChannelEnum::lowNoiseHGBit
@ lowNoiseHGBit
Definition: LArBadChannel.h:27
LArBadChannel::LArBadChannelSCEnum::maskedOSUMBit
@ maskedOSUMBit
Definition: LArBadChannel.h:52
LArBadChannel::m_isSC
bool m_isSC
Definition: LArBadChannel.h:153
LArBadChannel::LArBadChannelEnum::deadCalibBit
@ deadCalibBit
Definition: LArBadChannel.h:21
LArBadChannel::LArBadChannelSCEnum::DeformedPulseBit
@ DeformedPulseBit
Definition: LArBadChannel.h:61
LArBadChannel::highNoiseHG
bool highNoiseHG() const
Definition: LArBadChannel.h:115
LArBadChannel::LArBadChannelEnum::unstableNoiseMGBit
@ unstableNoiseMGBit
Definition: LArBadChannel.h:32
LArBadChannel::LArBadChannelEnum::missingFEBBit
@ missingFEBBit
Definition: LArBadChannel.h:36
LArBadChannel::LArBadChannelSCEnum::ADCJumpBit
@ ADCJumpBit
Definition: LArBadChannel.h:63
Trk::u
@ u
Enums for curvilinear frames.
Definition: ParamDefs.h:77
python.utils.AtlRunQueryLookup.mask
string mask
Definition: AtlRunQueryLookup.py:460
LArBadChannel::LArBadChannelSCEnum::unflaggedByLADIeSBit
@ unflaggedByLADIeSBit
Definition: LArBadChannel.h:70
LArBadChannel::LArBadChannelEnum::unstableBit
@ unstableBit
Definition: LArBadChannel.h:25
LArBadChannel::unstableNoiseHG
bool unstableNoiseHG() const
Definition: LArBadChannel.h:116
LArBadChannel::statusBad
bool statusBad(PosType pb) const
Returns true if corresponding status bit its set
Definition: LArBadChannel.h:80
LArBadChannel::LArBadChannelSCEnum::deadCalibBit
@ deadCalibBit
Definition: LArBadChannel.h:54
LArBadChannel::BitWord
unsigned int BitWord
Definition: LArBadChannel.h:13
LArBadChannel::LArBadChannelSCEnum::problematicForUnknownReasonBit
@ problematicForUnknownReasonBit
Definition: LArBadChannel.h:58
LArBadChannel::LArBadChannelEnum::almostDeadBit
@ almostDeadBit
Definition: LArBadChannel.h:23
LArBadChannel::LArBadChannelEnum::unstableNoiseHGBit
@ unstableNoiseHGBit
Definition: LArBadChannel.h:29
LArBadChannel::unstableNoiseMG
bool unstableNoiseMG() const
Definition: LArBadChannel.h:119
LArBadChannel::LArBadChannelSCEnum::NonLinearRampBit
@ NonLinearRampBit
Definition: LArBadChannel.h:62
LArBadChannel::LArBadChannelSCEnum::OffOFCsBit
@ OffOFCsBit
Definition: LArBadChannel.h:65
LArBadChannel::LArBadChannelEnum::highNoiseMGBit
@ highNoiseMGBit
Definition: LArBadChannel.h:31
LArBadChannel::m_word
BitWord m_word
Definition: LArBadChannel.h:151
LArBadChannel::LArBadChannelEnum::sporadicBurstNoiseBit
@ sporadicBurstNoiseBit
Definition: LArBadChannel.h:39
LArBadChannel::LArBadChannelEnum::unstableNoiseLGBit
@ unstableNoiseLGBit
Definition: LArBadChannel.h:35
LArBadChannel::reallyNoisy
bool reallyNoisy() const
Definition: LArBadChannel.h:132
LArBadChannel::lowNoiseMG
bool lowNoiseMG() const
Definition: LArBadChannel.h:117
LArBadChannel::LArBadChannelSCEnum::lowLightFibreBit
@ lowLightFibreBit
Definition: LArBadChannel.h:68
LArBadChannel::highNoiseLG
bool highNoiseLG() const
Definition: LArBadChannel.h:121
LArBadChannel::LArBadChannelEnum::reflaggedByLADIeSBit
@ reflaggedByLADIeSBit
Definition: LArBadChannel.h:43
InDetDD::other
@ other
Definition: InDetDD_Defs.h:16
LArBadChannel::LArBadChannelSCEnum::transmissionErrorFibreBit
@ transmissionErrorFibreBit
Definition: LArBadChannel.h:69
LArBadChannel::LArBadChannelEnum::shortBit
@ shortBit
Definition: LArBadChannel.h:24
LArBadChannel::LArBadChannelEnum::distortedBit
@ distortedBit
Definition: LArBadChannel.h:26
LArBadChannel::LArBadChannelEnum::lowNoiseMGBit
@ lowNoiseMGBit
Definition: LArBadChannel.h:30
LArBadChannel::highNoiseMG
bool highNoiseMG() const
Definition: LArBadChannel.h:118
LArBadChannel::LArBadChannelEnum::deadSCACellBit
@ deadSCACellBit
Definition: LArBadChannel.h:40
LArBadChannel::LArBadChannelEnum::unflaggedByLADIeSBit
@ unflaggedByLADIeSBit
Definition: LArBadChannel.h:42
LArBadChannel::LArBadChannelEnum::highNoiseHGBit
@ highNoiseHGBit
Definition: LArBadChannel.h:28
LArBadChannel::LArBadChannelEnum::highNoiseLGBit
@ highNoiseLGBit
Definition: LArBadChannel.h:34
LArBadChannel::isSC
bool isSC() const
Definition: LArBadChannel.h:145
LArBadChannel::LArBadChannelEnum::peculiarCalibrationLineBit
@ peculiarCalibrationLineBit
Definition: LArBadChannel.h:37
LArBadChannel::LArBadChannelSCEnum::deadReadoutBit
@ deadReadoutBit
Definition: LArBadChannel.h:53
LArBadChannel::LArBadChannelEnum::deadPhysBit
@ deadPhysBit
Definition: LArBadChannel.h:22
LArBadChannel::LArBadChannelSCEnum::OffScaleBit
@ OffScaleBit
Definition: LArBadChannel.h:67