17 ATH_MSG_ERROR(
"CaloCalibrationHitContainer collection name should not be empty");
18 return StatusCode::FAILURE;
27 return StatusCode::SUCCESS;
38 if (!signalContainer.
isValid()) {
39 ATH_MSG_ERROR(
"Could not get signal TrackRecordCollection container " << signalContainer.
name() <<
" from store " << signalContainer.
store());
40 return StatusCode::FAILURE;
42 ATH_MSG_DEBUG(
"Found signal TrackRecordCollection container " << signalContainer.
name() <<
" in store " << signalContainer.
store());
47 if (!outputContainer.
isValid()) {
48 ATH_MSG_ERROR(
"Could not record output TrackRecordCollection container " << outputContainer.
name() <<
" to store " << outputContainer.
store());
49 return StatusCode::FAILURE;
51 ATH_MSG_DEBUG(
"Recorded output TrackRecordCollection container " << outputContainer.
name() <<
" in store " << outputContainer.
store());
54 for (
const TrackRecord &record : *signalContainer) {
59 return StatusCode::SUCCESS;
#define ATH_CHECK
Evaluate an expression and check for errors.
#define ATH_MSG_VERBOSE(x)
An algorithm that can be simultaneously executed in multiple threads.
SG::ReadHandleKey< TrackRecordCollection > m_signalInputKey
virtual StatusCode initialize() override
Gaudi::Property< std::string > m_collectionName
SG::WriteHandleKey< TrackRecordCollection > m_outputKey
CopyTrackRecordCollection(const std::string &name, ISvcLocator *pSvcLocator)
virtual StatusCode execute(const EventContext &ctx) const override
virtual bool isValid() override final
Can the handle be successfully dereferenced?
std::string store() const
Return the name of the store holding the object we are proxying.
const std::string & name() const
Return the StoreGate ID for the referenced object.
StatusCode record(std::unique_ptr< T > data)
Record a const object to the store.
virtual bool isValid() override final
Can the handle be successfully dereferenced?