45 ATH_MSG_INFO(
"Initializing DiTauEfficiencyCorrectionsTool" );
48 ATH_MSG_WARNING(
"Truth match check will be skipped. This is ONLY FOR TESTING PURPOSE!");
55 return StatusCode::FAILURE;
60 ATH_CHECK((**it).setProperty(
"OutputLevel", this->msg().level()));
69 return StatusCode::FAILURE;
74 return StatusCode::SUCCESS;
89 return StatusCode::SUCCESS;
96 ATH_MSG_DEBUG(
"DiTauEfficiencyCorrectionsTool with name " << name() <<
" is configured as follows:" );
98 ATH_MSG_DEBUG(
" EfficiencyCorrectionTypes " << iEfficiencyCorrectionType );
116 double dToolEff = 1.;
117 CP::CorrectionCode tmpCorrectionCode = (**it)->getEfficiencyScaleFactor(xDiTau, dToolEff);
119 return tmpCorrectionCode;
136 return tmpCorrectionCode;
147 if ((**it)->isAffectedBySystematic(systematic))
158 sAffectingSystematics.
insert((**it)->affectingSystematics());
159 return sAffectingSystematics;
169 sRecommendedSystematics.
insert((**it)->recommendedSystematics());
171 return sRecommendedSystematics;
178 if ((**it)->applySystematicVariation(sSystematicSet) == StatusCode::FAILURE)
180 return StatusCode::FAILURE;
182 return StatusCode::SUCCESS;
190 std::string sDirectory =
"TauAnalysisTools/" + std::string(
sSharedFilesVersion) +
"/EfficiencyCorrections/";
197 sDirectory =
"TauAnalysisTools/00-04-00/EfficiencyCorrections/";
212 ATH_MSG_WARNING(
"unsupported EfficiencyCorrectionsType with enum " << iEfficiencyCorrectionType);
215 return StatusCode::SUCCESS;
224 return "ditaureconstruction";
227 return "jetbdtsigveryloose";
230 return "jetbdtsigloose";
233 return "jetbdtsigmedium";
236 return "jetbdtsigtight";
239 assert(
false &&
"No valid ID level passed. Breaking up ...");
#define ATH_CHECK
Evaluate an expression and check for errors.
#define ATH_MSG_WARNING(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.
StatusCode registerSystematics(const IReentrantSystematicsTool &tool)
effects: register all the systematics from the tool
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.