26 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;
47 if (readCdo==
nullptr) {
49 return StatusCode::FAILURE;
51 ATH_MSG_INFO(
"Size of CondAttrListCollection readCdo->size()= " << readCdo->size());
54 writeHandle.addDependency(readHandle);
59 std::unique_ptr<SCT_MajorityCondData> writeCdo{std::make_unique<SCT_MajorityCondData>()};
63 for (;majItr != majEnd; ++majItr) {
73 bool majorityState{
true};
77 ATH_MSG_DEBUG(
"Majority state for " << channelNumber <<
" = " <<
82 writeCdo->setMajorityState(channelNumber, majorityState);
87 ATH_MSG_DEBUG(
"Majority HV fraction for " << channelNumber <<
" = " <<
92 writeCdo->setHVFraction(channelNumber, hvFraction);
104 if (writeHandle.record(std::move(writeCdo)).isFailure()) {
105 ATH_MSG_FATAL(
"Could not record SCT_MajorityCondData " << writeHandle.key()
106 <<
" with EventRange " << writeHandle.getRange()
107 <<
" into Conditions Store");
108 return StatusCode::FAILURE;
110 ATH_MSG_INFO(
"recorded new CDO " << writeHandle.key() <<
" with range " << writeHandle.getRange() <<
" into Conditions Store");
112 return StatusCode::SUCCESS;
118 return StatusCode::SUCCESS;