|
ATLAS Offline Software
|
Go to the documentation of this file.
5 #ifndef LArBadChannelState_H
6 #define LArBadChannelState_H
68 BadChanVec::const_iterator
begin()
const {
75 BadChanVec::const_iterator
end()
const {
82 BadChanVec::size_type
size()
const {
108 if (!
cd.empty())
return false;
142 1 -
static_cast<unsigned int>(
side));
155 return (
static_cast<int>(
chan)+1) % 2;
JetConstituentVector::iterator iterator
CoolChannelData::BadChanVec BadChanVec
CoolChannelData(CoolChannelEnum cc)
Construct an empty CoolChannelData.
static CaloPartEnum caloPart(CoolChannelEnum chan)
static int barrelEndcap(CoolChannelEnum chan)
void resolveDuplicateEntries()
static int posNeg(CoolChannelEnum chan)
BadChanVec::iterator begin()
void add(const BadChanEntry &entry, CoolChannelEnum chan)
Add a bad channel entry to a specified cool channel data.
BadChanVec::size_type size() const
std::vector< CoolChannelData > m_DataVec
void addFromDB(const BadChanVec &stateVec)
std::pair< HWIdentifier, LArBadChannel > BadChanEntry
BadChanVec::const_iterator begin() const
void reset()
Reset to an empty state, erasing all data in all cool channels.
static CoolChannelEnum coolChannelEnum(CaloPartEnum part, PosNegEnum side)
std::vector< BadChanEntry > BadChanVec
int nCoolChannels() const
BadChanVec::iterator end()
CoolChannelData(CoolChannelEnum cc, const BadChanVec &entries)
Construct with bad channel data.
static void mergeFlags(BadChanEntry &a, const BadChanEntry &b)
CoolChannelEnum number() const
CoolChannelData & coolChannel(int i)
const CoolChannelData & coolChannel(CoolChannelEnum chan) const
void addUpdate(const BadChanVec &stateVec)
static std::string coolChannelName(CoolChannelEnum chan)
void setFromDB(const BadChanVec &stateVec, CoolChannelEnum chan)
Set cool channel from vector<BadChanEntry>, for example when reading from DB.
const BadChanVec & stateVector() const
void addFromDB(const BadChanVec &stateVec, CoolChannelEnum chan)
Add a complete cool channel from DB, with duplicate removal.
bool empty() const
Returns true if all cool channels are empty.
void setFromDB(const BadChanVec &stateVec)
void add(const BadChanEntry &e)
the entry is assumed to belong to the cool channel and is not checked.
void addUpdate(const BadChanVec &stateVec, CoolChannelEnum chan)
Add updates, e.g.
BadChanVec::const_iterator end() const