24 return StatusCode::SUCCESS;
31 return StatusCode::SUCCESS;
37 if (writeHandle.isValid()) {
38 ATH_MSG_DEBUG(
"CondHandle " << writeHandle.fullKey() <<
" is already valid."
39 <<
". In theory this should not be called, but may happen"
40 <<
" if multiple concurrent events are being processed out of order.");
41 return StatusCode::SUCCESS;
49 if (readCdo==
nullptr) {
51 return StatusCode::FAILURE;
54 writeHandle.addDependency(readHandle);
55 ATH_MSG_INFO(
"Size of CondAttrListCollection " << readHandle.fullKey() <<
" readCdo->size()= " << readCdo->size());
56 ATH_MSG_INFO(
"Range of input is " << readHandle.getRange());
59 std::unique_ptr<SCT_DCSFloatCondData> writeCdo{std::make_unique<SCT_DCSFloatCondData>()};
62 std::string param{
"MOCH_TM0_RECV"};
66 for (; attrList!=
end; ++attrList) {
72 writeCdo->setValue(channelNumber,
val);
74 ATH_MSG_WARNING(param <<
" does not exist for ChanNum " << channelNumber);
79 if (writeHandle.record(std::move(writeCdo)).isFailure()) {
80 ATH_MSG_FATAL(
"Could not record SCT_DCSFloatCondData " << writeHandle.key()
81 <<
" with EventRange " << writeHandle.getRange()
82 <<
" into Conditions Store");
83 return StatusCode::FAILURE;
85 ATH_MSG_INFO(
"recorded new CDO " << writeHandle.key() <<
" with range " << writeHandle.getRange() <<
" into Conditions Store");
87 return StatusCode::SUCCESS;
93 return StatusCode::SUCCESS;