|
ATLAS Offline Software
|
Go to the documentation of this file.
9 #include "CoralBase/Blob.h"
14 ISvcLocator* pSvcLocator ) :
31 return StatusCode::SUCCESS;
37 return StatusCode::SUCCESS;
45 coral::AttributeListSpecification* spec_febrod =
new coral::AttributeListSpecification();
46 spec_febrod->extend(
"FebHashToRODs",
"blob");
47 spec_febrod->extend<
unsigned>(
"version");
49 (*al_febrod)[
"version"].setValue(0U);
51 blobFebRod.resize(onlHashMax*
sizeof(
uint32_t));
54 spec_febrod->release();
56 spec_febrod =
nullptr;
60 std::ofstream
outfile(
"febrod.txt");
63 return StatusCode::FAILURE;
66 outfile <<
"hash id rodid" << std::endl;
72 return StatusCode::FAILURE;
75 for (
uint32_t onlHash=0;onlHash<onlHashMax;++onlHash) {
77 #ifdef LARREADOUTMODULEID_H //Old version
79 #else //New version, LArReadoutModuleID replaced my HWIdentifier
80 const uint32_t rodid=
cabling->getReadoutModuleID(hwid).get_identifier32().get_compact();
82 pBlobFebRod[
index++]=rodid;
83 outfile << onlHash <<
" 0x" << std:: hex << hwid.
get_compact() <<
" 0x"<< rodid << std::dec << std::endl;
92 return StatusCode::SUCCESS;
def retrieve(aClass, aKey=None)
const LArOnlineID * m_onlineID
LArFebRodMapConvert()
Default constructor:
virtual StatusCode initialize() override
value_type get_compact() const
Get the compact id.
const std::string & key() const
Return the StoreGate ID for the referenced object.
virtual StatusCode execute() override
const ServiceHandle< StoreGateSvc > & detStore() const
The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc.
virtual StatusCode finalize() override
::StatusCode StatusCode
StatusCode definition for legacy code.
An AttributeList represents a logical row of attributes in a metadata table. The name and type of eac...
HWIdentifier feb_Id(int barrel_ec, int pos_neg, int feedthrough, int slot) const
Create feb_Id from fields.
StatusCode initialize(bool used=true)
virtual ~LArFebRodMapConvert()
Destructor:
SG::ReadCondHandleKey< LArFebRodMapping > m_cablingKey