|
ATLAS Offline Software
|
Go to the documentation of this file.
22 const T*& contPtr)
const {
26 return StatusCode::SUCCESS;
30 contPtr = handle.
cptr();
31 return StatusCode::SUCCESS;
37 return StatusCode::FAILURE;
50 return StatusCode::SUCCESS;
70 auto [combis, houghDataPerSectorVec] =
m_layerTool->find(mdtPrds, cscPrds, tgcPrds, rpcPrds, stgcPrds, mmPrds, ctx);
73 if (Handle.
record(std::move(combis)).isFailure()) {
74 ATH_MSG_WARNING(
"Failed to record MuonPatternCombinationCollection at MuonLayerHoughCombis");
76 ATH_MSG_DEBUG(
"Recorded MuonPatternCombinationCollection at MuonLayerHoughCombis: size " << Handle->
size());
83 ATH_CHECK(Handle.
record(std::make_unique<MuonPatternCombinationCollection>()));
88 if (houghDataPerSectorVec) {
89 ATH_CHECK(handle.record(std::move(houghDataPerSectorVec)));
92 ATH_CHECK(handle.record(std::make_unique<Muon::HoughDataPerSectorVec>()));
94 return StatusCode::SUCCESS;
SG::ReadHandleKey< Muon::CscPrepDataContainer > m_keyCsc
Template for Muon PRD containers (which are basically collections of MuonPrepDataCollections).
SG::ReadHandleKey< Muon::sTgcPrepDataContainer > m_keysTgc
const_pointer_type cptr()
Dereference the pointer.
SG::ReadHandleKey< Muon::MMPrepDataContainer > m_keyMM
SG::ReadHandleKey< Muon::RpcPrepDataContainer > m_keyRpc
bool msgLvl(const MSG::Level lvl) const
virtual StatusCode execute(const EventContext &ctx) const override
#define ATH_MSG_VERBOSE(x)
Property holding a SG store/key/clid from which a ReadHandle is made.
An algorithm that can be simultaneously executed in multiple threads.
virtual StatusCode initialize() override
PublicToolHandle< Muon::MuonEDMPrinterTool > m_printer
SG::ReadHandleKey< Muon::MdtPrepDataContainer > m_keyMdt
::StatusCode StatusCode
StatusCode definition for legacy code.
SG::WriteHandleKey< Muon::HoughDataPerSectorVec > m_houghDataPerSectorVecKey
StatusCode initialize(bool used=true)
If this object is used as a property, then this should be called during the initialize phase.
StatusCode retrieveContainer(const EventContext &ctx, const SG::ReadHandleKey< T > &key, const T *&contPtr) const
Gaudi::Property< bool > m_printSummary
virtual bool isValid() override final
Can the handle be successfully dereferenced?
SG::ReadHandleKey< Muon::TgcPrepDataContainer > m_keyTgc
ToolHandle< Muon::IMuonHoughPatternFinderTool > m_layerTool
MuonLayerHoughAlg(const std::string &name, ISvcLocator *pSvcLocator)
StatusCode record(std::unique_ptr< T > data)
Record a const object to the store.
#define ATH_MSG_WARNING(x)
SG::WriteHandleKey< MuonPatternCombinationCollection > m_combis
Handle class for reading from StoreGate.
size_type size() const noexcept
Returns the number of elements in the collection.