|
ATLAS Offline Software
|
Go to the documentation of this file.
28 return StatusCode::SUCCESS;
39 if (writeHandle.isValid()) {
40 ATH_MSG_DEBUG(
"CondHandle " << writeHandle.fullKey() <<
" is already valid."
41 <<
". In theory this should not be called, but may happen"
42 <<
" if multiple concurrent events are being processed out of order.");
43 return StatusCode::SUCCESS;
49 if (readCdo==
nullptr) {
51 return StatusCode::FAILURE;
53 ATH_MSG_INFO(
"Size of CondAttrListCollection readCdo->size()= " << readCdo->size());
56 writeHandle.addDependency(readHandle);
59 std::unique_ptr<SCT_MonitorCondData> writeCdo{std::make_unique<SCT_MonitorCondData>()};
62 static const unsigned int defectListIndex{7};
65 for (; iter!=last; ++iter) {
67 if (
list.size()>defectListIndex) {
70 writeCdo->insert(moduleHash,
list[defectListIndex].data<std::string>());
75 if (writeHandle.record(std::move(writeCdo)).isFailure()) {
76 ATH_MSG_FATAL(
"Could not record SCT_MonitorCondData " << writeHandle.key()
77 <<
" with EventRange " << writeHandle.getRange()
78 <<
" into Conditions Store");
79 return StatusCode::FAILURE;
81 ATH_MSG_INFO(
"recorded new CDO " << writeHandle.key() <<
" with range " << writeHandle.getRange() <<
" into Conditions Store");
83 return StatusCode::SUCCESS;
89 return StatusCode::SUCCESS;
def retrieve(aClass, aKey=None)
This is an Identifier helper class for the SCT subdetector. This class is a factory for creating comp...
SCT_MonitorCondAlg(const std::string &name, ISvcLocator *pSvcLocator)
virtual StatusCode execute(const EventContext &ctx) const override final
This class is a collection of AttributeLists where each one is associated with a channel number....
Identifier module_id(int barrel_ec, int layer_disk, int phi_module, int eta_module) const
For a single crystal.
const ServiceHandle< StoreGateSvc > & detStore() const
The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc.
virtual StatusCode initialize() override final
An algorithm that can be simultaneously executed in multiple threads.
::StatusCode StatusCode
StatusCode definition for legacy code.
virtual StatusCode finalize() override final
IdentifierHash wafer_hash(const Identifier &wafer_id) const
wafer hash from id - optimized
SG::WriteCondHandleKey< SCT_MonitorCondData > m_writeKey
StatusCode initialize(bool used=true)
ChanAttrListMap::const_iterator const_iterator
SG::ReadCondHandleKey< CondAttrListCollection > m_readKey
This is a "hash" representation of an Identifier. This encodes a 32 bit index which can be used to lo...