43 ATH_MSG_INFO(
"Initializing DiTauEfficiencyCorrectionsTool" );
46 ATH_MSG_WARNING(
"Truth match check will be skipped. This is ONLY FOR TESTING PURPOSE!");
53 return StatusCode::FAILURE;
58 if (!registry.registerSystematics(*
this))
61 return StatusCode::FAILURE;
66 return StatusCode::SUCCESS;
81 return StatusCode::SUCCESS;
88 ATH_MSG_DEBUG(
"DiTauEfficiencyCorrectionsTool with name " << name() <<
" is configured as follows:" );
90 ATH_MSG_DEBUG(
" EfficiencyCorrectionTypes " << iEfficiencyCorrectionType );
106 double dToolEff = 1.;
109 return tmpCorrectionCode;
124 return tmpCorrectionCode;
134 if (
m_tTool->isAffectedBySystematic(systematic))
145 sAffectingSystematics.
insert(
m_tTool->affectingSystematics());
147 return sAffectingSystematics;
155 sRecommendedSystematics.
insert(
m_tTool->recommendedSystematics());
157 return sRecommendedSystematics;
163 if (
m_tTool->applySystematicVariation(sSystematicSet) == StatusCode::FAILURE)
165 ATH_MSG_ERROR(
"failing in appying systematic uncertainty.");
166 return StatusCode::FAILURE;
169 return StatusCode::SUCCESS;
177 std::string sDirectory =
"TauAnalysisTools/" + std::string(
sSharedFilesVersion) +
"/EfficiencyCorrections/";
184 sDirectory =
"TauAnalysisTools/00-04-00/EfficiencyCorrections/";
192 asg::AsgToolConfig config(
"TauAnalysisTools::CommonDiTauEfficiencyTool/JetIDHadTauTool_"+wp);
203 ATH_MSG_WARNING(
"unsupported EfficiencyCorrectionsType with enum " << iEfficiencyCorrectionType);
206 return StatusCode::SUCCESS;
215 return "ditaureconstruction";
218 return "jetbdtsigveryloose";
221 return "jetbdtsigloose";
224 return "jetbdtsigmedium";
227 return "jetbdtsigtight";
230 assert(
false &&
"No valid ID level passed. Breaking up ...");
#define ATH_CHECK
Evaluate an expression and check for errors.
#define ATH_MSG_DEBUG(x,...)
#define ATH_MSG_ERROR(x,...)
#define ATH_MSG_WARNING(x,...)
#define ATH_MSG_INFO(x,...)
#define ATH_MSG_FATAL(x,...)
static const char *const sSharedFilesVersion
Version of the calibration files.
ServiceHandle< StoreGateSvc > & evtStore()
Return value from object correction CP tools.
@ Ok
The correction was done successfully.
This module implements the central registry for handling systematic uncertainties with CP tools.
static SystematicRegistry & getInstance()
Get the singleton instance of the registry for the curren thread.
Class to wrap a set of SystematicVariations.
void insert(const SystematicVariation &systematic)
description: insert a systematic into the set
bool eventType(EventType type) const
Check for one particular bitmask value.
@ IS_SIMULATION
true: simulation, false: data
EventInfo_v1 EventInfo
Definition of the latest event info version.
DiTauJet_v1 DiTauJet
Definition of the current version.