ATLAS Offline Software
Loading...
Searching...
No Matches
LArBadChanBitPacking Class Reference

#include <LArBadChanBitPacking.h>

Inheritance diagram for LArBadChanBitPacking:
Collaboration diagram for LArBadChanBitPacking:

Public Types

typedef std::vector< LArBadChannel::PosTypePosContainer

Public Member Functions

 LArBadChanBitPacking ()
const std::string & stringName (typename LArBadChannel::LArBadChannelEnum::ProblemType pb) const
std::pair< bool, typename LArBadChannel::LArBadChannelEnum::ProblemTypeenumName (const std::string &str) const
LArBadChannel::PosType bitPosition (typename LArBadChannel::LArBadChannelEnum::ProblemType pb) const
LArBadChannel::PosType wordSize () const
void setBit (typename LArBadChannel::LArBadChannelEnum::ProblemType pb, LArBadChannel::BitWord &word, bool value=true) const
void setBit (typename LArBadChannel::LArBadChannelEnum::ProblemType pb, LArBadChannel &word, bool value=true) const
bool setBit (const std::string &name, LArBadChannel::BitWord &word, bool value=true) const
bool setBit (const std::string &name, LArBadChannel &word, bool value=true) const
std::string stringStatus (const LArBadChannel &bc) const
LArBadChannel::BitWord highGainMask () const
LArBadChannel::BitWord mediumGainMask () const
LArBadChannel::BitWord lowGainMask () const
int numberOfProblemTypes () const

Protected Types

enum  GainDependence

Protected Member Functions

void addBit (typename LArBadChannel::LArBadChannelEnum::ProblemType pb, const std::string &name, GainDependence gaindep)
int index (typename LArBadChannel::LArBadChannelEnum::ProblemType pb) const
void initMasks ()

Protected Attributes

PosContainer m_bitPos
std::vector< int > m_index
std::vector< std::pair< typename LArBadChannel::LArBadChannelEnum::ProblemType, GainDependence > > m_enumVec
std::vector< std::string > m_nameVec
std::map< std::string, typename LArBadChannel::LArBadChannelEnum::ProblemTypem_nameMap
LArBadChannel::BitWord m_highGainMask
LArBadChannel::BitWord m_mediumGainMask
LArBadChannel::BitWord m_lowGainMask

Detailed Description

Definition at line 13 of file LArBadChanBitPacking.h.

Member Typedef Documentation

◆ PosContainer

Definition at line 17 of file LArBadChanBitPackingBase.h.

Member Enumeration Documentation

◆ GainDependence

Constructor & Destructor Documentation

◆ LArBadChanBitPacking()

LArBadChanBitPacking::LArBadChanBitPacking ( )

Initial assignment of bit positions same as enumerator values. This may be changed FIXME provide method for changing it

Definition at line 7 of file LArBadChanBitPacking.cxx.

8{
9 // Here, specify each problem and its gain dependence.
35
36 for (unsigned int i=0; i<m_enumVec.size(); i++) {
37 m_nameMap[m_nameVec[i]] = m_enumVec[i].first;
40 m_bitPos[m_enumVec[i].first] = m_enumVec[i].first;
41
42 m_index[m_enumVec[i].first] = i;
43 }
44
45 initMasks(); // initialize the gain masks
46};
TLArBadChanBitPackingBase< LArBadChannel::LArBadChannelEnum > LArBadChanBitPackingBase
std::vector< std::pair< typename LArBadChannel::LArBadChannelEnum::ProblemType, GainDependence > > m_enumVec
void addBit(typename LArBadChannel::LArBadChannelEnum::ProblemType pb, const std::string &name, GainDependence gaindep)
std::map< std::string, typename LArBadChannel::LArBadChannelEnum::ProblemType > m_nameMap

Member Function Documentation

◆ addBit()

void TLArBadChanBitPackingBase< LArBadChannel::LArBadChannelEnum >::addBit ( typename LArBadChannel::LArBadChannelEnum::ProblemType pb,
const std::string & name,
GainDependence gaindep )
protectedinherited

◆ bitPosition()

◆ enumName()

std::pair< bool, typename LArBadChannel::LArBadChannelEnum::ProblemType > TLArBadChanBitPackingBase< LArBadChannel::LArBadChannelEnum >::enumName ( const std::string & str) const
inherited

◆ highGainMask()

◆ index()

Definition at line 66 of file LArBadChanBitPackingBase.h.

66{return m_index[pb];}

◆ initMasks()

void TLArBadChanBitPackingBase< LArBadChannel::LArBadChannelEnum >::initMasks ( )
protectedinherited

◆ lowGainMask()

◆ mediumGainMask()

◆ numberOfProblemTypes()

int TLArBadChanBitPackingBase< LArBadChannel::LArBadChannelEnum >::numberOfProblemTypes ( ) const
inlineinherited

Definition at line 46 of file LArBadChanBitPackingBase.h.

46{ return m_nameVec.size();}

◆ setBit() [1/4]

bool TLArBadChanBitPackingBase< LArBadChannel::LArBadChannelEnum >::setBit ( const std::string & name,
LArBadChannel & word,
bool value = true ) const
inherited

◆ setBit() [2/4]

bool TLArBadChanBitPackingBase< LArBadChannel::LArBadChannelEnum >::setBit ( const std::string & name,
LArBadChannel::BitWord & word,
bool value = true ) const
inherited

◆ setBit() [3/4]

void TLArBadChanBitPackingBase< LArBadChannel::LArBadChannelEnum >::setBit ( typename LArBadChannel::LArBadChannelEnum::ProblemType pb,
LArBadChannel & word,
bool value = true ) const
inherited

◆ setBit() [4/4]

◆ stringName()

const std::string & TLArBadChanBitPackingBase< LArBadChannel::LArBadChannelEnum >::stringName ( typename LArBadChannel::LArBadChannelEnum::ProblemType pb) const
inherited

◆ stringStatus()

std::string TLArBadChanBitPackingBase< LArBadChannel::LArBadChannelEnum >::stringStatus ( const LArBadChannel & bc) const
inherited

◆ wordSize()

Definition at line 31 of file LArBadChanBitPackingBase.h.

31{return sizeof(LArBadChannel::BitWord);}

Member Data Documentation

◆ m_bitPos

Definition at line 53 of file LArBadChanBitPackingBase.h.

◆ m_enumVec

Definition at line 55 of file LArBadChanBitPackingBase.h.

◆ m_highGainMask

Definition at line 61 of file LArBadChanBitPackingBase.h.

◆ m_index

std::vector<int> TLArBadChanBitPackingBase< LArBadChannel::LArBadChannelEnum >::m_index
protectedinherited

Definition at line 54 of file LArBadChanBitPackingBase.h.

◆ m_lowGainMask

◆ m_mediumGainMask

Definition at line 62 of file LArBadChanBitPackingBase.h.

◆ m_nameMap

std::map<std::string, typename LArBadChannel::LArBadChannelEnum::ProblemType> TLArBadChanBitPackingBase< LArBadChannel::LArBadChannelEnum >::m_nameMap
protectedinherited

Definition at line 58 of file LArBadChanBitPackingBase.h.

◆ m_nameVec

std::vector<std::string> TLArBadChanBitPackingBase< LArBadChannel::LArBadChannelEnum >::m_nameVec
protectedinherited

Definition at line 57 of file LArBadChanBitPackingBase.h.


The documentation for this class was generated from the following files: