|
ATLAS Offline Software
|
Go to the documentation of this file.
29 return StatusCode::SUCCESS;
40 if (writeHandle.isValid()) {
41 ATH_MSG_DEBUG(
"CondHandle " << writeHandle.fullKey() <<
" is already valid."
42 <<
". In theory this should not be called, but may happen"
43 <<
" if multiple concurrent events are being processed out of order.");
44 return StatusCode::SUCCESS;
50 if (readCdo==
nullptr) {
52 return StatusCode::FAILURE;
56 writeHandle.addDependency(readHandle);
59 std::unique_ptr<InDet::SiElementPropertiesTable> writeCdo{std::make_unique<InDet::SiElementPropertiesTable>(*
m_idHelper, *readCdo,
m_epsWidth)};
64 if (writeHandle.record(std::move(writeCdo)).isFailure()) {
66 <<
" with EventRange " << writeHandle.getRange()
67 <<
" into Conditions Store");
68 return StatusCode::FAILURE;
70 ATH_MSG_DEBUG(
"recorded new CDO " << writeHandle.key() <<
" with range " << writeHandle.getRange() <<
" into ConditionStore");
72 return StatusCode::SUCCESS;
77 return StatusCode::SUCCESS;
def retrieve(aClass, aKey=None)
SG::WriteCondHandleKey< InDet::SiElementPropertiesTable > m_writeKey
const SCT_ID * m_idHelper
This is an Identifier helper class for the SCT subdetector. This class is a factory for creating comp...
virtual StatusCode initialize() override final
const std::string & key() const
Return the StoreGate ID for the referenced object.
const ServiceHandle< StoreGateSvc > & detStore() const
The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc.
An algorithm that can be simultaneously executed in multiple threads.
::StatusCode StatusCode
StatusCode definition for legacy code.
SiElementPropertiesTableCondAlg(const std::string &name, ISvcLocator *pSvcLocator)
StatusCode initialize(bool used=true)
virtual StatusCode finalize() override final
SG::ReadCondHandleKey< InDetDD::SiDetectorElementCollection > m_readKey
virtual StatusCode execute(const EventContext &ctx) const override final