|
ATLAS Offline Software
|
Go to the documentation of this file.
19 <<
"Merging of data on the same channel is not explicitly implemented for HGTD_RDORawData" <<
endmsg;
30 for (
const HGTD_RDO *existingDatum : *collection) {
32 auto *datumCopy =
new HGTD_RDO(existingDatum->identify(), existingDatum->getTOA(), existingDatum->getTOT(),
33 existingDatum->getBCID(), existingDatum->getL1ID(), existingDatum->getL1A());
59 return StatusCode::SUCCESS;
73 ATH_MSG_ERROR(
"Could not get background HGTD RDO container " << bkgContainer.
name() <<
" from store " << bkgContainer.
store());
74 return StatusCode::FAILURE;
76 bkgContainerPtr = bkgContainer.
cptr();
78 ATH_MSG_DEBUG(
"Found background HGTD RDO container " << bkgContainer.
name() <<
" in store " << bkgContainer.
store());
83 if (!signalContainer.
isValid()) {
84 ATH_MSG_ERROR(
"Could not get signal HGTD RDO container " << signalContainer.
name() <<
" from store " << signalContainer.
store());
85 return StatusCode::FAILURE;
87 ATH_MSG_DEBUG(
"Found signal HGTD RDO container " << signalContainer.
name() <<
" in store " << signalContainer.
store());
92 ATH_CHECK(outputContainer.
record(std::make_unique<HGTD_RDO_Container>(signalContainer->
size())));
93 if (!outputContainer.
isValid()) {
94 ATH_MSG_ERROR(
"Could not record output HGTD RDO container " << outputContainer.
name() <<
" to store " << outputContainer.
store());
95 return StatusCode::FAILURE;
97 ATH_MSG_DEBUG(
"Recorded output HGTD RDO container " << outputContainer.
name() <<
" in store " << outputContainer.
store());
103 return StatusCode::SUCCESS;
const_pointer_type cptr()
Dereference the pointer.
const std::string & name() const
Return the StoreGate ID for the referenced object.
size_t size() const
Duplicate of fullSize for backwards compatability.
SG::ReadHandleKey< HGTD_RDO_Container > m_signalInputKey
#define ATH_MSG_VERBOSE(x)
const std::string & key() const
Return the StoreGate ID for the referenced object.
bool empty() const
Test if the key is blank.
virtual StatusCode execute(const EventContext &ctx) const override final
void mergeChannelData(HGTD_RDO &, const HGTD_RDO &, const IDC_OverlayBase *algorithm)
std::unique_ptr< HGTD_RDO_Collection > copyCollection(const IdentifierHash &hashId, const HGTD_RDO_Collection *collection)
::StatusCode StatusCode
StatusCode definition for legacy code.
pointer_type ptr()
Dereference the pointer.
std::string store() const
Return the name of the store holding the object we are proxying.
StatusCode overlayContainer(const IDC_Container *bkgContainer, const IDC_Container *signalContainer, IDC_Container *outputContainer) const
HGTD_Overlay(const std::string &name, ISvcLocator *pSvcLocator)
StatusCode initialize(bool used=true)
If this object is used as a property, then this should be called during the initialize phase.
SG::WriteHandleKey< HGTD_RDO_Container > m_outputKey
virtual bool isValid() override final
Can the handle be successfully dereferenced?
virtual StatusCode initialize() override final
virtual bool isValid() override final
Can the handle be successfully dereferenced?
SG::ReadHandleKey< HGTD_RDO_Container > m_bkgInputKey
StatusCode record(std::unique_ptr< T > data)
Record a const object to the store.
Helpers for overlaying Identifiable Containers.
const Identifier & identify() const
This is a "hash" representation of an Identifier. This encodes a 32 bit index which can be used to lo...
std::string debugPrint(const IDC_Container *container, unsigned numprint=25)
Diagnostic output of Identifiable Containers.