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 {
41 class METMakerAlg : public AthAlgorithm {
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() override;
54 virtual StatusCode finalize() override;
55
56 protected: // was private childORMETMaker
57
60
61 virtual bool accept(const xAOD::Electron* el);
62 virtual bool accept(const xAOD::Photon* ph);
63 virtual bool accept(const xAOD::TauJet* tau);
64 virtual bool accept(const xAOD::Muon* muon);
65
66 std::string m_softclname;
67 std::string m_softtrkname;
68
69 //In release 21 need to replace the names of the containers by the appropriate data handles
75
77
80
81
83
85 ToolHandle<IMETMaker> m_metmaker;
86
87 ToolHandle<CP::IMuonSelectionTool> m_muonSelTool;
88 ToolHandle<IAsgElectronLikelihoodTool> m_elecSelLHTool;
89 ToolHandle<IAsgPhotonIsEMSelector> m_photonSelIsEMTool;
90 ToolHandle<TauAnalysisTools::ITauSelectionTool> m_tauSelTool;
91
92 };
93
94}
95
96#endif
AthAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor with parameters:
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:66
virtual ~METMakerAlg()
Destructor:
SG::ReadHandleKey< xAOD::TauJetContainer > m_TauJetContainerKey
Definition METMakerAlg.h:72
virtual bool accept(const xAOD::Electron *el)
std::string m_softtrkname
Definition METMakerAlg.h:67
SG::WriteHandleKey< xAOD::MissingETContainer > m_metKey
Definition METMakerAlg.h:78
SG::ReadHandleKey< xAOD::MuonContainer > m_MuonContainerKey
Definition METMakerAlg.h:73
virtual StatusCode initialize() override
Athena algorithm's Hooks.
ToolHandle< IMETMaker > m_metmaker
Athena configured tools.
Definition METMakerAlg.h:85
ToolHandle< CP::IMuonSelectionTool > m_muonSelTool
Definition METMakerAlg.h:87
METMakerAlg()
Default constructor:
SG::ReadHandleKey< xAOD::MissingETAssociationMap > m_metMapKey
Definition METMakerAlg.h:79
ToolHandle< IAsgPhotonIsEMSelector > m_photonSelIsEMTool
Definition METMakerAlg.h:89
SG::ReadHandleKey< xAOD::PhotonContainer > m_PhotonContainerKey
Definition METMakerAlg.h:71
virtual StatusCode execute() override
SG::ReadHandleKey< xAOD::JetContainer > m_JetContainerKey
Definition METMakerAlg.h:74
ToolHandle< IAsgElectronLikelihoodTool > m_elecSelLHTool
Definition METMakerAlg.h:88
ToolHandle< TauAnalysisTools::ITauSelectionTool > m_tauSelTool
Definition METMakerAlg.h:90
virtual StatusCode finalize() override
SG::ReadHandleKey< xAOD::ElectronContainer > m_ElectronContainerKey
Definition METMakerAlg.h:70
METMakerAlg(const std::string &name, ISvcLocator *pSvcLocator)
Constructor with parameters:
SG::ReadHandleKey< xAOD::MissingETContainer > m_CoreMetKey
Definition METMakerAlg.h:76
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".