|
ATLAS Offline Software
|
Go to the documentation of this file.
31 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 (readCdoTemp0==
nullptr) {
52 return StatusCode::FAILURE;
54 writeHandle.addDependency(readHandleTemp0);
55 ATH_MSG_INFO(
"Input is " << readHandleTemp0.fullKey() <<
" with the range of " << readHandleTemp0.getRange());
61 if (readCdoState==
nullptr) {
63 return StatusCode::FAILURE;
65 writeHandle.addDependency(readHandleState);
66 ATH_MSG_INFO(
"Input is " << readHandleState.fullKey() <<
" with the range of " << readHandleState.getRange());
70 std::unique_ptr<SCT_DCSFloatCondData> writeCdo{std::make_unique<SCT_DCSFloatCondData>()};
77 if (writeHandle.record(std::move(writeCdo)).isFailure()) {
78 ATH_MSG_FATAL(
"Could not record SCT_DCSFloatCondData " << writeHandle.key()
79 <<
" with EventRange " << writeHandle.getRange()
80 <<
" into Conditions Store");
81 return StatusCode::FAILURE;
83 ATH_MSG_INFO(
"recorded new CDO " << writeHandle.key() <<
" with range " << writeHandle.getRange() <<
" into Conditions Store");
85 return StatusCode::SUCCESS;
91 return StatusCode::SUCCESS;
def retrieve(aClass, aKey=None)
Class for data object used in SCT_DCSConditions{HV,Temp}CondAlg, SCT_DCSConditionsTool,...
This is an Identifier helper class for the SCT subdetector. This class is a factory for creating comp...
SG::ReadCondHandleKey< SCT_DCSFloatCondData > m_readKeyTemp0
virtual StatusCode finalize() override final
SG::WriteCondHandleKey< SCT_DCSFloatCondData > m_writeKey
Classs for data object used in SCT_DCSConditionsStatCondAlg, SCT_DCSConditionsTool,...
const ServiceHandle< StoreGateSvc > & detStore() const
The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc.
const SCT_ID * m_pHelper
ID helper for SCT.
An algorithm that can be simultaneously executed in multiple threads.
SCT_SiliconTempCondAlg(const std::string &name, ISvcLocator *pSvcLocator)
::StatusCode StatusCode
StatusCode definition for legacy code.
Identifier::size_type size_type
ToolHandle< ISCT_DCSConditionsTool > m_sctDCSTool
size_type wafer_hash_max(void) const
StatusCode initialize(bool used=true)
SG::ReadCondHandleKey< SCT_DCSStatCondData > m_readKeyState
BooleanProperty m_useState
This is a "hash" representation of an Identifier. This encodes a 32 bit index which can be used to lo...
virtual StatusCode execute(const EventContext &ctx) const override final
virtual StatusCode initialize() override final