|
ATLAS Offline Software
|
|
MsgStream | getDefaultMsgStream () |
| used to get default msg stream More...
|
|
coral::AttributeListSpecification * | createCoolSpec () |
| creates the AttributeListSpecification for the LArBadChannel DB More...
|
|
template<class Entry > |
AthenaAttributeList * | createPayload (const std::vector< Entry > &data, const coral::AttributeListSpecification &spec) |
|
CondAttrListCollection * | createCoolCollection (const LArBadChannelState &bcState) |
|
AthenaAttributeList * | createChanPayload (const BadChanVec &data, const coral::AttributeListSpecification &spec) |
|
AthenaAttributeList * | createFebPayload (const BadFebVec &data) |
|
AthenaAttributeList * | createFebPayloadV1 (const std::vector< HWIdentifier32 > &data) |
|
CondAttrListCollection * | createEmptyCoolCollection () |
| Create an empty collection with no bad channels, e.g. for MC. More...
|
|
unsigned int | badChanVersion () |
| Version of the BLOB encoding, to be incremented each time the BLOB format changes. More...
|
|
unsigned int | badFebVersion () |
|
void | fillControlInfo (AthenaAttributeList *attrList, unsigned int wordSize, unsigned int vers) |
|
template<class T > |
AthenaAttributeList * | createPayload (const std::vector< std::pair< HWIdentifier, T > > &data, const coral::AttributeListSpecification &spec, unsigned int vers) |
|
std::vector< BadChanEntry > | readBadChan (const coral::AttributeList &attrList, MsgStream &log) |
|
std::vector< BadFebEntry > | readBadFeb (const coral::AttributeList &attrList, MsgStream &log) |
|
AthenaAttributeList * | createFebPayloadV1 (const std::vector< HWIdentifier > &data) |
|
◆ BadChanEntry
◆ BadChanVec
◆ BadFebEntry
◆ BadFebVec
◆ Channel
◆ badChanVersion()
unsigned int LArBadChannelDBTools::badChanVersion |
( |
| ) |
|
|
inline |
Version of the BLOB encoding, to be incremented each time the BLOB format changes.
Definition at line 57 of file LArBadChannelDBTools.h.
◆ badFebVersion()
unsigned int LArBadChannelDBTools::badFebVersion |
( |
| ) |
|
|
inline |
◆ createChanPayload()
◆ createCoolCollection()
◆ createCoolSpec()
coral::AttributeListSpecification * LArBadChannelDBTools::createCoolSpec |
( |
| ) |
|
creates the AttributeListSpecification for the LArBadChannel DB
Definition at line 35 of file LArBadChannelDBTools.cxx.
37 coral::AttributeListSpecification*
spec =
new coral::AttributeListSpecification();
38 if (
spec ==
nullptr) {
41 spec->extend(
"ChannelSize",
"unsigned int");
42 spec->extend(
"StatusWordSize",
"unsigned int");
43 spec->extend(
"Endianness",
"unsigned int");
44 spec->extend(
"Version",
"unsigned int");
45 spec->extend(
"Blob",
"blob");
◆ createEmptyCoolCollection()
◆ createFebPayload()
◆ createFebPayloadV1() [1/2]
◆ createFebPayloadV1() [2/2]
◆ createPayload() [1/2]
◆ createPayload() [2/2]
◆ fillControlInfo()
void LArBadChannelDBTools::fillControlInfo |
( |
AthenaAttributeList * |
attrList, |
|
|
unsigned int |
wordSize, |
|
|
unsigned int |
vers |
|
) |
| |
Definition at line 50 of file LArBadChannelDBTools.cxx.
52 (*attrList)[
"ChannelSize"].setValue( (
unsigned int)
sizeof(
Channel));
53 (*attrList)[
"StatusWordSize"].setValue( wordSize);
55 (*attrList)[
"Version"].setValue( vers);
◆ getDefaultMsgStream()
MsgStream LArBadChannelDBTools::getDefaultMsgStream |
( |
| ) |
|
◆ readBadChan()
std::vector< BadChanEntry > LArBadChannelDBTools::readBadChan |
( |
const coral::AttributeList & |
attrList, |
|
|
MsgStream & |
log |
|
) |
| |
Definition at line 119 of file LArBadChannelDBTools.cxx.
122 unsigned int chanSize = attrList[
"ChannelSize"].data<
unsigned int>();
123 unsigned int stateSize = attrList[
"StatusWordSize"].data<
unsigned int>();
124 unsigned int endian = attrList[
"Endianness"].data<
unsigned int>();
125 unsigned int version = attrList[
"Version"].data<
unsigned int>();
128 LArBadChanBlobUtils::decodeBlob<LArBadChannel>( &
blob, chanSize, stateSize, endian,
◆ readBadFeb()
std::vector< BadFebEntry > LArBadChannelDBTools::readBadFeb |
( |
const coral::AttributeList & |
attrList, |
|
|
MsgStream & |
log |
|
) |
| |
Definition at line 133 of file LArBadChannelDBTools.cxx.
136 unsigned int chanSize = attrList[
"ChannelSize"].data<
unsigned int>();
137 unsigned int stateSize = attrList[
"StatusWordSize"].data<
unsigned int>();
138 unsigned int endian = attrList[
"Endianness"].data<
unsigned int>();
139 unsigned int version = attrList[
"Version"].data<
unsigned int>();
144 std::vector<HWIdentifier>
idvec =
146 std::vector<BadFebEntry>
result;
157 return LArBadChanBlobUtils::decodeBlob<LArBadFeb>( &
blob, chanSize, stateSize,
char data[hepevt_bytes_allocation_ATLAS]
Identifier32::value_type Channel
std::vector< HWIdentifier > decodeFebBlobV1(const coral::Blob *blobp, std::size_t chanSize, int endian, int version, MsgStream &log)
void fillBlob(const std::vector< std::pair< HWIdentifier, T > > &vec, coral::Blob &blob)
Creates a BLOB of the right size and copies the content of the vector of pair<HWIdentifier,...
This class is a collection of AttributeLists where each one is associated with a channel number....
IMessageSvc * getMessageSvc(bool quiet=false)
std::pair< HWIdentifier, LArBadFeb > BadFebEntry
void fillFebBlobV1(const std::vector< HWIdentifier > &vec, coral::Blob &blob)
An AttributeList represents a logical row of attributes in a metadata table. The name and type of eac...
void setBit(ProblemType pb, BitWord &word, bool value=true) const
const CoolChannelData & coolChannel(CoolChannelEnum chan) const
DataVector< Identifier > idvec
const BadChanVec & stateVector() const
bool add(ChanNum chanNum, const AttributeList &attributeList)
Adding in chan/attrList pairs.
size_type size() const noexcept
Returns the number of elements in the collection.