ATLAS Offline Software
|
Typedefs | |
typedef std::pair< HWIdentifier, LArBadChannel > | BadChanEntry |
typedef std::pair< HWIdentifier, LArBadFeb > | BadFebEntry |
typedef std::vector< BadChanEntry > | BadChanVec |
typedef std::vector< BadFebEntry > | BadFebVec |
typedef Identifier32::value_type | Channel |
Enumerations | |
enum | Endianness { LittleEndian, BigEndian } |
Functions | |
int | machineEndianness () |
template<class T > | |
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, LArBadChannel> into the blob. More... | |
void | fillFebBlobV1 (const std::vector< HWIdentifier > &vec, coral::Blob &blob) |
template<class T > | |
std::vector< std::pair< HWIdentifier, T > > | decodeBlob (const coral::Blob *blobp, std::size_t chanSize, std::size_t stateSize, int endian, int version, MsgStream &log) |
Checks BLOB for differences in endian-ness and size of data types with respect to the architecture on which the code is executed and if the checks paass decodes the BLOB data into a vector of pair<HWIdentifier, LArBadChannel>. More... | |
std::vector< HWIdentifier > | decodeFebBlobV1 (const coral::Blob *blobp, std::size_t chanSize, int endian, int version, MsgStream &log) |
bool | checkBlob (const coral::Blob *blobp, std::size_t chanSize, std::size_t stateSizeInBlob, int endian, int, std::size_t step, std::size_t currentStateSize, MsgStream &log) |
typedef std::pair<HWIdentifier, LArBadChannel> LArBadChanBlobUtils::BadChanEntry |
Definition at line 20 of file LArBadChanBlobUtils.h.
typedef std::vector<BadChanEntry> LArBadChanBlobUtils::BadChanVec |
Definition at line 22 of file LArBadChanBlobUtils.h.
typedef std::pair<HWIdentifier, LArBadFeb> LArBadChanBlobUtils::BadFebEntry |
Definition at line 21 of file LArBadChanBlobUtils.h.
typedef std::vector<BadFebEntry> LArBadChanBlobUtils::BadFebVec |
Definition at line 23 of file LArBadChanBlobUtils.h.
Definition at line 24 of file LArBadChanBlobUtils.h.
bool LArBadChanBlobUtils::checkBlob | ( | const coral::Blob * | blobp, |
std::size_t | chanSize, | ||
std::size_t | stateSizeInBlob, | ||
int | endian, | ||
int | , | ||
std::size_t | step, | ||
std::size_t | currentStateSize, | ||
MsgStream & | log | ||
) |
Definition at line 30 of file LArBadChanBlobUtils.cxx.
std::vector<std::pair<HWIdentifier,T> > LArBadChanBlobUtils::decodeBlob | ( | const coral::Blob * | blobp, |
std::size_t | chanSize, | ||
std::size_t | stateSize, | ||
int | endian, | ||
int | version, | ||
MsgStream & | log | ||
) |
Checks BLOB for differences in endian-ness and size of data types with respect to the architecture on which the code is executed and if the checks paass decodes the BLOB data into a vector of pair<HWIdentifier, LArBadChannel>.
If the checks fail returns an empty vector, and writes diagnostics on the MsgStream passed as an argument. The arguments chanSize, stateSize and endian must come from the database that provides the BLOB, and must be filled by the machine that created the BLOB.
std::vector< HWIdentifier > LArBadChanBlobUtils::decodeFebBlobV1 | ( | const coral::Blob * | blobp, |
std::size_t | chanSize, | ||
int | endian, | ||
int | version, | ||
MsgStream & | log | ||
) |
Definition at line 72 of file LArBadChanBlobUtils.cxx.
void LArBadChanBlobUtils::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, LArBadChannel> into the blob.
Returns a pointer to the new blob, which has to be managed (and eventually released) by the caller
void LArBadChanBlobUtils::fillFebBlobV1 | ( | const std::vector< HWIdentifier > & | vec, |
coral::Blob & | blob | ||
) |
Definition at line 17 of file LArBadChanBlobUtils.cxx.
int LArBadChanBlobUtils::machineEndianness | ( | ) |
Definition at line 9 of file LArBadChanBlobUtils.cxx.