ATLAS Offline Software
Loading...
Searching...
No Matches
METMakerAlg.h
Go to the documentation of this file.
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 {
38 class IMuonSelectionTool;
39}
40
41namespace ADD_CMODE(met) {
42 class METMakerAlg : public AthReentrantAlgorithm {
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
67 SG::ReadHandleKey<xAOD::ElectronContainer> m_ElectronContainerKey{this, "InputElectrons", "Electrons"};
68 SG::ReadHandleKey<xAOD::PhotonContainer> m_PhotonContainerKey{this, "InputPhotons", "Photons"};
69 SG::ReadHandleKey<xAOD::TauJetContainer> m_TauJetContainerKey{this, "InputTaus", "TauJets"};
70 SG::ReadHandleKey<xAOD::MuonContainer> m_MuonContainerKey{this, "InputMuons", "Muons"};
71 SG::ReadHandleKey<xAOD::JetContainer> m_JetContainerKey{this, "InputJets", "AntiKt4LCTopoJets"};
72
73 SG::ReadHandleKey<xAOD::MissingETContainer> m_CoreMetKey{this, "METCoreName", "MET_Core"};
74
75 SG::WriteHandleKey<xAOD::MissingETContainer> m_metKey{this, "METName", "MET_Reference", "MET container"};
76 SG::ReadHandleKey<xAOD::MissingETAssociationMap> m_metMapKey{this, "METMapName", "METAssoc"};
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
Interface to tool to select electrons.
Interface to tool to select photons.
Select isolated Photons, Electrons and Muons.
StatusCode accept(const xAOD::Muon *mu)
::StatusCode StatusCode
StatusCode definition for legacy code.
finalize(self)
_info( "content of StoreGate..." ) self.sg.dump()
Definition PyTestsLib.py:50
TauJet_v3 TauJet
Definition of the current "tau version".
Definition TauJet.h:17
Muon_v1 Muon
Reference the current persistent version:
Definition Muon.h:13
Photon_v1 Photon
Definition of the current "egamma version".
Definition Photon.h:17
Electron_v1 Electron
Definition of the current "egamma version".
Definition Electron.h:17
void initialize()