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

#include <LArBadChanBitPacking.h>

Inheritance diagram for LArBadChanSCBitPacking:
Collaboration diagram for LArBadChanSCBitPacking:

Public Types

typedef std::vector< LArBadChannel::PosTypePosContainer

Public Member Functions

 LArBadChanSCBitPacking ()
const std::string & stringName (typename LArBadChannel::LArBadChannelSCEnum::ProblemType pb) const
std::pair< bool, typename LArBadChannel::LArBadChannelSCEnum::ProblemTypeenumName (const std::string &str) const
LArBadChannel::PosType bitPosition (typename LArBadChannel::LArBadChannelSCEnum::ProblemType pb) const
LArBadChannel::PosType wordSize () const
void setBit (typename LArBadChannel::LArBadChannelSCEnum::ProblemType pb, LArBadChannel::BitWord &word, bool value=true) const
void setBit (typename LArBadChannel::LArBadChannelSCEnum::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::LArBadChannelSCEnum::ProblemType pb, const std::string &name, GainDependence gaindep)
int index (typename LArBadChannel::LArBadChannelSCEnum::ProblemType pb) const
void initMasks ()

Protected Attributes

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

Detailed Description

Definition at line 20 of file LArBadChanBitPacking.h.

Member Typedef Documentation

◆ PosContainer

Definition at line 17 of file LArBadChanBitPackingBase.h.

Member Enumeration Documentation

◆ GainDependence

Constructor & Destructor Documentation

◆ LArBadChanSCBitPacking()

LArBadChanSCBitPacking::LArBadChanSCBitPacking ( )

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

Definition at line 48 of file LArBadChanBitPacking.cxx.

49{
50 // Here, specify each problem and its gain dependence.
72 for (unsigned int i=0; i<m_enumVec.size(); i++) {
73 m_nameMap[m_nameVec[i]] = m_enumVec[i].first;
76 m_bitPos[m_enumVec[i].first] = m_enumVec[i].first;
77
78 m_index[m_enumVec[i].first] = i;
79 }
80
81 initMasks(); // initialize the gain masks
82}
TLArBadChanBitPackingBase< LArBadChannel::LArBadChannelSCEnum > LArBadChanSCBitPackingBase
std::vector< std::pair< typename LArBadChannel::LArBadChannelSCEnum::ProblemType, GainDependence > > m_enumVec
void addBit(typename LArBadChannel::LArBadChannelSCEnum::ProblemType pb, const std::string &name, GainDependence gaindep)
std::map< std::string, typename LArBadChannel::LArBadChannelSCEnum::ProblemType > m_nameMap

Member Function Documentation

◆ addBit()

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

◆ bitPosition()

◆ enumName()

std::pair< bool, typename LArBadChannel::LArBadChannelSCEnum::ProblemType > TLArBadChanBitPackingBase< LArBadChannel::LArBadChannelSCEnum >::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::LArBadChannelSCEnum >::initMasks ( )
protectedinherited

◆ lowGainMask()

◆ mediumGainMask()

◆ numberOfProblemTypes()

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

Definition at line 46 of file LArBadChanBitPackingBase.h.

46{ return m_nameVec.size();}

◆ setBit() [1/4]

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

◆ setBit() [2/4]

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

◆ setBit() [3/4]

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

◆ setBit() [4/4]

◆ stringName()

◆ stringStatus()

std::string TLArBadChanBitPackingBase< LArBadChannel::LArBadChannelSCEnum >::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

◆ m_index

std::vector<int> TLArBadChanBitPackingBase< LArBadChannel::LArBadChannelSCEnum >::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

Definition at line 58 of file LArBadChanBitPackingBase.h.

◆ m_nameVec

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

Definition at line 57 of file LArBadChanBitPackingBase.h.


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