 |
ATLAS Offline Software
|
Go to the documentation of this file.
26 :
asg::AsgMetadataTool( sName )
27 , m_vCommonEfficiencyTools()
29 , m_bIsConfigured(false)
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()));
66 if (!
registry.registerSystematics(*
this))
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 ...");
def retrieve(aClass, aKey=None)
Class to wrap a set of SystematicVariations.
@ IS_SIMULATION
true: simulation, false: data
ServiceHandle< StoreGateSvc > & evtStore()
The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc.
::StatusCode StatusCode
StatusCode definition for legacy code.
void insert(const SystematicVariation &systematic)
description: insert a systematic into the set
Class describing the basic event information.
@ Ok
The correction was done successfully.
#define ATH_MSG_WARNING(x)
This module implements the central registry for handling systematic uncertainties with CP tools.
Return value from object correction CP tools.
bool eventType(EventType type) const
Check for one particular bitmask value.
static SystematicRegistry & getInstance()
Get the singleton instance of the registry for the curren thread.