TauAnalysisTools::CommonEfficiencyTool Class Reference

Inheritance diagram for TauAnalysisTools::CommonEfficiencyTool:
TauAnalysisTools::ITauEfficiencyCorrectionsTool asg::AsgTool asg::IAsgTool CP::ISystematicsTool asg::IAsgTool asg::IAsgTool TauAnalysisTools::TauEfficiencyContJetIDTool TauAnalysisTools::TauEfficiencyEleIDTool TauAnalysisTools::TauEfficiencyJetIDTool TauAnalysisTools::TauEfficiencyTriggerTool

List of all members.

Public Member Functions

 CommonEfficiencyTool (std::string sName)
 Create a proper constructor for Athena.
virtual StatusCode initialize ()
virtual CP::CorrectionCode getEfficiencyScaleFactor (const xAOD::TauJet &tau, double &dEfficiencyScaleFactor)
 Declare the interface that the class provides.
virtual CP::CorrectionCode applyEfficiencyScaleFactor (const xAOD::TauJet &xTau)
 Decorate the tau with its efficiency.
virtual bool isAffectedBySystematic (const CP::SystematicVariation &systematic) const
 returns: whether this tool is affected by the given systematis
virtual CP::SystematicSet affectingSystematics () const
 returns: the list of all systematics this tool can be affected by
virtual CP::SystematicSet recommendedSystematics () const
 returns: the list of all systematics this tool recommends to use
virtual CP::SystematicCode applySystematicVariation (const CP::SystematicSet &sSystematicSet)
virtual bool isSupportedRunNumber (int iRunNumber)

Protected Types

typedef std::tuple< TObject
*, CP::CorrectionCode(*)(const
TObject *oObject, double
&dEfficiencyScaleFactor,
double dPt, double dEta) 
tTupleObjectFunc )
typedef std::map< std::string,
tTupleObjectFunc > 
tSFMAP

Protected Member Functions

std::string ConvertProngToString (const int &iProngness)
void ReadInputs (TFile *fFile)
void addHistogramToSFMap (TKey *kKey, const std::string &sKeyName)
virtual CP::CorrectionCode getValue (const std::string &sHistName, const xAOD::TauJet &xTau, double &dEfficiencyScaleFactor) const
e_TruthMatchedParticleType checkTruthMatch (const xAOD::TauJet &xTau) const
void generateSystematicSets ()

Static Protected Member Functions

static CP::CorrectionCode getValueTH2F (const TObject *oObject, double &dEfficiencyScaleFactor, double dPt, double dEta)
static CP::CorrectionCode getValueTH2D (const TObject *oObject, double &dEfficiencyScaleFactor, double dPt, double dEta)
static CP::CorrectionCode getValueTF1 (const TObject *oObject, double &dEfficiencyScaleFactor, double dPt, double dEta)

Protected Attributes

tSFMAP * m_mSF
std::unordered_map
< CP::SystematicSet,
std::string > 
m_mSystematicSets
const CP::SystematicSetm_sSystematicSet
std::map< std::string, int > m_mSystematics
std::map< std::string,
std::string > 
m_mSystematicsHistNames
double(* m_fX )(const xAOD::TauJet &xTau)
double(* m_fY )(const xAOD::TauJet &xTau)
CP::SystematicSet m_sAffectingSystematics
CP::SystematicSet m_sRecommendedSystematics
std::string m_sInputFilePath
std::string m_sInputFileName
std::string m_sWP
std::string m_sVarName
std::string m_sSFHistName
bool m_bSkipTruthMatchCheck
bool m_bUseHighPtUncert
bool m_bNoMultiprong
bool m_bUseInclusiveEta
int m_iIDLevel
int m_iEVLevel
int m_iOLRLevel
int m_iContSysType
e_TruthMatchedParticleType m_eCheckTruth
bool m_bSFIsAvailable
bool m_bSFIsAvailableChecked
bool m_bPtTauEtaCalibIsAvailable
bool m_bPtTauEtaCalibIsAvailableIsChecked

Member Function Documentation

CP::SystematicCode CommonEfficiencyTool::applySystematicVariation ( const CP::SystematicSet sSystematicSet  )  [virtual]

configure this tool for the given list of systematic variations. any requested systematics that are not affecting this tool will be silently ignored (unless they

Implements CP::ISystematicsTool.

CP::CorrectionCode CommonEfficiencyTool::getEfficiencyScaleFactor ( const xAOD::TauJet xTau,
double &  eff 
) [virtual]

Declare the interface that the class provides.

Get the "tau efficiency" as a return value

Implements TauAnalysisTools::ITauEfficiencyCorrectionsTool.

StatusCode CommonEfficiencyTool::initialize ( void   )  [virtual]

Dummy implementation of the initialisation function

It's here to allow the dual-use tools to skip defining an initialisation function. Since many are doing so...

Reimplemented from asg::AsgTool.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated on 15 Apr 2017 for RootCore Packages by  doxygen 1.6.1