ATLAS Offline Software
Loading...
Searching...
No Matches
TauSmearingTool.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_TAUSMEARINGTOOL_H
6#define TAUANALYSISTOOLS_TAUSMEARINGTOOL_H
7
8/*
9 author: Dirk Duschinger
10 mail: dirk.duschinger@cern.ch
11*/
12
13// Framework include(s):
14#include "AsgTools/AsgTool.h"
18
19// Local include(s):
23
24namespace TauAnalysisTools
25{
26
29 , public virtual ITauSmearingTool
30{
33
34public:
36 TauSmearingTool( const std::string& sName );
37
39
41 virtual StatusCode initialize();
42
43 virtual StatusCode beginInputFile();
44
46 virtual CP::CorrectionCode applyCorrection( xAOD::TauJet& xTau ) const;
47
49 virtual CP::CorrectionCode correctedCopy( const xAOD::TauJet& input,
50 xAOD::TauJet*& output ) const;
51
53 virtual bool isAffectedBySystematic( const CP::SystematicVariation& systematic ) const;
54
57
60
61 virtual StatusCode applySystematicVariation( const CP::SystematicSet& systConfig );
62
63private:
65
66 Gaudi::Property<std::string> m_sInputFilePath{this, "InputFilePath", ""};
67 Gaudi::Property<std::string> m_sRecommendationTag{this, "RecommendationTag", "2025-prerec"};
68 Gaudi::Property<std::string> m_sCampaign{this, "Campaign", "mc23"};
69 Gaudi::Property<bool> m_bSkipTruthMatchCheck{this, "SkipTruthMatchCheck", false};
70 Gaudi::Property<bool> m_bApplyFading{this, "ApplyFading", true};
71 Gaudi::Property<bool> m_bMVATESQualityCheck{this, "MVATESQualityCheck", true};
72 Gaudi::Property<bool> m_bApplyInsituCorrection{this, "ApplyInsituCorrection", true};
73 Gaudi::Property<bool> m_useFastSim{this, "useFastSim", false};
74
75}; // class TauSmearingTool
76
77} // namespace TauAnalysisTools
78
79#endif // TAUANALYSISTOOLS_TAUSMEARINGTOOL_H
#define ASG_TOOL_CLASS(CLASSNAME, INT1)
Return value from object correction CP tools.
Class to wrap a set of SystematicVariations.
asg::AnaToolHandle< ITauSmearingTool > m_tCommonSmearingTool
virtual CP::CorrectionCode applyCorrection(xAOD::TauJet &xTau) const
Apply the correction on a modifyable object.
virtual StatusCode applySystematicVariation(const CP::SystematicSet &systConfig)
effects: configure this tool for the given list of systematic variations.
virtual StatusCode beginInputFile()
Function called when a new input file is opened.
virtual CP::SystematicSet recommendedSystematics() const
returns: the list of all systematics this tool recommends to use
virtual StatusCode initialize()
Function initialising the tool.
Gaudi::Property< bool > m_bMVATESQualityCheck
Gaudi::Property< std::string > m_sRecommendationTag
virtual CP::CorrectionCode correctedCopy(const xAOD::TauJet &input, xAOD::TauJet *&output) const
Create a corrected copy from a constant tau.
TauSmearingTool(const std::string &sName)
Create a proper constructor for Athena.
Gaudi::Property< std::string > m_sInputFilePath
Gaudi::Property< bool > m_bApplyFading
virtual CP::SystematicSet affectingSystematics() const
returns: the list of all systematics this tool can be affected by
virtual bool isAffectedBySystematic(const CP::SystematicVariation &systematic) const
returns: whether this tool is affected by the given systematis
Gaudi::Property< bool > m_bApplyInsituCorrection
Gaudi::Property< std::string > m_sCampaign
Gaudi::Property< bool > m_useFastSim
Gaudi::Property< bool > m_bSkipTruthMatchCheck
a modified tool handle that allows its owner to configure new tools from the C++ side
Base class for dual-use tools that provide file metadata access.
TauJet_v3 TauJet
Definition of the current "tau version".