ATLAS Offline Software
MuonSegmentTagAlg.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef MUONCOMBINEDALGS_MUONSEGMENTAGALG_H
6 #define MUONCOMBINEDALGS_MUONSEGMENTAGALG_H
7 
9 #include "GaudiKernel/ToolHandle.h"
17 
19 public:
20  MuonSegmentTagAlg(const std::string& name, ISvcLocator* pSvcLocator);
21 
22  ~MuonSegmentTagAlg() = default;
23 
24  virtual StatusCode initialize() override;
25  virtual StatusCode execute(const EventContext& ctx) const override;
26 
27 private:
28  ToolHandle<MuonCombined::IMuonSegmentTagTool> m_muonSegmentTagTool{
29  this, "MuonSegmentTagTool", "MuonCombined::MuonSegmentTagTool/MuonSegmentTagTool", "Muon segment tag tool"};
30  SG::ReadHandleKey<InDetCandidateCollection> m_indetCandidateCollectionName{this, "InDetCandidateLocation", "InDetCandidates",
31  "name of ID candidate collection"};
32  SG::ReadHandleKey<Trk::SegmentCollection> m_muonSegmentCollectionName{this, "MuonSegmentLocation", "TrackMuonSegments",
33  "name of muon segment container"};
34  SG::WriteHandleKey<MuonCombined::InDetCandidateToTagMap> m_tagMap{this, "TagMap", "segmentTagMap", "tag map"};
35 };
36 
37 #endif
ReadHandleKey.h
Property holding a SG store/key/clid from which a ReadHandle is made.
MuonSegmentTagAlg::m_muonSegmentTagTool
ToolHandle< MuonCombined::IMuonSegmentTagTool > m_muonSegmentTagTool
Definition: MuonSegmentTagAlg.h:28
MuonSegmentTagAlg::~MuonSegmentTagAlg
~MuonSegmentTagAlg()=default
MuonSegmentTagAlg
Definition: MuonSegmentTagAlg.h:18
SG::ReadHandleKey
Property holding a SG store/key/clid from which a ReadHandle is made.
Definition: StoreGate/StoreGate/ReadHandleKey.h:39
AthReentrantAlgorithm
An algorithm that can be simultaneously executed in multiple threads.
Definition: AthReentrantAlgorithm.h:83
MuonSegmentTagAlg::execute
virtual StatusCode execute(const EventContext &ctx) const override
Definition: MuonSegmentTagAlg.cxx:20
MuonSegmentTagAlg::MuonSegmentTagAlg
MuonSegmentTagAlg(const std::string &name, ISvcLocator *pSvcLocator)
Definition: MuonSegmentTagAlg.cxx:9
SG::WriteHandleKey< MuonCombined::InDetCandidateToTagMap >
WriteDecorHandleKey.h
Property holding a SG store/key/clid/attr name from which a WriteDecorHandle is made.
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
MuonSegmentTagAlg::m_muonSegmentCollectionName
SG::ReadHandleKey< Trk::SegmentCollection > m_muonSegmentCollectionName
Definition: MuonSegmentTagAlg.h:32
MuonSegmentTagAlg::initialize
virtual StatusCode initialize() override
Definition: MuonSegmentTagAlg.cxx:11
AthReentrantAlgorithm.h
WriteHandleKey.h
Property holding a SG store/key/clid from which a WriteHandle is made.
InDetCandidateToTagMap.h
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:195
MuonSegmentTagAlg::m_indetCandidateCollectionName
SG::ReadHandleKey< InDetCandidateCollection > m_indetCandidateCollectionName
Definition: MuonSegmentTagAlg.h:30
IMuonSegmentTagTool.h
MuonSegmentTagAlg::m_tagMap
SG::WriteHandleKey< MuonCombined::InDetCandidateToTagMap > m_tagMap
Definition: MuonSegmentTagAlg.h:34
InDetCandidateCollection.h
SegmentCollection.h