22 return StatusCode::SUCCESS;
31 if (writeHandle.isValid()) {
32 ATH_MSG_DEBUG(
"CondHandle " << writeHandle.fullKey() <<
" is already valid."
33 <<
". In theory this should not be called, but may happen"
34 <<
" if multiple concurrent events are being processed out of order.");
35 return StatusCode::SUCCESS;
41 if (readCdo==
nullptr) {
43 return StatusCode::FAILURE;
46 writeHandle.addDependency(readHandle);
47 ATH_MSG_INFO(
"Size of CondAttrListCollection " << readHandle.fullKey() <<
" readCdo->size()= " << readCdo->size());
48 ATH_MSG_INFO(
"Range of input is " << readHandle.getRange());
51 std::unique_ptr<SCT_ModuleVetoCondData> writeCdo{std::make_unique<SCT_ModuleVetoCondData>()};
56 for (;linkItr != linkEnd; ++linkItr) {
60 bool lastProbedState{
payload[0].data<
bool>()};
61 if (not lastProbedState) writeCdo->setBadWaferId(waferId);
62 ATH_MSG_INFO(
"LINK " << waferId <<
" (" << waferId.get_identifier32().get_compact() <<
" in 32 bit): " << lastProbedState);
64 if (writeCdo->size()>0) writeCdo->setFilled();
67 if (writeHandle.record(std::move(writeCdo)).isFailure()) {
68 ATH_MSG_FATAL(
"Could not record SCT_ModuleVetoCondData " << writeHandle.key()
69 <<
" with EventRange " << writeHandle.getRange()
70 <<
" into Conditions Store");
71 return StatusCode::FAILURE;
73 ATH_MSG_INFO(
"recorded new CDO " << writeHandle.key() <<
" with range " << writeHandle.getRange() <<
" into Conditions Store");
75 return StatusCode::SUCCESS;
80 return StatusCode::SUCCESS;