ATLAS Offline Software
Loading...
Searching...
No Matches
DiTauSmearingTool.h File Reference
Include dependency graph for DiTauSmearingTool.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

namespace ADD_CMODE (TauAnalysisTools)

Function Documentation

◆ ADD_CMODE()

namespace ADD_CMODE ( TauAnalysisTools )

Create a proper constructor for Athena

Create a constructor for standalone usage

Function initialising the tool

Apply the correction on a modifyable object

Create a corrected copy from a constant ditau

returns: whether this tool is affected by the given systematis

returns: the list of all systematics this tool can be affected by

returns: the list of all systematics this tool recommends to use

Definition at line 1 of file DiTauSmearingTool.h.

27{
28
29class DiTauSmearingTool
30 : public asg::AsgTool
31 , public virtual IDiTauSmearingTool
32{
34 ASG_TOOL_CLASS( DiTauSmearingTool, TauAnalysisTools::IDiTauSmearingTool )
35
36public:
38 DiTauSmearingTool( const std::string& sName );
39
41 virtual StatusCode initialize() override;
42
44 virtual CP::CorrectionCode applyCorrection( xAOD::DiTauJet& xDiTau ) const override;
46 virtual CP::CorrectionCode correctedCopy( const xAOD::DiTauJet& input,
47 xAOD::DiTauJet*& output ) const 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:
61 asg::AnaToolHandle<IDiTauSmearingTool> m_tCommonDiTauSmearingTool;
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 ADD_CMODE(TauAnalysisTools)
#define ASG_TOOL_CLASS(CLASSNAME, INT1)
Base class for the dual-use tool implementation classes.
Definition AsgTool.h:47
virtual StatusCode initialize()
Dummy implementation of the initialisation function.
Definition AsgTool.h:133
::StatusCode StatusCode
StatusCode definition for legacy code.
DiTauJet_v1 DiTauJet
Definition of the current version.
Definition DiTauJet.h:17