35 return StatusCode::SUCCESS;
45 ATH_MSG_ERROR(
"Could not get background TgcDigitContainer called " << bkgContainer.
name() <<
" from store " << bkgContainer.
store());
46 return StatusCode::FAILURE;
48 ATH_MSG_DEBUG(
"Found background TgcDigitContainer called " << bkgContainer.
name() <<
" in store " << bkgContainer.
store());
50 ATH_MSG_VERBOSE(
"TGC background has digit_size " << bkgContainer->digit_size());
53 if (!signalContainer.
isValid() ) {
54 ATH_MSG_ERROR(
"Could not get signal TgcDigitContainer called " << signalContainer.
name() <<
" from store " << signalContainer.
store());
55 return StatusCode::FAILURE;
57 ATH_MSG_DEBUG(
"Found overlay TgcDigitContainer called " << signalContainer.
name() <<
" in store " << signalContainer.
store());
59 ATH_MSG_VERBOSE(
"TGC signal has digit_size " << signalContainer->digit_size());
62 ATH_CHECK(outputContainer.
record(std::make_unique<TgcDigitContainer>(bkgContainer->size())));
63 if (!outputContainer.
isValid()) {
64 ATH_MSG_ERROR(
"Could not record output TgcDigitContainer called " << outputContainer.
name() <<
" to store " << outputContainer.
store());
65 return StatusCode::FAILURE;
67 ATH_MSG_DEBUG(
"Recorded output TgcDigitContainer called " << outputContainer.
name() <<
" in store " << outputContainer.
store());
76 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 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.
virtual StatusCode execute(const EventContext &ctx) const override final
virtual StatusCode initialize() override final
SG::ReadHandleKey< TgcDigitContainer > m_bkgInputKey
SG::WriteHandleKey< TgcDigitContainer > m_outputKey
TgcOverlay(const std::string &name, ISvcLocator *pSvcLocator)
SG::ReadHandleKey< TgcDigitContainer > m_signalInputKey
std::string debugPrint(const IDC_Container *container, unsigned numprint=25)
Diagnostic output of Identifiable Containers.