ATLAS Offline Software
Loading...
Searching...
No Matches
METMakerAlg.h
Go to the documentation of this file.
1
2
3/*
4 Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
5*/
6
7// METMakerAlg.h
8
9#ifndef METMakerAlg_H
10#define METMakerAlg_H
11
13#include "GaudiKernel/ToolHandle.h"
14
15#include "xAODEgamma/Electron.h"
16#include "xAODEgamma/Photon.h"
17#include "xAODMuon/Muon.h"
18#include "xAODTau/TauJet.h"
19
25
32
33
34class IMETMaker;
37namespace CP {
39}
40
41namespace met {
43
44 public:
45
47 using AthReentrantAlgorithm::AthReentrantAlgorithm;
48
50 virtual ~METMakerAlg();
51
53 virtual StatusCode initialize() override;
54 virtual StatusCode execute(const EventContext& ctx) const override;
55 virtual StatusCode finalize() override;
56
57 protected: // was private childORMETMaker
58
59 virtual bool accept(const xAOD::Electron* el) const;
60 virtual bool accept(const xAOD::Photon* ph) const;
61 virtual bool accept(const xAOD::TauJet* tau) const;
62 virtual bool accept(const xAOD::Muon* muon) const;
63
64 Gaudi::Property<std::string> m_softclname{this, "METSoftClName", "SoftClus"};
65 Gaudi::Property<std::string> m_softtrkname{this, "METSoftTrkName", "PVSoftTrk"};
66
71 SG::ReadHandleKey<xAOD::JetContainer> m_JetContainerKey{this, "InputJets", "AntiKt4LCTopoJets"};
72
74
75 SG::WriteHandleKey<xAOD::MissingETContainer> m_metKey{this, "METName", "MET_Reference", "MET container"};
77
78
79 Gaudi::Property<bool> m_doTruthLep{this, "DoTruthLeptons", false};
80
82 ToolHandle<IMETMaker> m_metmaker{this, "Maker", "Maker"};
83
84 ToolHandle<CP::IMuonSelectionTool> m_muonSelTool{this, "MuonSelectionTool", "MuonSelectionTool"};
85 ToolHandle<IAsgElectronLikelihoodTool> m_elecSelLHTool{this, "ElectronLHSelectionTool", "ElectronLHSelectionTool"};
86 ToolHandle<IAsgPhotonIsEMSelector> m_photonSelIsEMTool{this, "PhotonIsEMSelectionTool", "PhotonIsEMSelectionTool"};
87 ToolHandle<TauAnalysisTools::ITauSelectionTool> m_tauSelTool{this, "TauSelectionTool", "TauSelectionTool"};
88
89 };
90
91}
92
93#endif
An algorithm that can be simultaneously executed in multiple threads.
Interface for (a) muon selector tool(s).
Interface to tool to select electrons.
Interface to tool to select photons.
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.
virtual ~METMakerAlg()
Destructor:
virtual bool accept(const xAOD::Electron *el) const
SG::ReadHandleKey< xAOD::TauJetContainer > m_TauJetContainerKey
Definition METMakerAlg.h:69
Gaudi::Property< bool > m_doTruthLep
Definition METMakerAlg.h:79
SG::WriteHandleKey< xAOD::MissingETContainer > m_metKey
Definition METMakerAlg.h:75
virtual StatusCode execute(const EventContext &ctx) const override
SG::ReadHandleKey< xAOD::MuonContainer > m_MuonContainerKey
Definition METMakerAlg.h:70
Gaudi::Property< std::string > m_softclname
Definition METMakerAlg.h:64
virtual StatusCode initialize() override
Athena algorithm's Hooks.
Gaudi::Property< std::string > m_softtrkname
Definition METMakerAlg.h:65
ToolHandle< IMETMaker > m_metmaker
Athena configured tools.
Definition METMakerAlg.h:82
ToolHandle< CP::IMuonSelectionTool > m_muonSelTool
Definition METMakerAlg.h:84
SG::ReadHandleKey< xAOD::MissingETAssociationMap > m_metMapKey
Definition METMakerAlg.h:76
ToolHandle< IAsgPhotonIsEMSelector > m_photonSelIsEMTool
Definition METMakerAlg.h:86
SG::ReadHandleKey< xAOD::PhotonContainer > m_PhotonContainerKey
Definition METMakerAlg.h:68
SG::ReadHandleKey< xAOD::JetContainer > m_JetContainerKey
Definition METMakerAlg.h:71
ToolHandle< IAsgElectronLikelihoodTool > m_elecSelLHTool
Definition METMakerAlg.h:85
ToolHandle< TauAnalysisTools::ITauSelectionTool > m_tauSelTool
Definition METMakerAlg.h:87
virtual StatusCode finalize() override
SG::ReadHandleKey< xAOD::ElectronContainer > m_ElectronContainerKey
Definition METMakerAlg.h:67
SG::ReadHandleKey< xAOD::MissingETContainer > m_CoreMetKey
Definition METMakerAlg.h:73
Select isolated Photons, Electrons and Muons.
TauJet_v3 TauJet
Definition of the current "tau version".
Definition TauJet.h:17
Muon_v1 Muon
Reference the current persistent version:
Photon_v1 Photon
Definition of the current "egamma version".
Electron_v1 Electron
Definition of the current "egamma version".