ATLAS Offline Software
Loading...
Searching...
No Matches
METMakerAlg.h
Go to the documentation of this file.
1
2
3/*
4 Copyright (C) 2002-2023 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"
15
16#include "xAODEgamma/Electron.h"
17#include "xAODEgamma/Photon.h"
18#include "xAODMuon/Muon.h"
19#include "xAODTau/TauJet.h"
20
26
29
30
31class IMETMaker;
34namespace CP {
36}
37namespace TauAnalysisTools {
39}
40
41namespace met {
42 class METMakerAlg : public AthAlgorithm {
43
44 public:
45
47 METMakerAlg(const std::string& name, ISvcLocator* pSvcLocator);
48
50 virtual ~METMakerAlg();
51
53 virtual StatusCode initialize() override;
54 virtual StatusCode execute() override;
55 virtual StatusCode finalize() override;
56
57 protected: // was private childORMETMaker
58
61
62 virtual bool accept(const xAOD::Electron* el);
63 virtual bool accept(const xAOD::Photon* ph);
64 virtual bool accept(const xAOD::TauJet* tau);
65 virtual bool accept(const xAOD::Muon* muon);
66
67 std::string m_softclname;
68 std::string m_softtrkname;
69
70 //In release 21 need to replace the names of the containers by the appropriate data handles
76
78
81
82
84
86 ToolHandle<IMETMaker> m_metmaker;
87
88 ToolHandle<CP::IMuonSelectionTool> m_muonSelTool;
89 ToolHandle<IAsgElectronLikelihoodTool> m_elecSelLHTool;
90 ToolHandle<IAsgPhotonIsEMSelector> m_photonSelIsEMTool;
91 ToolHandle<TauAnalysisTools::ITauSelectionTool> m_tauSelTool;
92
93 };
94
95}
96
97#endif
defines an "iterator" over instances of a given type in StoreGateSvc
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:67
virtual ~METMakerAlg()
Destructor:
SG::ReadHandleKey< xAOD::TauJetContainer > m_TauJetContainerKey
Definition METMakerAlg.h:73
virtual bool accept(const xAOD::Electron *el)
std::string m_softtrkname
Definition METMakerAlg.h:68
SG::WriteHandleKey< xAOD::MissingETContainer > m_metKey
Definition METMakerAlg.h:79
SG::ReadHandleKey< xAOD::MuonContainer > m_MuonContainerKey
Definition METMakerAlg.h:74
virtual StatusCode initialize() override
Athena algorithm's Hooks.
ToolHandle< IMETMaker > m_metmaker
Athena configured tools.
Definition METMakerAlg.h:86
ToolHandle< CP::IMuonSelectionTool > m_muonSelTool
Definition METMakerAlg.h:88
METMakerAlg()
Default constructor:
SG::ReadHandleKey< xAOD::MissingETAssociationMap > m_metMapKey
Definition METMakerAlg.h:80
ToolHandle< IAsgPhotonIsEMSelector > m_photonSelIsEMTool
Definition METMakerAlg.h:90
SG::ReadHandleKey< xAOD::PhotonContainer > m_PhotonContainerKey
Definition METMakerAlg.h:72
virtual StatusCode execute() override
SG::ReadHandleKey< xAOD::JetContainer > m_JetContainerKey
Definition METMakerAlg.h:75
ToolHandle< IAsgElectronLikelihoodTool > m_elecSelLHTool
Definition METMakerAlg.h:89
ToolHandle< TauAnalysisTools::ITauSelectionTool > m_tauSelTool
Definition METMakerAlg.h:91
virtual StatusCode finalize() override
SG::ReadHandleKey< xAOD::ElectronContainer > m_ElectronContainerKey
Definition METMakerAlg.h:71
METMakerAlg(const std::string &name, ISvcLocator *pSvcLocator)
Constructor with parameters:
SG::ReadHandleKey< xAOD::MissingETContainer > m_CoreMetKey
Definition METMakerAlg.h:77
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".