ATLAS Offline Software
Loading...
Searching...
No Matches
MuonCreatorAlg.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_MUONCREATORALG_H
6#define MUONCOMBINEDALGS_MUONCREATORALG_H
7
8#include <string>
9
14#include "GaudiKernel/ToolHandle.h"
27
29public:
30 MuonCreatorAlg(const std::string& name, ISvcLocator* pSvcLocator);
31
32 ~MuonCreatorAlg() = default;
33
34 virtual StatusCode initialize() override;
35 virtual StatusCode execute(const EventContext& ctx) const override;
36
37private:
38 ToolHandle<MuonCombined::IMuonCreatorTool> m_muonCreatorTool{this, "MuonCreatorTool", "MuonCombined::MuonCreatorTool/MuonCreatorTool",
39 "Muon creator tool"};
40 SG::WriteHandleKey<xAOD::MuonContainer> m_muonCollectionName{this, "MuonContainerLocation", "Muons", "Muon Container"};
41 SG::WriteHandleKey<xAOD::SlowMuonContainer> m_slowMuonCollectionName{this, "SlowMuonContainerLocation", "SlowMuons",
42 "Slow Muon Container"};
43 SG::WriteHandleKey<xAOD::TrackParticleContainer> m_combinedCollectionName{this, "CombinedLocation", "CombinedMuon", "Combined muons"};
44 SG::WriteHandleKey<TrackCollection> m_combinedTrkCollectionName{this, "CombinedTrackLocation", "CombinedMuon", "Combined muon tracks"};
46 "Extrapolated muons"};
47 SG::WriteHandleKey<TrackCollection> m_extrapolatedTrkCollectionName{this, "ExtrapolatedTrackLocation", "ExtrapolatedMuon",
48 "Extrapolated muon tracks"};
50 "MSOnlyExtrapolatedMuon", "MS Extrapolated muons"};
52 this, "MSOnlyExtrapolatedTrackLocation", "MSOnlyExtrapolatedMuonTracks", "MS extrapolated muon tracks"};
53 SG::ReadHandleKey<InDetCandidateCollection> m_indetCandidateCollectionName{this, "InDetCandidateLocation", "InDetCandidates",
54 "ID candidates"};
55
57 this, "MuonCandidateLocation", {"MuonCandidates"}, "Muon candidates"};
59 this, "TagMaps", {"muidcoTagMap", "stacoTagMap", "muGirlTagMap", "caloTagMap", "segmentTagMap"}, "ID candidate to tag maps"};
60
61 SG::ReadHandleKey<MuonCombined::MuonTagToSegMap> m_segAssocMapKey{this, "TagToSegmentKey", "MuonTagSegMap"};
62 SG::ReadHandleKey<xAOD::MuonSegmentContainer> m_segContainerName{this, "SegmentContainerName", "MuonSegments", "Segments"};
63
64 SG::WriteHandleKey<xAOD::CaloClusterContainer> m_clusterContainerName{this, "ClusterContainerName", "MuonClusterCollection",
65 "Clusters"};
66 SG::WriteHandleKey<CaloClusterCellLinkContainer> m_clusterContainerLinkName{this, "CaloClusterCellLinkName", "MuonClusterCollection",
67 "Cluster links"};
68
69 Gaudi::Property<bool> m_buildSlowMuon{this, "BuildSlowMuon", false};
70 Gaudi::Property<bool> m_doSA{this, "CreateSAmuons", false};
71 Gaudi::Property<bool> m_makeClusters{this, "MakeClusters", true};
72
73 // Monitoring tool
74 ToolHandle<GenericMonitoringTool> m_monTool{this, "MonTool", "", "Monitoring tool"};
75};
76
77#endif
Header file to be included by clients of the Monitored infrastructure.
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.
An algorithm that can be simultaneously executed in multiple threads.
SG::WriteHandleKey< xAOD::TrackParticleContainer > m_combinedCollectionName
SG::ReadHandleKeyArray< MuonCandidateCollection > m_muonCandidateKeys
SG::ReadHandleKey< MuonCombined::MuonTagToSegMap > m_segAssocMapKey
MuonCreatorAlg(const std::string &name, ISvcLocator *pSvcLocator)
SG::ReadHandleKey< InDetCandidateCollection > m_indetCandidateCollectionName
SG::WriteHandleKey< xAOD::SlowMuonContainer > m_slowMuonCollectionName
SG::WriteHandleKey< xAOD::MuonContainer > m_muonCollectionName
SG::WriteHandleKey< TrackCollection > m_extrapolatedTrkCollectionName
SG::WriteHandleKey< TrackCollection > m_msOnlyExtrapolatedTrkCollectionName
virtual StatusCode execute(const EventContext &ctx) const override
SG::WriteHandleKey< CaloClusterCellLinkContainer > m_clusterContainerLinkName
ToolHandle< MuonCombined::IMuonCreatorTool > m_muonCreatorTool
SG::WriteHandleKey< xAOD::CaloClusterContainer > m_clusterContainerName
virtual StatusCode initialize() override
SG::WriteHandleKey< xAOD::TrackParticleContainer > m_msOnlyExtrapolatedCollectionName
~MuonCreatorAlg()=default
Gaudi::Property< bool > m_makeClusters
Gaudi::Property< bool > m_buildSlowMuon
Gaudi::Property< bool > m_doSA
SG::WriteHandleKey< TrackCollection > m_combinedTrkCollectionName
SG::WriteHandleKey< xAOD::TrackParticleContainer > m_extrapolatedCollectionName
SG::ReadHandleKeyArray< MuonCombined::InDetCandidateToTagMap > m_tagMaps
ToolHandle< GenericMonitoringTool > m_monTool
SG::ReadHandleKey< xAOD::MuonSegmentContainer > m_segContainerName
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.
HandleKeyArray< ReadHandle< T >, ReadHandleKey< T >, Gaudi::DataHandle::Reader > ReadHandleKeyArray