35 return StatusCode::SUCCESS;
46 ATH_MSG_ERROR(
"Could not get background RPC container " << bkgContainer.
name() <<
" from store " << bkgContainer.
store());
47 return StatusCode::FAILURE;
49 ATH_MSG_DEBUG(
"Found background RpcDigitContainer called " << bkgContainer.
name() <<
" in store " << bkgContainer.
store());
51 ATH_MSG_VERBOSE(
"RPC background has digit_size " << bkgContainer->digit_size());
54 if (!signalContainer.
isValid() ) {
55 ATH_MSG_ERROR(
"Could not get signal RPC container " << signalContainer.
name() <<
" from store " << signalContainer.
store());
56 return StatusCode::FAILURE;
58 ATH_MSG_DEBUG(
"Found signal RpcDigitContainer called " << signalContainer.
name() <<
" in store " << signalContainer.
store());
60 ATH_MSG_VERBOSE(
"RPC signal has digit_size " << signalContainer->digit_size());
63 ATH_CHECK(outputContainer.
record(std::make_unique<RpcDigitContainer>(bkgContainer->size())));
64 if (!outputContainer.
isValid()) {
65 ATH_MSG_ERROR(
"Could not record output RpcDigitContainer called " << outputContainer.
name() <<
" to store " << outputContainer.
store());
66 return StatusCode::FAILURE;
68 ATH_MSG_DEBUG(
"Recorded output RpcDigitContainer called " << outputContainer.
name() <<
" in store " << outputContainer.
store());
77 return StatusCode::SUCCESS;
#define ATH_CHECK
Evaluate an expression and check for errors.
#define ATH_MSG_VERBOSE(x)
Handle class for reading from StoreGate.
Handle class for recording to StoreGate.
StatusCode overlayMultiHitContainer(const IDC_Container *bkgContainer, const IDC_Container *signalContainer, IDC_Container *outputContainer) const
IDC_MuonOverlayBase(const std::string &name, ISvcLocator *pSvcLocator)
virtual StatusCode initialize() override final
SG::ReadHandleKey< RpcDigitContainer > m_bkgInputKey
RpcOverlay(const std::string &name, ISvcLocator *pSvcLocator)
virtual StatusCode execute(const EventContext &ctx) const override final
SG::WriteHandleKey< RpcDigitContainer > m_outputKey
SG::ReadHandleKey< RpcDigitContainer > m_signalInputKey
virtual bool isValid() override final
Can the handle be successfully dereferenced?
const_pointer_type cptr()
Dereference the pointer.
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.
const_pointer_type cptr() const
Dereference the pointer.
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?
pointer_type ptr()
Dereference the pointer.
std::string debugPrint(const IDC_Container *container, unsigned numprint=25)
Diagnostic output of Identifiable Containers.