8 , ISvcLocator* pSvcLocator )
21 return StatusCode::SUCCESS;
33 if(writeHandle.isValid()) {
34 ATH_MSG_DEBUG(
"CondHandle " << writeHandle.fullKey() <<
" is already valid."
35 <<
". In theory this should not be called, but may happen"
36 <<
" if multiple concurrent events are being processed out of order.");
38 return StatusCode::SUCCESS;
44 std::unique_ptr<HTcalculator> writeCdo{std::make_unique<HTcalculator>()};
50 if(channel_values==
nullptr) {
51 ATH_MSG_ERROR(
" Problem reading TRT/Calib/PID_vector cond object");
52 return StatusCode::FAILURE;
54 if(StatusCode::SUCCESS != writeCdo->ReadVectorDB( channel_values )) {
56 return StatusCode::FAILURE;
63 if(!readHandle.range(rangeW)) {
64 ATH_MSG_ERROR(
"Failed to retrieve validity range for " << readHandle.key());
65 return StatusCode::FAILURE;
69 if(writeHandle.record(rangeW,std::move(writeCdo)).isFailure()) {
70 ATH_MSG_ERROR(
"Could not record HTCalculator " << writeHandle.key()
71 <<
" with EventRange " << rangeW
72 <<
" into Conditions Store");
73 return StatusCode::FAILURE;
77 return StatusCode::SUCCESS;
83 return StatusCode::SUCCESS;