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 documentation in: ../README.rst
12 or
13 https://svnweb.cern.ch/trac/atlasoff/browser/PhysicsAnalysis/TauID/TauAnalysisTools/trunk/README.rst
14*/
15
16// Framework include(s):
17#include "AsgTools/AsgTool.h"
21
22// Local include(s):
26
27namespace TauAnalysisTools
28{
29
32 , public virtual ITauSmearingTool
33{
36
37public:
39 TauSmearingTool( const std::string& sName );
40
42
44 virtual StatusCode initialize();
45
46 virtual StatusCode beginInputFile();
47
49 virtual CP::CorrectionCode applyCorrection( xAOD::TauJet& xTau ) const;
50
52 virtual CP::CorrectionCode correctedCopy( const xAOD::TauJet& input,
53 xAOD::TauJet*& output ) const;
54
56 virtual bool isAffectedBySystematic( const CP::SystematicVariation& systematic ) const;
57
60
63
64 virtual StatusCode applySystematicVariation( const CP::SystematicSet& systConfig );
65
66private:
68
69 Gaudi::Property<std::string> m_sInputFilePath{this, "InputFilePath", ""};
70 Gaudi::Property<std::string> m_sRecommendationTag{this, "RecommendationTag", "2025-prerec"};
71 Gaudi::Property<std::string> m_sCampaign{this, "Campaign", "mc21"};
72 Gaudi::Property<std::string> m_sGenerator{this, "Generator", "PoPy"};
73 Gaudi::Property<bool> m_bSkipTruthMatchCheck{this, "SkipTruthMatchCheck", false};
74 Gaudi::Property<bool> m_bApplyFading{this, "ApplyFading", true};
75 Gaudi::Property<bool> m_bMVATESQualityCheck{this, "MVATESQualityCheck", true};
76 Gaudi::Property<bool> m_bApplyInsituCorrection{this, "ApplyInsituCorrection", true};
77 Gaudi::Property<bool> m_useFastSim{this, "useFastSim", false};
78
79}; // class TauSmearingTool
80
81} // namespace TauAnalysisTools
82
83#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.
Gaudi::Property< std::string > m_sGenerator
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".