|
ATLAS Offline Software
|
Go to the documentation of this file.
26 :
asg::AsgMetadataTool( sName )
27 , m_vCommonEfficiencyTools()
29 , m_bIsConfigured(false)
52 ATH_MSG_INFO(
"Initializing DiTauEfficiencyCorrectionsTool" );
55 ATH_MSG_WARNING(
"Truth match check will be skipped. This is ONLY FOR TESTING PURPOSE!");
67 return StatusCode::FAILURE;
72 ATH_CHECK((**it).setProperty(
"OutputLevel", this->msg().level()));
78 if (!
registry.registerSystematics(*
this))
81 return StatusCode::FAILURE;
86 return StatusCode::SUCCESS;
101 return StatusCode::SUCCESS;
108 ATH_MSG_DEBUG(
"DiTauEfficiencyCorrectionsTool with name " <<
name() <<
" is configured as follows:" );
110 ATH_MSG_DEBUG(
" EfficiencyCorrectionTypes " << iEfficiencyCorrectionType );
119 double&
eff,
unsigned int ,
unsigned int )
128 double dToolEff = 1.;
129 CP::CorrectionCode tmpCorrectionCode = (**it)->getEfficiencyScaleFactor(xDiTau, dToolEff);
131 return tmpCorrectionCode;
139 unsigned int iRunNumber,
unsigned int iMu)
146 CP::CorrectionCode tmpCorrectionCode = (**it)->applyEfficiencyScaleFactor(xDiTau, iRunNumber, iMu);
149 return tmpCorrectionCode;
160 if ((**it)->isAffectedBySystematic(systematic))
171 sAffectingSystematics.
insert((**it)->affectingSystematics());
172 return sAffectingSystematics;
182 sRecommendedSystematics.
insert((**it)->recommendedSystematics());
184 return sRecommendedSystematics;
191 if ((**it)->applySystematicVariation(sSystematicSet) == StatusCode::FAILURE)
193 return StatusCode::FAILURE;
195 return StatusCode::SUCCESS;
203 std::string sDirectory =
"TauAnalysisTools/" + std::string(sSharedFilesVersion) +
"/EfficiencyCorrections/";
222 ATH_MSG_WARNING(
"unsupported EfficiencyCorrectionsType with enum " << iEfficiencyCorrectionType);
225 return StatusCode::SUCCESS;
234 return "ditaureconstruction";
237 return "jetbdtsigveryloose";
240 return "jetbdtsigloose";
243 return "jetbdtsigmedium";
246 return "jetbdtsigtight";
249 assert(
false &&
"No valid ID level passed. Breaking up ...");
def retrieve(aClass, aKey=None)
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
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.