ATLAS Offline Software
DiTauEfficiencyCorrectionsTool.h
Go to the documentation of this file.
1 
13 #ifndef TAUANALYSISTOOLS_DITAUEFFICIENCYCORRECTIONSTOOL_H
14 #define TAUANALYSISTOOLS_DITAUEFFICIENCYCORRECTIONSTOOL_H
15 
16 
17 // Framework include(s):
19 #include "AsgTools/AnaToolHandle.h"
20 
21 // Local include(s):
25 
26 namespace TauAnalysisTools
27 {
28 
30  : public virtual IDiTauEfficiencyCorrectionsTool
31  , public asg::AsgMetadataTool
32 {
35 
36 public:
37  /* Create a constructor for standalone usage*/
38  DiTauEfficiencyCorrectionsTool( const std::string& sName );
39 
41 
43  virtual StatusCode initialize();
44 
46  virtual void printConfig() const;
47 
58  double& eff, unsigned int iRunNumber = 0, unsigned int iMu = 0);
59 
60 
70  unsigned int iRunNumber = 0, unsigned int iMu = 0);
71 
72 
80  virtual bool isAffectedBySystematic( const CP::SystematicVariation& systematic ) const;
81 
84 
87 
89  virtual StatusCode applySystematicVariation( const CP::SystematicSet& systConfig );
90 
98  virtual bool isSupportedRunNumber( int /*iRunNumber*/ ) const
99  {
100  return true;
101  };
102 
103 private:
105 
106  std::string ConvertJetIDToString(const int iLevel) const;
107 
110 
111 private:
112 
114  std::vector< asg::AnaToolHandle<IDiTauEfficiencyCorrectionsTool>* > m_vCommonEfficiencyTools;
117  std::string m_sRecommendationTag;
119  bool m_bIsData;
122 
123 }; // class DiTauEfficiencyCorrectionsTool
124 
125 } // namespace TauAnalysisTools
126 
127 #endif // TAUANALYSISTOOLS_DITAUEFFICIENCYCORRECTIONSTOOL_H
TauAnalysisTools
Definition: TruthCollectionMakerTau.h:16
TauAnalysisTools::DiTauEfficiencyCorrectionsTool::beginEvent
StatusCode beginEvent()
Function called when a new events is loaded.
Definition: DiTauEfficiencyCorrectionsTool.cxx:91
TauAnalysisTools::IDiTauEfficiencyCorrectionsTool
Definition: IDiTauEfficiencyCorrectionsTool.h:34
TauAnalysisTools::DiTauEfficiencyCorrectionsTool::m_sInputFilePathJetIDHadTau
std::string m_sInputFilePathJetIDHadTau
Definition: DiTauEfficiencyCorrectionsTool.h:115
IDiTauEfficiencyCorrectionsTool.h
recommended ditau efficiency correction scale factors and uncertainties
TauAnalysisTools::DiTauEfficiencyCorrectionsTool::DiTauEfficiencyCorrectionsTool
DiTauEfficiencyCorrectionsTool(const std::string &sName)
Create a proper constructor for Athena.
Definition: DiTauEfficiencyCorrectionsTool.cxx:25
TauAnalysisTools::DiTauEfficiencyCorrectionsTool::getEfficiencyScaleFactor
virtual CP::CorrectionCode getEfficiencyScaleFactor(const xAOD::DiTauJet &xDiTau, double &eff, unsigned int iRunNumber=0, unsigned int iMu=0)
Get the ditau Efficiency Scale Factor as a return value.
Definition: DiTauEfficiencyCorrectionsTool.cxx:118
CP::SystematicSet
Class to wrap a set of SystematicVariations.
Definition: SystematicSet.h:31
CommonDiTauEfficiencyTool.h
TauAnalysisTools::DiTauEfficiencyCorrectionsTool::m_bIsConfigured
bool m_bIsConfigured
Definition: DiTauEfficiencyCorrectionsTool.h:120
TauAnalysisTools::DiTauEfficiencyCorrectionsTool::applySystematicVariation
virtual StatusCode applySystematicVariation(const CP::SystematicSet &systConfig)
apply systematic variations
Definition: DiTauEfficiencyCorrectionsTool.cxx:188
CP::SystematicVariation
Definition: SystematicVariation.h:47
ITauEfficiencyCorrectionsTool.h
TauAnalysisTools::DiTauEfficiencyCorrectionsTool::m_sVarNameJetIDHadTau
std::string m_sVarNameJetIDHadTau
Definition: DiTauEfficiencyCorrectionsTool.h:116
TauAnalysisTools::DiTauEfficiencyCorrectionsTool::~DiTauEfficiencyCorrectionsTool
~DiTauEfficiencyCorrectionsTool()
Definition: DiTauEfficiencyCorrectionsTool.cxx:41
TauAnalysisTools::DiTauEfficiencyCorrectionsTool::printConfig
virtual void printConfig() const
Print tool configuration.
Definition: DiTauEfficiencyCorrectionsTool.cxx:106
TauAnalysisTools::DiTauEfficiencyCorrectionsTool::m_bSkipTruthMatchCheck
bool m_bSkipTruthMatchCheck
Definition: DiTauEfficiencyCorrectionsTool.h:118
TauAnalysisTools::DiTauEfficiencyCorrectionsTool::affectingSystematics
virtual CP::SystematicSet affectingSystematics() const
returns: the list of all systematics this tool can be affected by
Definition: DiTauEfficiencyCorrectionsTool.cxx:167
TauAnalysisTools::DiTauEfficiencyCorrectionsTool::ConvertJetIDToString
std::string ConvertJetIDToString(const int iLevel) const
Definition: DiTauEfficiencyCorrectionsTool.cxx:229
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
TauAnalysisTools::DiTauEfficiencyCorrectionsTool::m_vEfficiencyCorrectionTypes
std::vector< int > m_vEfficiencyCorrectionTypes
Definition: DiTauEfficiencyCorrectionsTool.h:113
TauAnalysisTools::DiTauEfficiencyCorrectionsTool::recommendedSystematics
virtual CP::SystematicSet recommendedSystematics() const
returns: the list of all systematics this tool recommends to use
Definition: DiTauEfficiencyCorrectionsTool.cxx:177
TauAnalysisTools::DiTauEfficiencyCorrectionsTool::applyEfficiencyScaleFactor
virtual CP::CorrectionCode applyEfficiencyScaleFactor(const xAOD::DiTauJet &xDiTau, unsigned int iRunNumber=0, unsigned int iMu=0)
decorate the ditau jet with eff scale factor
Definition: DiTauEfficiencyCorrectionsTool.cxx:138
AnaToolHandle.h
TauAnalysisTools::DiTauEfficiencyCorrectionsTool::m_bIsData
bool m_bIsData
Definition: DiTauEfficiencyCorrectionsTool.h:119
TauAnalysisTools::DiTauEfficiencyCorrectionsTool::initialize
virtual StatusCode initialize()
Function initialising the tool.
Definition: DiTauEfficiencyCorrectionsTool.cxx:49
TauAnalysisTools::DiTauEfficiencyCorrectionsTool
Definition: DiTauEfficiencyCorrectionsTool.h:32
asg::AsgMetadataTool
Base class for dual-use tools that provide file metadata access.
Definition: AsgMetadataTool.h:48
TauAnalysisTools::DiTauEfficiencyCorrectionsTool::m_iJetIDLevel
int m_iJetIDLevel
Definition: DiTauEfficiencyCorrectionsTool.h:121
TauAnalysisTools::DiTauEfficiencyCorrectionsTool::isAffectedBySystematic
virtual bool isAffectedBySystematic(const CP::SystematicVariation &systematic) const
returns whether this tool is affected by the given systematic
Definition: DiTauEfficiencyCorrectionsTool.cxx:157
ASG_TOOL_CLASS
#define ASG_TOOL_CLASS(CLASSNAME, INT1)
Definition: AsgToolMacros.h:68
AsgMetadataTool.h
CP::CorrectionCode
Return value from object correction CP tools.
Definition: CorrectionCode.h:31
xAOD::DiTauJet_v1
Definition: DiTauJet_v1.h:31
TauAnalysisTools::DiTauEfficiencyCorrectionsTool::initializeTools_2017_moriond
StatusCode initializeTools_2017_moriond()
Initialize Moriond 2017 recommendations.
Definition: DiTauEfficiencyCorrectionsTool.cxx:201
TauAnalysisTools::DiTauEfficiencyCorrectionsTool::isSupportedRunNumber
virtual bool isSupportedRunNumber(int) const
check if run number is supperted in recommendations
Definition: DiTauEfficiencyCorrectionsTool.h:98
dqt_zlumi_alleff_HIST.eff
int eff
Definition: dqt_zlumi_alleff_HIST.py:113
TauAnalysisTools::DiTauEfficiencyCorrectionsTool::m_sRecommendationTag
std::string m_sRecommendationTag
Definition: DiTauEfficiencyCorrectionsTool.h:117
TauAnalysisTools::DiTauEfficiencyCorrectionsTool::m_vCommonEfficiencyTools
std::vector< asg::AnaToolHandle< IDiTauEfficiencyCorrectionsTool > * > m_vCommonEfficiencyTools
Definition: DiTauEfficiencyCorrectionsTool.h:114