ATLAS Offline Software
Loading...
Searching...
No Matches
SCTOverlay.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration
3*/
4
5#ifndef INDETOVERLAY_SCTOVERLAY_H
6#define INDETOVERLAY_SCTOVERLAY_H
7
10
11class SCT_ID;
12
14{
15public:
16
17 SCTOverlay(const std::string &name, ISvcLocator *pSvcLocator);
18
19 virtual StatusCode initialize() override final;
20 virtual StatusCode execute(const EventContext& ctx) const override final;
21
22 // SCT collection merging needs an ID helper. Instead of retrieving
23 // it thousands of times per event in the collection merging code,
24 // do it once in InDetOverlay initialization and make available here
25 const SCT_ID *get_sct_id() const { return m_sctId; }
26
30
31private:
32 const SCT_ID *m_sctId{};
33
34 SG::ReadHandleKey<SCT_RDO_Container> m_bkgInputKey{ this, "BkgInputKey", "Bkg_SCT_RDOs", "ReadHandleKey for Background Input SCT_RDO_Container" };
35 SG::ReadHandleKey<SCT_RDO_Container> m_signalInputKey{ this, "SignalInputKey", "Sig_SCT_RDOs", "ReadHandleKey for Signal Input SCT_RDO_Container" };
36 SG::WriteHandleKey<SCT_RDO_Container> m_outputKey{ this, "OutputKey", "SCT_RDOs", "WriteHandleKey for Output SCT_RDO_Container" };
37};
38
39#endif // INDETOVERLAY_SCTOVERLAY_H
Common base class and generic overlaying code for boolean-like hits.
IDC_OverlayBase(const std::string &name, ISvcLocator *pSvcLocator)
SG::ReadHandleKey< SCT_RDO_Container > m_signalInputKey
Definition SCTOverlay.h:35
SCTOverlay(const std::string &name, ISvcLocator *pSvcLocator)
const SCT_ID * get_sct_id() const
Definition SCTOverlay.h:25
virtual StatusCode execute(const EventContext &ctx) const override final
const SCT_ID * m_sctId
Definition SCTOverlay.h:32
@ NumberOfBitSets
Definition SCTOverlay.h:28
@ NumberOfSources
Definition SCTOverlay.h:29
SG::ReadHandleKey< SCT_RDO_Container > m_bkgInputKey
Definition SCTOverlay.h:34
SG::WriteHandleKey< SCT_RDO_Container > m_outputKey
Definition SCTOverlay.h:36
virtual StatusCode initialize() override final
This is an Identifier helper class for the SCT subdetector.
Definition SCT_ID.h:68
Property holding a SG store/key/clid from which a ReadHandle is made.
Property holding a SG store/key/clid from which a WriteHandle is made.