ATLAS Offline Software
Loading...
Searching...
No Matches
DiTauSmearingTool.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
3*/
4
5#ifndef TAUANALYSISTOOLS_DITAUSMEARINGTOOL_H
6#define TAUANALYSISTOOLS_DITAUSMEARINGTOOL_H
7
8/*
9 author: David Kirchmeier
10 mail: david.kirchmeier@cern.ch
11 ported in R22 by: Antonio De Maria
12 mail: antonio.de.maria@cern.ch
13 documentation in: ../doc/README-DiTauSmearingTool.rst
14*/
15
16
17// Framework include(s):
18#include "AsgTools/AsgTool.h"
21
22// Local include(s):
25
26namespace TauAnalysisTools
27{
28
30 : public asg::AsgTool
31 , public virtual IDiTauSmearingTool
32{
35
36public:
38 DiTauSmearingTool( const std::string& sName );
39
41 virtual StatusCode initialize() override;
42
44 virtual CP::CorrectionCode applyCorrection( xAOD::DiTauJet& xDiTau ) override;
47 xAOD::DiTauJet*& output ) override;
48
50 virtual bool isAffectedBySystematic( const CP::SystematicVariation& systematic ) const override;
51
53 virtual CP::SystematicSet affectingSystematics() const override;
54
56 virtual CP::SystematicSet recommendedSystematics() const override;
57
58 virtual StatusCode applySystematicVariation( const CP::SystematicSet& systConfig ) override;
59
60private:
62 std::string m_sInputFilePath;
63
64 Gaudi::Property<std::string> m_sRecommendationTag{this, "RecommendationTag", "2019-winter"};
65 Gaudi::Property<bool> m_bSkipTruthMatchCheck{this, "SkipTruthMatchCheck", false};
66
67
68}; // class DiTauSmearingTool
69
70} // namespace TauAnalysisTools
71
72#endif // TAUANALYSISTOOLS_DITAUSMEARINGTOOL_H
73
74
75
#define ASG_TOOL_CLASS(CLASSNAME, INT1)
Return value from object correction CP tools.
Class to wrap a set of SystematicVariations.
virtual StatusCode applySystematicVariation(const CP::SystematicSet &systConfig) override
effects: configure this tool for the given list of systematic variations.
Gaudi::Property< bool > m_bSkipTruthMatchCheck
virtual CP::CorrectionCode correctedCopy(const xAOD::DiTauJet &input, xAOD::DiTauJet *&output) override
Create a corrected copy from a constant ditau.
asg::AnaToolHandle< IDiTauSmearingTool > m_tCommonDiTauSmearingTool
DiTauSmearingTool(const std::string &sName)
Create a proper constructor for Athena.
virtual StatusCode initialize() override
Function initialising the tool.
virtual CP::SystematicSet recommendedSystematics() const override
returns: the list of all systematics this tool recommends to use
virtual CP::SystematicSet affectingSystematics() const override
returns: the list of all systematics this tool can be affected by
virtual CP::CorrectionCode applyCorrection(xAOD::DiTauJet &xDiTau) override
Apply the correction on a modifyable object.
virtual bool isAffectedBySystematic(const CP::SystematicVariation &systematic) const override
returns: whether this tool is affected by the given systematis
Gaudi::Property< std::string > m_sRecommendationTag
a modified tool handle that allows its owner to configure new tools from the C++ side
Base class for the dual-use tool implementation classes.
Definition AsgTool.h:47
DiTauJet_v1 DiTauJet
Definition of the current version.
Definition DiTauJet.h:17