ATLAS Offline Software
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 
11 class SCT_ID;
12 
14 {
15 public:
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 
31 private:
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
SCTOverlay::BkgSource
@ BkgSource
Definition: SCTOverlay.h:29
SCTOverlay::SignalSource
@ SignalSource
Definition: SCTOverlay.h:29
SCTOverlay::m_signalInputKey
SG::ReadHandleKey< SCT_RDO_Container > m_signalInputKey
Definition: SCTOverlay.h:35
SCTOverlay::execute
virtual StatusCode execute(const EventContext &ctx) const override final
Definition: SCTOverlay.cxx:186
SCTOverlay::NextBC
@ NextBC
Definition: SCTOverlay.h:27
SCTOverlay::get_sct_id
const SCT_ID * get_sct_id() const
Definition: SCTOverlay.h:25
SG::ReadHandleKey
Property holding a SG store/key/clid from which a ReadHandle is made.
Definition: StoreGate/StoreGate/ReadHandleKey.h:39
SCTOverlay::NumberOfStrips
@ NumberOfStrips
Definition: SCTOverlay.h:28
SCTOverlay::m_sctId
const SCT_ID * m_sctId
Definition: SCTOverlay.h:32
SCTOverlay::NumberOfSources
@ NumberOfSources
Definition: SCTOverlay.h:29
SCTOverlay::NumberOfBitSets
@ NumberOfBitSets
Definition: SCTOverlay.h:28
SCT_RDO_Container.h
SG::WriteHandleKey
Property holding a SG store/key/clid from which a WriteHandle is made.
Definition: StoreGate/StoreGate/WriteHandleKey.h:40
SCTOverlay::CurrentBC
@ CurrentBC
Definition: SCTOverlay.h:27
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
SCTOverlay
Definition: SCTOverlay.h:14
SCTOverlay::m_outputKey
SG::WriteHandleKey< SCT_RDO_Container > m_outputKey
Definition: SCTOverlay.h:36
SCTOverlay::m_bkgInputKey
SG::ReadHandleKey< SCT_RDO_Container > m_bkgInputKey
Definition: SCTOverlay.h:34
IDC_OverlayBase.h
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:228
SCTOverlay::AnyBC
@ AnyBC
Definition: SCTOverlay.h:27
SCTOverlay::SCT_numbers
SCT_numbers
Definition: SCTOverlay.h:27
SCTOverlay::SCTOverlay
SCTOverlay(const std::string &name, ISvcLocator *pSvcLocator)
Definition: SCTOverlay.cxx:160
SCT_ID
Definition: SCT_ID.h:68
IDC_OverlayBase
Definition: IDC_OverlayBase.h:25
SCTOverlay::NumberOfBCs
@ NumberOfBCs
Definition: SCTOverlay.h:27
SCTOverlay::PreviousBC
@ PreviousBC
Definition: SCTOverlay.h:27
SCTOverlay::initialize
virtual StatusCode initialize() override final
Definition: SCTOverlay.cxx:165