ATLAS Offline Software
Loading...
Searching...
No Matches
TruthTauDecoratorAlg.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
3*/
4
5#ifndef TRUTH_TAU_DECORATOR_ALG_H
6#define TRUTH_TAU_DECORATOR_ALG_H
7
11#include "AsgTools/ToolHandle.h"
12
16
17
18namespace FlavorTagDiscriminants {
19
34 public:
35 TruthTauDecoratorAlg(const std::string& name, ISvcLocator* pSvcLocator);
36
37 virtual StatusCode initialize() override;
38 virtual StatusCode execute(const EventContext& ctx) const override;
39
40 private:
43
45 this, "JetContainer", "AntiKt4EMPFlowJets", "Jet container"};
47 this, "TruthTauContainer", "TruthTaus", "Truth tau container"};
48
49 Gaudi::Property<float> m_maxDeltaR{
50 this, "MaxDeltaR", 0.3f, "Max delta R for matching"};
51
52 ToolHandle<TauAnalysisTools::ITauTruthMatchingTool> m_tauTruthTool{
53 this, "TauTruthMatchingTool",
54 "TauAnalysisTools::TauTruthMatchingTool/TauTruthMatchingTool",
55 "Tool to compute truth tau decay mode"};
56
57 // Output decoration keys
59 this, "matchedToKey", m_jetKey, "matchedToTruthTaus",
60 "Whether jet is matched to a truth tau"};
62 this, "isHadronicTauKey", m_jetKey, "isHadronicTauFromTruthTaus",
63 "Whether matched tau is hadronic"};
65 this, "decayModeKey", m_jetKey, "decayModeFromTruthTaus",
66 "Decay mode of matched tau"};
68 this, "deltaPtKey", m_jetKey, "deltaPtToTruthTaus",
69 "Jet pT minus tau visible pT"};
71 this, "ptVisKey", m_jetKey, "pt_visFromTruthTaus",
72 "Visible pT of matched tau"};
74 this, "classifierOutComeKey", m_jetKey,
75 "classifierParticleOutComeFromTruthTaus",
76 "Classifier particle outcome of matched tau"};
77 };
78
79}
80
81#endif
Property holding a SG store/key/clid from which a ReadHandle is made.
Property holding a SG store/key/clid/attr name from which a WriteDecorHandle is made.
An algorithm that can be simultaneously executed in multiple threads.
ToolHandle< TauAnalysisTools::ITauTruthMatchingTool > m_tauTruthTool
virtual StatusCode execute(const EventContext &ctx) const override
SG::WriteDecorHandleKey< JC > m_dec_classifierOutcome
TruthTauDecoratorAlg(const std::string &name, ISvcLocator *pSvcLocator)
Property holding a SG store/key/clid from which a ReadHandle is made.
Property holding a SG store/key/clid/attr name from which a WriteDecorHandle is made.
JetContainer_v1 JetContainer
Definition of the current "jet container version".
TruthParticleContainer_v1 TruthParticleContainer
Declare the latest version of the truth particle container.