ATLAS Offline Software
TauIDDecoratorWrapper.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef DERIVATIONFRAMEWORKTAU_TAUIDDECORATORWRAPPER_H
6 #define DERIVATIONFRAMEWORKTAU_TAUIDDECORATORWRAPPER_H
7 
16 #include "xAODMuon/MuonContainer.h"
17 
18 #include <string>
19 #include <vector>
20 
25 namespace DerivationFramework {
26 
28  public:
29  TauIDDecoratorWrapper(const std::string& t, const std::string& n, const IInterface* p);
30 
31  virtual StatusCode initialize() override;
32  virtual StatusCode finalize() override;
33  virtual StatusCode addBranches() const override;
34 
35  private:
36  SG::ReadHandleKey<xAOD::TauJetContainer> m_tauContainerKey { this, "TauContainerName", "TauJets", "Input tau container key" };
37  SG::ReadHandleKey<xAOD::MuonContainer> m_muonContainerKey { this, "MuonContainerName", "Muons", "Input muon container key" };
38  SG::ReadHandleKey<xAOD::VertexContainer> m_vtxContainerKey { this, "VertexContainerName", "PrimaryVertices", "Input PV container key" };
39  SG::WriteDecorHandleKeyArray<xAOD::TauJetContainer> m_scoreDecorKeys{ this, "ScoreDecorationKeys", {}, "List of score decorations added to the tau"};
40  SG::WriteDecorHandleKeyArray<xAOD::TauJetContainer> m_WPDecorKeys{ this, "WPDecorationKeys", {}, "List of WP decorations added to the tau"};
41  SG::WriteDecorHandleKey<xAOD::TauJetContainer> m_trackWidthKey{ this, "TrackWidthKey", m_tauContainerKey, "trackWidth", "Track width decoration name"};
42  SG::WriteDecorHandleKey<xAOD::TauJetContainer> m_passTATTauMuonOLRKey{ this, "PassTATTauMuonOLRKey", m_tauContainerKey, "passTATTauMuonOLR", "Decoration name"};
43 
44  ToolHandleArray<TauRecToolBase> m_tauIDTools { this, "TauIDTools", {}, "" };
45  bool m_doEvetoWP = false;
46  std::vector<std::string> m_scores;
47  std::vector<std::string> m_WPs;
48  };
49 }
50 
51 #endif // DERIVATIONFRAMEWORKTAU_TAUIDDECORATORWRAPPER_H
ReadHandleKey.h
Property holding a SG store/key/clid from which a ReadHandle is made.
DerivationFramework::TauIDDecoratorWrapper::m_WPDecorKeys
SG::WriteDecorHandleKeyArray< xAOD::TauJetContainer > m_WPDecorKeys
Definition: TauIDDecoratorWrapper.h:40
SG::WriteDecorHandleKey
Property holding a SG store/key/clid/attr name from which a WriteDecorHandle is made.
Definition: StoreGate/StoreGate/WriteDecorHandleKey.h:89
DerivationFramework::TauIDDecoratorWrapper::TauIDDecoratorWrapper
TauIDDecoratorWrapper(const std::string &t, const std::string &n, const IInterface *p)
Definition: TauIDDecoratorWrapper.cxx:12
DerivationFramework::TauIDDecoratorWrapper::m_tauIDTools
ToolHandleArray< TauRecToolBase > m_tauIDTools
Definition: TauIDDecoratorWrapper.h:44
DerivationFramework::TauIDDecoratorWrapper::m_WPs
std::vector< std::string > m_WPs
Definition: TauIDDecoratorWrapper.h:47
IAugmentationTool.h
TauRecToolBase.h
SG::HandleKeyArray
Definition: StoreGate/StoreGate/HandleKeyArray.h:38
DerivationFramework::TauIDDecoratorWrapper
Definition: TauIDDecoratorWrapper.h:27
read_hist_ntuple.t
t
Definition: read_hist_ntuple.py:5
SG::ReadHandleKey
Property holding a SG store/key/clid from which a ReadHandle is made.
Definition: StoreGate/StoreGate/ReadHandleKey.h:39
DerivationFramework::TauIDDecoratorWrapper::m_doEvetoWP
bool m_doEvetoWP
Definition: TauIDDecoratorWrapper.h:45
DerivationFramework::IAugmentationTool
Definition: IAugmentationTool.h:24
ToolHandleArray.h
python.utils.AtlRunQueryDQUtils.p
p
Definition: AtlRunQueryDQUtils.py:210
DerivationFramework::TauIDDecoratorWrapper::m_passTATTauMuonOLRKey
SG::WriteDecorHandleKey< xAOD::TauJetContainer > m_passTATTauMuonOLRKey
Definition: TauIDDecoratorWrapper.h:42
beamspotman.n
n
Definition: beamspotman.py:731
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
AthAlgTool.h
DerivationFramework::TauIDDecoratorWrapper::m_vtxContainerKey
SG::ReadHandleKey< xAOD::VertexContainer > m_vtxContainerKey
Definition: TauIDDecoratorWrapper.h:38
DerivationFramework::TauIDDecoratorWrapper::m_scores
std::vector< std::string > m_scores
Definition: TauIDDecoratorWrapper.h:46
DerivationFramework
THE reconstruction tool.
Definition: ParticleSortingAlg.h:24
TauJetContainer.h
DerivationFramework::TauIDDecoratorWrapper::initialize
virtual StatusCode initialize() override
Definition: TauIDDecoratorWrapper.cxx:18
DerivationFramework::TauIDDecoratorWrapper::m_tauContainerKey
SG::ReadHandleKey< xAOD::TauJetContainer > m_tauContainerKey
Definition: TauIDDecoratorWrapper.h:36
MuonContainer.h
DerivationFramework::TauIDDecoratorWrapper::m_scoreDecorKeys
SG::WriteDecorHandleKeyArray< xAOD::TauJetContainer > m_scoreDecorKeys
Definition: TauIDDecoratorWrapper.h:39
VertexContainer.h
WriteDecorHandleKeyArray.h
AthAlgTool
Definition: AthAlgTool.h:26
DerivationFramework::TauIDDecoratorWrapper::addBranches
virtual StatusCode addBranches() const override
Pass the thinning service
Definition: TauIDDecoratorWrapper.cxx:76
DerivationFramework::TauIDDecoratorWrapper::finalize
virtual StatusCode finalize() override
Definition: TauIDDecoratorWrapper.cxx:71
DerivationFramework::TauIDDecoratorWrapper::m_muonContainerKey
SG::ReadHandleKey< xAOD::MuonContainer > m_muonContainerKey
Definition: TauIDDecoratorWrapper.h:37
DerivationFramework::TauIDDecoratorWrapper::m_trackWidthKey
SG::WriteDecorHandleKey< xAOD::TauJetContainer > m_trackWidthKey
Definition: TauIDDecoratorWrapper.h:41