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
28
29
30class IMETMaker;
33namespace CP {
35}
36namespace TauAnalysisTools {
38}
39
40namespace met {
42
43 public:
44
46 METMakerAlg(const std::string& name, ISvcLocator* pSvcLocator);
47
49 virtual ~METMakerAlg();
50
52 virtual StatusCode initialize() override;
53 virtual StatusCode execute(const EventContext& ctx) const override;
54 virtual StatusCode finalize() override;
55
56 protected: // was private childORMETMaker
57
58 virtual bool accept(const xAOD::Electron* el) const;
59 virtual bool accept(const xAOD::Photon* ph) const;
60 virtual bool accept(const xAOD::TauJet* tau) const;
61 virtual bool accept(const xAOD::Muon* muon) const;
62
63 std::string m_softclname;
64 std::string m_softtrkname;
65
66 //In release 21 need to replace the names of the containers by the appropriate data handles
72
74
77
78
80
82 ToolHandle<IMETMaker> m_metmaker;
83
84 ToolHandle<CP::IMuonSelectionTool> m_muonSelTool;
85 ToolHandle<IAsgElectronLikelihoodTool> m_elecSelLHTool;
86 ToolHandle<IAsgPhotonIsEMSelector> m_photonSelIsEMTool;
87 ToolHandle<TauAnalysisTools::ITauSelectionTool> m_tauSelTool;
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.
Interface for tau selector tool.
std::string m_softclname
Definition METMakerAlg.h:63
virtual ~METMakerAlg()
Destructor:
virtual bool accept(const xAOD::Electron *el) const
SG::ReadHandleKey< xAOD::TauJetContainer > m_TauJetContainerKey
Definition METMakerAlg.h:69
std::string m_softtrkname
Definition METMakerAlg.h:64
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
virtual StatusCode initialize() override
Athena algorithm's Hooks.
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
METMakerAlg(const std::string &name, ISvcLocator *pSvcLocator)
Constructor with parameters:
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".
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".