8 , ISvcLocator* pSvcLocator )
21 return StatusCode::SUCCESS;
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)) {
65 return StatusCode::FAILURE;
69 if(writeHandle.
record(rangeW,std::move(writeCdo)).isFailure()) {
71 <<
" with EventRange " << rangeW
72 <<
" into Conditions Store");
73 return StatusCode::FAILURE;
77 return StatusCode::SUCCESS;
83 return StatusCode::SUCCESS;
#define ATH_CHECK
Evaluate an expression and check for errors.
AthAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor with parameters:
bool range(EventIDRange &r)
const std::string & key() const
const std::string & key() const
StatusCode record(const EventIDRange &range, T *t)
record handle, with explicit range DEPRECATED
const DataObjID & fullKey() const
SG::ReadCondHandleKey< CondAttrListVec > m_ReadKey
SG::WriteCondHandleKey< HTcalculator > m_WriteKey
virtual StatusCode initialize() override
virtual ~TRTHTCondAlg() override
TRTHTCondAlg(const std::string &name, ISvcLocator *pSvcLocator)
virtual StatusCode finalize() override
virtual StatusCode execute() override