Loading [MathJax]/extensions/tex2jax.js
 |
ATLAS Offline Software
|
Go to the documentation of this file.
8 #include "CoolKernel/types.h"
9 #include "CoolKernel/Record.h"
10 #include "CoralBase/AttributeListSpecification.h"
18 #include "GaudiKernel/MsgStream.h"
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");
52 (*attrList)[
"ChannelSize"].setValue( (
unsigned int)
sizeof(
Channel));
53 (*attrList)[
"StatusWordSize"].setValue( wordSize);
55 (*attrList)[
"Version"].setValue( vers);
60 const coral::AttributeListSpecification&
spec)
107 for (
int i=0;
i<2;
i++) {
118 std::vector<BadChanEntry>
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,
132 std::vector<BadFebEntry>
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]
This file defines the class for a collection of AttributeLists where each one is associated with a ch...
singleton-like access to IMessageSvc via open function and helper
Identifier32::value_type Channel
std::vector< BadChanEntry > BadChanVec
std::vector< HWIdentifier > decodeFebBlobV1(const coral::Blob *blobp, std::size_t chanSize, int endian, int version, MsgStream &log)
This class is a collection of AttributeLists where each one is associated with a channel number....
std::vector< BadFebEntry > BadFebVec
IMessageSvc * getMessageSvc(bool quiet=false)
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.