24 return StatusCode::SUCCESS;
35 if (writeHandle.isValid()) {
37 ATH_MSG_DEBUG(
"CondHandle " << writeHandle.fullKey() <<
" is already valid."
38 <<
". In theory this should not be called, but may happen"
39 <<
" if multiple concurrent events are being processed out of order.");
40 return StatusCode::SUCCESS;
46 if (readCdo==
nullptr) {
48 return StatusCode::FAILURE;
50 ATH_MSG_INFO(
"Size of CondAttrListCollection readCdo->size()= " << readCdo->size());
53 writeHandle.addDependency(readHandle);
56 std::unique_ptr<SCT_SensorsCondData> writeCdo{std::make_unique<SCT_SensorsCondData>()};
62 for (; attrList!=
end; ++attrList) {
66 isOK |=
data.setTruncatedSerialNumber(truncatedSerialNumber);
67 isOK |=
data.setManufacturer(attrList->second[0].data<std::string>());
77 ATH_MSG_WARNING(
"At least one element of SCT_SensorCondData for truncatedSerialNumber " << truncatedSerialNumber <<
" was not correctly stored.");
79 (*writeCdo)[truncatedSerialNumber] =
data;
83 if (writeHandle.record(std::move(writeCdo)).isFailure()) {
84 ATH_MSG_FATAL(
"Could not record SCT_SensorsCondData " << writeHandle.key()
85 <<
" with EventRange " << writeHandle.getRange()
86 <<
" into Conditions Store");
87 return StatusCode::FAILURE;
89 ATH_MSG_INFO(
"recorded new CDO " << writeHandle.key() <<
" with range " << writeHandle.getRange() <<
" into Conditions Store");
91 return StatusCode::SUCCESS;
97 return StatusCode::SUCCESS;