ATLAS Offline Software
Loading...
Searching...
No Matches
TauAnalysisTools::CommonEfficiencyTool Class Reference

#include <CommonEfficiencyTool.h>

Inheritance diagram for TauAnalysisTools::CommonEfficiencyTool:

Classes

struct  Accessors

Public Member Functions

 CommonEfficiencyTool (const std::string &sName)
 Create a proper constructor for Athena.
 ~CommonEfficiencyTool ()
virtual StatusCode initialize () override
 Dummy implementation of the initialisation function.
virtual CP::CorrectionCode getEfficiencyScaleFactor (const xAOD::TauJet &tau, double &dEfficiencyScaleFactor, unsigned int iRunNumber=0) override
 Declare the interface that the class provides.
CP::CorrectionCode getEfficiencyScaleFactor (columnar::TauJetId tau, double &dEfficiencyScaleFactor, unsigned int iRunNumber) const
virtual CP::CorrectionCode applyEfficiencyScaleFactor (const xAOD::TauJet &xTau, unsigned int iRunNumber=0) override
 Decorate the tau with its efficiency.
virtual bool isAffectedBySystematic (const CP::SystematicVariation &systematic) const override
 returns: whether this tool is affected by the given systematics
virtual CP::SystematicSet affectingSystematics () const override
 returns: the list of all systematics this tool can be affected by
virtual CP::SystematicSet recommendedSystematics () const override
 returns: the list of all systematics this tool recommends to use
virtual StatusCode applySystematicVariation (const CP::SystematicSet &sSystematicSet) override
 configure this tool for the given list of systematic variations.
virtual bool isSupportedRunNumber (int) const override
 check if run number is supported in recommendations
void callSingleEvent (columnar::TauJetRange taus, columnar::EventInfoId event) const
void callEvents (columnar::EventContextRange events) const override
virtual void print () const
 Print the state of the tool.
ServiceHandle< StoreGateSvc > & evtStore ()
 The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc.
const ServiceHandle< StoreGateSvc > & detStore () const
 The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc.
virtual StatusCode sysInitialize () override
 Perform system initialization for an algorithm.
virtual StatusCode sysStart () override
 Handle START transition.
virtual std::vector< Gaudi::DataHandle * > inputHandles () const override
 Return this algorithm's input handles.
virtual std::vector< Gaudi::DataHandle * > outputHandles () const override
 Return this algorithm's output handles.
Gaudi::Details::PropertyBase & declareProperty (Gaudi::Property< T, V, H > &t)
void updateVHKA (Gaudi::Details::PropertyBase &)
MsgStream & msg () const
bool msgLvl (const MSG::Level lvl) const
Additional helper functions, not directly mimicking Athena
template<class T>
const T * getProperty (const std::string &name) const
 Get one of the tool's properties.
const std::string & msg_level_name () const __attribute__((deprecated))
 A deprecated function for getting the message level's name.
const std::string & getName (const void *ptr) const
 Get the name of an object that is / should be in the event store.
SG::sgkey_t getKey (const void *ptr) const
 Get the (hashed) key of an object that is in the event store.

Public Attributes

std::unique_ptr< Accessorsm_accessors

Protected Types

typedef std::tuple< TObject *, CP::CorrectionCode(*)(const TObject *oObject, double &dEfficiencyScaleFactor, double dVars[]) > tTupleObjectFunc
typedef std::map< std::string, tTupleObjectFunctSFMAP

Protected Member Functions

std::string ConvertProngToString (const int iProngness) const
std::string ConvertDecayModeToString (const int iDecayMode) const
void ReadInputs (const TFile &fFile)
void addHistogramToSFMap (TKey *kKey, const std::string &sKeyName)
virtual CP::CorrectionCode getValue (const std::string &sHistName, columnar::TauJetId tau, double &dEfficiencyScaleFactor) const
void generateSystematicSets ()
void renounceArray (SG::VarHandleKeyArray &handlesArray)
 remove all handles from I/O resolution
std::enable_if_t< std::is_void_v< std::result_of_t< decltype(&T::renounce)(T)> > &&!std::is_base_of_v< SG::VarHandleKeyArray, T > &&std::is_base_of_v< Gaudi::DataHandle, T >, void > renounce (T &h)
void extraDeps_update_handler (Gaudi::Details::PropertyBase &ExtraDeps)
 Add StoreName to extra input/output deps as needed.

Static Protected Member Functions

static CP::CorrectionCode getValueTH1 (const TObject *oObject, double &dEfficiencyScaleFactor, double dVars[])
static CP::CorrectionCode getValueTH2 (const TObject *oObject, double &dEfficiencyScaleFactor, double dVars[])
static CP::CorrectionCode getValueTF1 (const TObject *oObject, double &dEfficiencyScaleFactor, double dVars[])

Protected Attributes

std::unique_ptr< tSFMAPm_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
std::function< double(const xAOD::TauJet &xTau)> m_fX
std::function< double(const xAOD::TauJet &xTau)> m_fY
CP::SystematicSet m_sAffectingSystematics
CP::SystematicSet m_sRecommendedSystematics
Gaudi::Property< std::string > m_sInputFilePath {this, "InputFilePath", ""}
Gaudi::Property< std::string > m_sVarName {this, "VarName", ""}
Gaudi::Property< std::string > m_sWP {this, "WP", ""}
Gaudi::Property< bool > m_bSkipTruthMatchCheck {this, "SkipTruthMatchCheck", false}
Gaudi::Property< int > m_iJetIDLevel {this, "JetIDLevel", static_cast<int>(JETIDNONE)}
Gaudi::Property< int > m_iEleIDLevel {this, "EleIDLevel", static_cast<int>(ELEIDNONE)}
Gaudi::Property< bool > m_bUseTauSubstructure {this, "UseTauSubstructure", false}
Gaudi::Property< bool > m_doTauTrig {this, "DoTauTrig", false}
std::string m_sInputFileName
std::string m_sSFHistName
bool m_bNoMultiprong
TruthMatchedParticleType m_eCheckTruth
bool m_bSFIsAvailable
bool m_bSFIsAvailableChecked

Private Types

typedef ServiceHandle< StoreGateSvcStoreGateSvc_t

Private Member Functions

Gaudi::Details::PropertyBase & declareGaudiProperty (Gaudi::Property< T, V, H > &hndl, const SG::VarHandleKeyType &)
 specialization for handling Gaudi::Property<SG::VarHandleKey>

Private Attributes

StoreGateSvc_t m_evtStore
 Pointer to StoreGate (event store by default).
StoreGateSvc_t m_detStore
 Pointer to StoreGate (detector store by default).
std::vector< SG::VarHandleKeyArray * > m_vhka
bool m_varHandleArraysDeclared

Detailed Description

Definition at line 44 of file CommonEfficiencyTool.h.

Member Typedef Documentation

◆ StoreGateSvc_t

typedef ServiceHandle<StoreGateSvc> AthCommonDataStore< AthCommonMsg< AlgTool > >::StoreGateSvc_t
privateinherited

Definition at line 388 of file AthCommonDataStore.h.

◆ tSFMAP

typedef std::map<std::string, tTupleObjectFunc > TauAnalysisTools::CommonEfficiencyTool::tSFMAP
protected

Definition at line 99 of file CommonEfficiencyTool.h.

◆ tTupleObjectFunc

typedef std::tuple<TObject*, CP::CorrectionCode (*)(const TObject* oObject, double& dEfficiencyScaleFactor, double dVars[] ) > TauAnalysisTools::CommonEfficiencyTool::tTupleObjectFunc
protected

Definition at line 98 of file CommonEfficiencyTool.h.

Constructor & Destructor Documentation

◆ CommonEfficiencyTool()

CommonEfficiencyTool::CommonEfficiencyTool ( const std::string & sName)

Create a proper constructor for Athena.

Definition at line 68 of file CommonEfficiencyTool.cxx.

69 : asg::AsgTool( sName )
70 , m_mSF(nullptr)
71 , m_sSystematicSet(nullptr)
74 , m_sSFHistName("sf")
75 , m_bNoMultiprong(false)
77 , m_bSFIsAvailable(false)
79 , m_accessors{std::make_unique<Accessors>(*this)}
80{
81}
std::function< double(const xAOD::TauJet &xTau)> m_fY
std::function< double(const xAOD::TauJet &xTau)> m_fX
double finalTauEta(const xAOD::TauJet &xTau)
return MVA based tau eta
double finalTauPt(const xAOD::TauJet &xTau)
return MVA based tau pt in GeV

◆ ~CommonEfficiencyTool()

CommonEfficiencyTool::~CommonEfficiencyTool ( )

Definition at line 86 of file CommonEfficiencyTool.cxx.

87{
88 if (m_mSF)
89 for (auto mEntry : *m_mSF)
90 delete std::get<0>(mEntry.second);
91}

Member Function Documentation

◆ addHistogramToSFMap()

void CommonEfficiencyTool::addHistogramToSFMap ( TKey * kKey,
const std::string & sKeyName )
protected

Definition at line 524 of file CommonEfficiencyTool.cxx.

525{
526 // handling for the 3 different input types TH1F/TH1D/TF1, function pointer
527 // handle the access methods for the final scale factor retrieval
528 TClass *cClass = gROOT->GetClass(kKey->GetClassName());
529 if (cClass->InheritsFrom("TH2"))
530 {
531 TH1* oObject = (TH1*)kKey->ReadObj();
532 oObject->SetDirectory(0);
533 (*m_mSF)[sKeyName] = tTupleObjectFunc(oObject,&getValueTH2);
534 ATH_MSG_DEBUG("added histogram with name "<<sKeyName);
535 }
536 else if (cClass->InheritsFrom("TH1"))
537 {
538 TH1* oObject = (TH1*)kKey->ReadObj();
539 oObject->SetDirectory(0);
540 (*m_mSF)[sKeyName] = tTupleObjectFunc(oObject,&getValueTH1);
541 ATH_MSG_DEBUG("added histogram with name "<<sKeyName);
542 }
543 else if (cClass->InheritsFrom("TF1"))
544 {
545 TObject* oObject = kKey->ReadObj();
546 (*m_mSF)[sKeyName] = tTupleObjectFunc(oObject,&getValueTF1);
547 ATH_MSG_DEBUG("added function with name "<<sKeyName);
548 }
549 else
550 {
551 ATH_MSG_DEBUG("ignored object with name "<<sKeyName);
552 }
553}
#define ATH_MSG_DEBUG(x)
static CP::CorrectionCode getValueTH1(const TObject *oObject, double &dEfficiencyScaleFactor, double dVars[])
std::tuple< TObject *, CP::CorrectionCode(*)(const TObject *oObject, double &dEfficiencyScaleFactor, double dVars[]) > tTupleObjectFunc
static CP::CorrectionCode getValueTH2(const TObject *oObject, double &dEfficiencyScaleFactor, double dVars[])
static CP::CorrectionCode getValueTF1(const TObject *oObject, double &dEfficiencyScaleFactor, double dVars[])

◆ affectingSystematics()

CP::SystematicSet CommonEfficiencyTool::affectingSystematics ( ) const
overridevirtual

returns: the list of all systematics this tool can be affected by

Implements CP::IReentrantSystematicsTool.

Definition at line 328 of file CommonEfficiencyTool.cxx.

329{
331}

◆ applyEfficiencyScaleFactor()

CP::CorrectionCode CommonEfficiencyTool::applyEfficiencyScaleFactor ( const xAOD::TauJet & xTau,
unsigned int iRunNumber = 0 )
overridevirtual

Decorate the tau with its efficiency.

Implements TauAnalysisTools::ITauEfficiencyCorrectionsTool.

Definition at line 284 of file CommonEfficiencyTool.cxx.

286{
287 double dSf = 0.;
288
291 {
292 m_bSFIsAvailable = decor.isAvailable(xTau);
295 {
296 ATH_MSG_DEBUG(m_sVarName << " decoration is available on first tau processed, switched off applyEfficiencyScaleFactor for further taus.");
297 ATH_MSG_DEBUG("If an application of efficiency scale factors needs to be redone, please pass a shallow copy of the original tau.");
298 }
299 }
302
303 // retrieve scale factor
304 CP::CorrectionCode tmpCorrectionCode = getEfficiencyScaleFactor(xTau, dSf, iRunNumber);
305 // adding scale factor to tau as decoration
306 decor(xTau) = dSf;
307
308 return tmpCorrectionCode;
309}
@ Ok
The correction was done successfully.
virtual CP::CorrectionCode getEfficiencyScaleFactor(const xAOD::TauJet &tau, double &dEfficiencyScaleFactor, unsigned int iRunNumber=0) override
Declare the interface that the class provides.
Gaudi::Property< std::string > m_sVarName
SG::Decorator< T, ALLOC > Decorator
Helper class to provide type-safe access to aux data, specialized for JaggedVecElt.
Definition AuxElement.h:576

◆ applySystematicVariation()

StatusCode CommonEfficiencyTool::applySystematicVariation ( const CP::SystematicSet & sSystematicSet)
overridevirtual

configure this tool for the given list of systematic variations.

any requested systematics that are not affecting this tool will be silently ignored

Implements CP::ISystematicsTool.

Definition at line 353 of file CommonEfficiencyTool.cxx.

354{
355
356 // first check if we already know this systematic configuration
357 auto itSystematicSet = m_mSystematicSets.find(sSystematicSet);
358 if (itSystematicSet != m_mSystematicSets.end())
359 {
360 m_sSystematicSet = &itSystematicSet->first;
361 return StatusCode::SUCCESS;
362 }
363
364 // sanity checks if systematic set is supported
365 double dDirection = 0.;
366 CP::SystematicSet sSystematicSetAvailable;
367 for (auto sSyst : sSystematicSet)
368 {
369 // check if systematic is available
370 auto it = m_mSystematicsHistNames.find(sSyst.basename());
371 if (it == m_mSystematicsHistNames.end())
372 {
373 ATH_MSG_VERBOSE("unsupported systematic variation: "<< sSyst.basename()<<"; skipping this one");
374 continue;
375 }
376
377
378 if (sSyst.parameter() * dDirection < 0)
379 {
380 ATH_MSG_ERROR("unsupported set of systematic variations, you should either use only \"UP\" or only \"DOWN\" systematics in one set!");
381 ATH_MSG_ERROR("systematic set will not be applied");
382 return StatusCode::FAILURE;
383 }
384 dDirection = sSyst.parameter();
385
386 if ((m_sRecommendedSystematics.find(sSyst.basename()) != m_sRecommendedSystematics.end()) and sSystematicSet.size() > 1)
387 {
388 ATH_MSG_ERROR("unsupported set of systematic variations, you should not combine \"TAUS_{TRUE|FAKE}_EFF_*_TOTAL\" with other systematic variations!");
389 ATH_MSG_ERROR("systematic set will not be applied");
390 return StatusCode::FAILURE;
391 }
392
393 // finally add the systematic to the set of systematics to process
394 sSystematicSetAvailable.insert(sSyst);
395 }
396
397 // store this calibration for future use, and make it current
398 m_sSystematicSet = &m_mSystematicSets.insert(std::pair<CP::SystematicSet,std::string>(sSystematicSetAvailable, sSystematicSet.name())).first->first;
399
400 return StatusCode::SUCCESS;
401}
#define ATH_MSG_ERROR(x)
#define ATH_MSG_VERBOSE(x)
void insert(const SystematicVariation &systematic)
description: insert a systematic into the set
std::unordered_map< CP::SystematicSet, std::string > m_mSystematicSets
std::map< std::string, std::string > m_mSystematicsHistNames

◆ callEvents()

void CommonEfficiencyTool::callEvents ( columnar::EventContextRange events) const
override

Definition at line 780 of file CommonEfficiencyTool.cxx.

781{
782 const Accessors& acc = *m_accessors;
783 for (columnar::EventContextId event : events)
784 {
785 auto eventInfo = acc.m_eventInfo(event);
786 callSingleEvent (acc.m_taus(event), eventInfo);
787 }
788}
void callSingleEvent(columnar::TauJetRange taus, columnar::EventInfoId event) const
ObjectId< EventContextDef > EventContextId

◆ callSingleEvent()

void CommonEfficiencyTool::callSingleEvent ( columnar::TauJetRange taus,
columnar::EventInfoId event ) const

Definition at line 748 of file CommonEfficiencyTool.cxx.

749{
750
751 const Accessors& acc = *m_accessors;
752 unsigned int runNumber = 0;
753 if (!acc.randomrunnumber.isAvailable(event)) {
755 "Pileup tool not run before using ElectronEfficiencyTool! SFs do not "
756 "reflect PU distribution in data");
757 return;
758 }
759 runNumber = acc.randomrunnumber(event);
760
761 for (columnar::TauJetId tau : taus)
762 {
763 double sf = 0;
764 switch (getEfficiencyScaleFactor(tau, sf, runNumber).code())
765 {
767 acc.m_sfDec(tau) = sf;
768 acc.m_validDec(tau) = true;
769 break;
771 acc.m_sfDec(tau) = sf;
772 acc.m_validDec(tau) = false;
773 break;
774 default:
775 throw std::runtime_error("Error in getEfficiencyScaleFactor");
776 }
777 }
778}
#define ATH_MSG_WARNING(x)
static Double_t taus
@ OutOfValidityRange
Input object is out of validity range.
ObjectId< TauJetDef > TauJetId
Definition TauJetDef.h:22

◆ ConvertDecayModeToString()

std::string CommonEfficiencyTool::ConvertDecayModeToString ( const int iDecayMode) const
protected

Definition at line 413 of file CommonEfficiencyTool.cxx.

414{
415 switch(iDecayMode)
416 {
418 return "_r1p0n";
420 return "_r1p1n";
422 return "_r1pXn";
424 return "_r3p0n";
426 return "_r3pXn";
427 default:
428 return "";
429 }
430}

◆ ConvertProngToString()

std::string CommonEfficiencyTool::ConvertProngToString ( const int iProngness) const
protected

Definition at line 404 of file CommonEfficiencyTool.cxx.

405{
406 return fProngness == 1 ? "_1p" : "_3p";
407}

◆ declareGaudiProperty()

Gaudi::Details::PropertyBase & AthCommonDataStore< AthCommonMsg< AlgTool > >::declareGaudiProperty ( Gaudi::Property< T, V, H > & hndl,
const SG::VarHandleKeyType &  )
inlineprivateinherited

specialization for handling Gaudi::Property<SG::VarHandleKey>

Definition at line 156 of file AthCommonDataStore.h.

158 {
160 hndl.value(),
161 hndl.documentation());
162
163 }
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T, V, H > &t)

◆ declareProperty()

Gaudi::Details::PropertyBase & AthCommonDataStore< AthCommonMsg< AlgTool > >::declareProperty ( Gaudi::Property< T, V, H > & t)
inlineinherited

Definition at line 145 of file AthCommonDataStore.h.

145 {
146 typedef typename SG::HandleClassifier<T>::type htype;
148 }
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T, V, H > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>

◆ detStore()

const ServiceHandle< StoreGateSvc > & AthCommonDataStore< AthCommonMsg< AlgTool > >::detStore ( ) const
inlineinherited

The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc.

Definition at line 95 of file AthCommonDataStore.h.

◆ evtStore()

ServiceHandle< StoreGateSvc > & AthCommonDataStore< AthCommonMsg< AlgTool > >::evtStore ( )
inlineinherited

The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc.

Definition at line 85 of file AthCommonDataStore.h.

◆ extraDeps_update_handler()

void AthCommonDataStore< AthCommonMsg< AlgTool > >::extraDeps_update_handler ( Gaudi::Details::PropertyBase & ExtraDeps)
protectedinherited

Add StoreName to extra input/output deps as needed.

use the logic of the VarHandleKey to parse the DataObjID keys supplied via the ExtraInputs and ExtraOuputs Properties to add the StoreName if it's not explicitly given

◆ generateSystematicSets()

void CommonEfficiencyTool::generateSystematicSets ( )
protected

Definition at line 569 of file CommonEfficiencyTool.cxx.

570{
571 // creation of basic string for all NPs, e.g. "TAUS_TRUEHADTAU_EFF_RECO_"
572 std::vector<std::string> vSplitInputFilePath = {};
573 split(m_sInputFileName,'_',vSplitInputFilePath);
574 std::string sEfficiencyType = vSplitInputFilePath.at(0);
575 std::string sTruthType = vSplitInputFilePath.at(1);
576 std::transform(sEfficiencyType.begin(), sEfficiencyType.end(), sEfficiencyType.begin(), toupper);
577 std::transform(sTruthType.begin(), sTruthType.end(), sTruthType.begin(), toupper);
578 std::string sSystematicBaseString = "TAUS_"+sTruthType+"_EFF_"+sEfficiencyType+"_";
579
580 // set truth type to check for in truth matching
581 if (sTruthType=="TRUEHADTAU") m_eCheckTruth = TauAnalysisTools::TruthHadronicTau;
582 else if (sTruthType=="TRUEELECTRON") m_eCheckTruth = TauAnalysisTools::TruthElectron;
583 // 3p eVeto, still need this to be measurable in T&P
584 if (sEfficiencyType=="ELERNN" || sEfficiencyType=="ELEOLR") m_bNoMultiprong = true;
585
586 for (auto mSF : *m_mSF)
587 {
588 // parse for nuisance parameter in histogram name
589 std::vector<std::string> vSplitNP = {};
590 split(mSF.first,'_',vSplitNP);
591 std::string sNP = vSplitNP.at(0);
592 std::string sNPUppercase = vSplitNP.at(0);
593
594 // skip nominal scale factors
595 if (sNP == "sf") continue;
596
597 // skip if 3p histogram to avoid duplications (TODO: come up with a better solution)
598 //if (mSF.first.find("_3p") != std::string::npos) continue;
599
600 // test if NP starts with a capital letter indicating that this should be recommended
601 bool bIsRecommended = false;
602 if (isupper(sNP.at(0)) || isupper(sNP.at(1)))
603 bIsRecommended = true;
604
605 // make sNP uppercase and build final NP entry name
606 std::transform(sNPUppercase.begin(), sNPUppercase.end(), sNPUppercase.begin(), toupper);
607 std::string sSystematicString = sSystematicBaseString+sNPUppercase;
608
609 // add all found systematics to the AffectingSystematics
610 m_sAffectingSystematics.insert(CP::SystematicVariation (sSystematicString, 1));
611 m_sAffectingSystematics.insert(CP::SystematicVariation (sSystematicString, -1));
612 // only add found uppercase systematics to the RecommendedSystematics
613 if (bIsRecommended)
614 {
615 m_sRecommendedSystematics.insert(CP::SystematicVariation (sSystematicString, 1));
616 m_sRecommendedSystematics.insert(CP::SystematicVariation (sSystematicString, -1));
617 }
618
619 ATH_MSG_DEBUG("connected base name " << sNP << " with systematic " <<sSystematicString);
620 m_mSystematicsHistNames.insert({sSystematicString,sNP});
621 }
622}
void split(const std::string &sInput, const char cDelim, std::vector< std::string > &vOut)

◆ getEfficiencyScaleFactor() [1/2]

CP::CorrectionCode CommonEfficiencyTool::getEfficiencyScaleFactor ( columnar::TauJetId tau,
double & dEfficiencyScaleFactor,
unsigned int iRunNumber ) const

Definition at line 150 of file CommonEfficiencyTool.cxx.

152{
153 const Accessors& acc = *m_accessors;
154
155 // check which true state is requested
156 // need columnar migration
157 if (!m_bSkipTruthMatchCheck and getTruthParticleType(tau.getXAODObject()) != m_eCheckTruth)
158 {
159 dEfficiencyScaleFactor = 1.;
161 }
162
163 // need columnar migration
164 int ntracks = tau.getXAODObject().nTracks();
165
166 // check if 1 prong
167 if (m_bNoMultiprong && ntracks != 1)
168 {
169 dEfficiencyScaleFactor = 1.;
171 }
172
173 // get decay mode or prong extension for histogram name
174 std::string sMode;
176 {
177 int iDecayMode = acc.m_decayMode(tau);
178 sMode = ConvertDecayModeToString(iDecayMode);
179 if (sMode.empty())
180 {
181 ATH_MSG_WARNING("Found tau with unknown decay mode. Skip efficiency correction.");
183 }
184 }
185 else
186 {
187 // skip taus which are not 1 or 3 prong
188 if( ntracks != 1 && ntracks != 3) {
189 dEfficiencyScaleFactor = 1.;
191 }
192
193 sMode = ConvertProngToString(ntracks);
194 }
195
196 std::string sHistName;
197 if(m_doTauTrig){
198 sHistName = "sf_all_"+m_sWP+sMode;
199 } else {
200 sHistName = m_sSFHistName + sMode;
201 }
202
203 // get standard scale factor
204 CP::CorrectionCode tmpCorrectionCode = getValue(sHistName,
205 tau,
206 dEfficiencyScaleFactor);
207 // return correction code if histogram is not available
208 if (tmpCorrectionCode != CP::CorrectionCode::Ok)
209 return tmpCorrectionCode;
210
211 // skip further process if systematic set is empty
212 if (m_sSystematicSet->empty())
214
215 // get uncertainties summed in quadrature
216 double dTotalSystematic2 = 0.;
217 double dDirection = 0.;
218 for (auto syst : *m_sSystematicSet)
219 {
220 // check if systematic is available
221 auto it = m_mSystematicsHistNames.find(syst.basename());
222
223 // get uncertainty value
224 double dUncertaintySyst = 0.;
225
226 // needed for up/down decision
227 dDirection = syst.parameter();
228
229 // build up histogram name
230 sHistName = it->second;
231 if (dDirection>0.) sHistName+="_up";
232 else sHistName+="_down";
233
234 if(m_doTauTrig){ sHistName+="_all"; }
235
236 if (!m_sWP.empty()) sHistName+="_"+m_sWP;
237 sHistName += sMode;
238
239
240 // filter unwanted combinations
241 if( (sHistName.find("3P") != std::string::npos && sHistName.find("1p") != std::string::npos) ||
242 (sHistName.find("1P") != std::string::npos && sHistName.find("3p") != std::string::npos))
243 continue;
244
245 if( (sHistName.find("1520") != std::string::npos && sHistName.find("loose") != std::string::npos) ){
246 continue;
247 }
248
249 // get the uncertainty from the histogram
250 tmpCorrectionCode = getValue(sHistName,
251 tau,
252 dUncertaintySyst);
253
254 // return correction code if histogram is not available
255 if (tmpCorrectionCode != CP::CorrectionCode::Ok)
256 return tmpCorrectionCode;
257
258 // scale uncertainty with direction, i.e. +/- n*sigma
259 dUncertaintySyst *= dDirection;
260
261 // square uncertainty and add to total uncertainty
262 dTotalSystematic2 += dUncertaintySyst * dUncertaintySyst;
263 }
264
265 // now use dDirection to use up/down uncertainty
266 dDirection = (dDirection > 0.) ? 1. : -1.;
267
268 // finally apply uncertainty (eff * ( 1 +/- \sum )
269 dEfficiencyScaleFactor *= 1. + dDirection * std::sqrt(dTotalSystematic2);
270
272}
std::string ConvertDecayModeToString(const int iDecayMode) const
virtual CP::CorrectionCode getValue(const std::string &sHistName, columnar::TauJetId tau, double &dEfficiencyScaleFactor) const
std::string ConvertProngToString(const int iProngness) const
TruthMatchedParticleType getTruthParticleType(const xAOD::TauJet &xTau)
return TauJet match type

◆ getEfficiencyScaleFactor() [2/2]

CP::CorrectionCode CommonEfficiencyTool::getEfficiencyScaleFactor ( const xAOD::TauJet & xTau,
double & eff,
unsigned int iRunNumber = 0 )
overridevirtual

Declare the interface that the class provides.

Get the tau efficiency scale factor

Implements TauAnalysisTools::ITauEfficiencyCorrectionsTool.

Definition at line 144 of file CommonEfficiencyTool.cxx.

146{
147 return getEfficiencyScaleFactor(columnar::TauJetId(xTau), dEfficiencyScaleFactor, iRunNumber);
148}

◆ getKey()

SG::sgkey_t asg::AsgTool::getKey ( const void * ptr) const
inherited

Get the (hashed) key of an object that is in the event store.

This is a bit of a special one. StoreGateSvc and xAOD::TEvent both provide ways for getting the SG::sgkey_t key for an object that is in the store, based on a bare pointer. But they provide different interfaces for doing so.

In order to allow tools to efficiently perform this operation, they can use this helper function.

See also
asg::AsgTool::getName
Parameters
ptrThe bare pointer to the object that the event store should know about
Returns
The hashed key of the object in the store. If not found, an invalid (zero) key.

Definition at line 119 of file AsgTool.cxx.

119 {
120
121#ifdef XAOD_STANDALONE
122 // In case we use @c xAOD::TEvent, we have a direct function call
123 // for this.
124 return evtStore()->event()->getKey( ptr );
125#else
126 const SG::DataProxy* proxy = evtStore()->proxy( ptr );
127 return ( proxy == nullptr ? 0 : proxy->sgkey() );
128#endif // XAOD_STANDALONE
129 }
ServiceHandle< StoreGateSvc > & evtStore()

◆ getName()

const std::string & asg::AsgTool::getName ( const void * ptr) const
inherited

Get the name of an object that is / should be in the event store.

This is a bit of a special one. StoreGateSvc and xAOD::TEvent both provide ways for getting the std::string name for an object that is in the store, based on a bare pointer. But they provide different interfaces for doing so.

In order to allow tools to efficiently perform this operation, they can use this helper function.

See also
asg::AsgTool::getKey
Parameters
ptrThe bare pointer to the object that the event store should know about
Returns
The string name of the object in the store. If not found, an empty string.

Definition at line 106 of file AsgTool.cxx.

106 {
107
108#ifdef XAOD_STANDALONE
109 // In case we use @c xAOD::TEvent, we have a direct function call
110 // for this.
111 return evtStore()->event()->getName( ptr );
112#else
113 const SG::DataProxy* proxy = evtStore()->proxy( ptr );
114 static const std::string dummy = "";
115 return ( proxy == nullptr ? dummy : proxy->name() );
116#endif // XAOD_STANDALONE
117 }

◆ getProperty()

template<class T>
const T * asg::AsgTool::getProperty ( const std::string & name) const
inherited

Get one of the tool's properties.

◆ getValue()

CP::CorrectionCode CommonEfficiencyTool::getValue ( const std::string & sHistName,
columnar::TauJetId tau,
double & dEfficiencyScaleFactor ) const
protectedvirtual

Definition at line 629 of file CommonEfficiencyTool.cxx.

632{
633
634
635 const tSFMAP& mSF = *m_mSF;
636 auto it = mSF.find (sHistName);
637 if (it == mSF.end())
638 {
639 ATH_MSG_ERROR("Object with name "<<sHistName<<" was not found in input file.");
640 ATH_MSG_DEBUG("Content of input file");
641 for (auto eEntry : mSF)
642 ATH_MSG_DEBUG(" Entry: "<<eEntry.first);
644 }
645
646 // get a tuple (TObject*,functionPointer) from the scale factor map
647 tTupleObjectFunc tTuple = it->second;
648
649 // get pt and eta (for x and y axis respectively)
650 // need columnar migration
651 double dPt = m_fX(tau.getXAODObject());
652 double dEta = m_fY(tau.getXAODObject());
653
654 double dVars[2] = {dPt, dEta};
655
656 // finally obtain efficiency scale factor from TH1F/TH1D/TF1, by calling the
657 // function pointer stored in the tuple from the scale factor map
658 return (std::get<1>(tTuple))(std::get<0>(tTuple), dEfficiencyScaleFactor, dVars);
659}
@ Error
Some error happened during the object correction.
std::map< std::string, tTupleObjectFunc > tSFMAP
bool dEta(const xAOD::TauJet &tau, const xAOD::CaloVertexedTopoCluster &cluster, float &out)

◆ getValueTF1()

CP::CorrectionCode CommonEfficiencyTool::getValueTF1 ( const TObject * oObject,
double & dEfficiencyScaleFactor,
double dVars[] )
staticprotected

Definition at line 729 of file CommonEfficiencyTool.cxx.

731{
732 double dPt = dVars[0];
733 double dEta = dVars[1];
734
735 const TF1* fFunc = static_cast<const TF1*>(oObject);
736
737 if (!fFunc)
738 {
739 // ATH_MSG_ERROR("Problem with casting TObject of type "<<oObject->ClassName()<<" to TF1");
741 }
742
743 // evaluate TFunction and set scale factor
744 dEfficiencyScaleFactor = fFunc->Eval(dPt, dEta);
746}

◆ getValueTH1()

CP::CorrectionCode CommonEfficiencyTool::getValueTH1 ( const TObject * oObject,
double & dEfficiencyScaleFactor,
double dVars[] )
staticprotected

Definition at line 667 of file CommonEfficiencyTool.cxx.

669{
670 double dPt = dVars[0];
671
672 const TH1* hHist = dynamic_cast<const TH1*>(oObject);
673
674 if (!hHist)
675 {
676 // ATH_MSG_ERROR("Problem with casting TObject of type "<<oObject->ClassName()<<" to TH2F");
678 }
679
680 // protect values from underflow bins
681 dPt = std::max(dPt,hHist->GetXaxis()->GetXmin());
682 // protect values from overflow bins (times .999 to keep it inside last bin)
683 dPt = std::min(dPt,hHist->GetXaxis()->GetXmax() * .999);
684
685 // get bin from TH2 depending on x and y values; finally set the scale factor
686 int iBin = hHist->FindFixBin(dPt);
687 dEfficiencyScaleFactor = hHist->GetBinContent(iBin);
689}

◆ getValueTH2()

CP::CorrectionCode CommonEfficiencyTool::getValueTH2 ( const TObject * oObject,
double & dEfficiencyScaleFactor,
double dVars[] )
staticprotected

Definition at line 697 of file CommonEfficiencyTool.cxx.

699{
700 double dPt = dVars[0];
701 double dEta = dVars[1];
702
703 const TH2* hHist = dynamic_cast<const TH2*>(oObject);
704
705 if (!hHist)
706 {
707 // ATH_MSG_ERROR("Problem with casting TObject of type "<<oObject->ClassName()<<" to TH2F");
709 }
710
711 // protect values from underflow bins
712 dPt = std::max(dPt,hHist->GetXaxis()->GetXmin());
713 dEta = std::max(dEta,hHist->GetYaxis()->GetXmin());
714 // protect values from overflow bins (times .999 to keep it inside last bin)
715 dPt = std::min(dPt,hHist->GetXaxis()->GetXmax() * .999);
716 dEta = std::min(dEta,hHist->GetYaxis()->GetXmax() * .999);
717
718 // get bin from TH2 depending on x and y values; finally set the scale factor
719 int iBin = hHist->FindFixBin(dPt,dEta);
720 dEfficiencyScaleFactor = hHist->GetBinContent(iBin);
722}

◆ initialize()

StatusCode CommonEfficiencyTool::initialize ( void )
overridevirtual

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.

Definition at line 100 of file CommonEfficiencyTool.cxx.

101{
102 ATH_MSG_INFO( "Initializing CommonEfficiencyTool" );
103 // only read in histograms once
104 if (m_mSF==nullptr)
105 {
106 std::string sInputFilePath = PathResolverFindCalibFile(m_sInputFilePath);
107
108 m_mSF = std::make_unique< tSFMAP >();
109 std::unique_ptr< TFile > fSF( TFile::Open( sInputFilePath.c_str(), "READ" ) );
110 if(!fSF)
111 {
112 ATH_MSG_FATAL("Could not open file " << sInputFilePath.c_str());
113 return StatusCode::FAILURE;
114 }
115 ReadInputs(*fSF);
116 fSF->Close();
117 }
118
119 // needed later on in generateSystematicSets(), maybe move it there
120 std::vector<std::string> vInputFilePath;
121 split(m_sInputFilePath,'/',vInputFilePath);
122 m_sInputFileName = vInputFilePath.back();
123
125
126 if (!m_sWP.empty())
127 m_sSFHistName = "sf_"+m_sWP;
128
129 // load empty systematic variation by default
130 if (applySystematicVariation(CP::SystematicSet()) != StatusCode::SUCCESS )
131 return StatusCode::FAILURE;
132
133 ATH_CHECK (initializeColumns());
134
135 return StatusCode::SUCCESS;
136}
#define ATH_CHECK
Evaluate an expression and check for errors.
#define ATH_MSG_FATAL(x)
#define ATH_MSG_INFO(x)
std::string PathResolverFindCalibFile(const std::string &logical_file_name)
Gaudi::Property< std::string > m_sInputFilePath
virtual StatusCode applySystematicVariation(const CP::SystematicSet &sSystematicSet) override
configure this tool for the given list of systematic variations.

◆ inputHandles()

virtual std::vector< Gaudi::DataHandle * > AthCommonDataStore< AthCommonMsg< AlgTool > >::inputHandles ( ) const
overridevirtualinherited

Return this algorithm's input handles.

We override this to include handle instances from key arrays if they have not yet been declared. See comments on updateVHKA.

◆ isAffectedBySystematic()

bool CommonEfficiencyTool::isAffectedBySystematic ( const CP::SystematicVariation & systematic) const
overridevirtual

returns: whether this tool is affected by the given systematics

Implements CP::ISystematicsTool.

Definition at line 317 of file CommonEfficiencyTool.cxx.

318{
319 CP::SystematicSet sys = affectingSystematics();
320 return sys.find(systematic) != sys.end();
321}
virtual CP::SystematicSet affectingSystematics() const override
returns: the list of all systematics this tool can be affected by

◆ isSupportedRunNumber()

virtual bool TauAnalysisTools::CommonEfficiencyTool::isSupportedRunNumber ( int iRunNumber) const
inlineoverridevirtual

check if run number is supported in recommendations

Implements TauAnalysisTools::ITauEfficiencyCorrectionsTool.

Definition at line 85 of file CommonEfficiencyTool.h.

86 {
87 return true;
88 };

◆ msg()

MsgStream & AthCommonMsg< AlgTool >::msg ( ) const
inlineinherited

Definition at line 24 of file AthCommonMsg.h.

24 {
25 return this->msgStream();
26 }

◆ msg_level_name()

const std::string & asg::AsgTool::msg_level_name ( ) const
inherited

A deprecated function for getting the message level's name.

Instead of using this, weirdly named function, user code should get the string name of the current minimum message level (in case they really need it...), with:

MSG::name( msg().level() )

This function's name doesn't follow the ATLAS coding rules, and as such will be removed in the not too distant future.

Returns
The string name of the current minimum message level that's printed

Definition at line 101 of file AsgTool.cxx.

101 {
102
103 return MSG::name( msg().level() );
104 }
MsgStream & msg() const
const std::string & name(Level lvl)
Convenience function for translating message levels to strings.
Definition MsgLevel.cxx:19

◆ msgLvl()

bool AthCommonMsg< AlgTool >::msgLvl ( const MSG::Level lvl) const
inlineinherited

Definition at line 30 of file AthCommonMsg.h.

30 {
31 return this->msgLevel(lvl);
32 }

◆ outputHandles()

virtual std::vector< Gaudi::DataHandle * > AthCommonDataStore< AthCommonMsg< AlgTool > >::outputHandles ( ) const
overridevirtualinherited

Return this algorithm's output handles.

We override this to include handle instances from key arrays if they have not yet been declared. See comments on updateVHKA.

◆ print()

◆ ReadInputs()

void CommonEfficiencyTool::ReadInputs ( const TFile & fFile)
protected

Definition at line 442 of file CommonEfficiencyTool.cxx.

443{
444 m_mSF->clear();
445
446 // initialize function pointer
447 m_fX = &finalTauPt;
448 m_fY = &finalTauEta;
449
450 TKey *kKey;
451 TIter itNext(fFile.GetListOfKeys());
452 while ((kKey = (TKey*)itNext()))
453 {
454 // parse file content for objects of type TNamed, check their title for
455 // known strings and reset funtion pointer
456 std::string sKeyName = kKey->GetName();
457 if (sKeyName == "Xaxis")
458 {
459 TNamed* tObj = (TNamed*)kKey->ReadObj();
460 std::string sTitle = tObj->GetTitle();
461 delete tObj;
462 if (sTitle == "TruthDecayMode")
463 {
465 ATH_MSG_DEBUG("using truth decay mode for x-axis");
466 }
467 if (sTitle == "truth visible pt")
468 {
470 ATH_MSG_DEBUG("using truth visible pT for x-axis");
471 }
472 if (sTitle == "|eta|")
473 {
475 ATH_MSG_DEBUG("using absolute tau eta for x-axis");
476 }
477
478 continue;
479 }
480 else if (sKeyName == "Yaxis")
481 {
482 TNamed* tObj = (TNamed*)kKey->ReadObj();
483 std::string sTitle = tObj->GetTitle();
484 delete tObj;
485 if (sTitle == "|eta|")
486 {
488 ATH_MSG_DEBUG("using absolute tau eta for y-axis");
489 }
490 else if (sTitle == "truth |eta|")
491 {
493 ATH_MSG_DEBUG("using absolute truth tau eta for y-axis");
494 }
495 continue;
496 }
497
498 std::vector<std::string> vSplitName = {};
499 split(sKeyName,'_',vSplitName);
500 if (vSplitName[0] == "sf")
501 {
502 addHistogramToSFMap(kKey, sKeyName);
503 }
504 else
505 {
506 // std::string sDirection = vSplitName[1];
507 if (sKeyName.find("_up_") != std::string::npos or sKeyName.find("_down_") != std::string::npos)
508 addHistogramToSFMap(kKey, sKeyName);
509 else
510 {
511 size_t iPos = sKeyName.find('_');
512 addHistogramToSFMap(kKey, sKeyName.substr(0,iPos)+"_up"+sKeyName.substr(iPos));
513 addHistogramToSFMap(kKey, sKeyName.substr(0,iPos)+"_down"+sKeyName.substr(iPos));
514 }
515 }
516 }
517 ATH_MSG_INFO("data loaded from " << fFile.GetName());
518}
void addHistogramToSFMap(TKey *kKey, const std::string &sKeyName)
double finalTauAbsEta(const xAOD::TauJet &xTau)
return MVA based absolute tau eta
double truthVisTauPt(const xAOD::TauJet &xTau)
return truth match visible tau pt in GeV (if hadronic truth tau match)
double truthTauAbsEta(const xAOD::TauJet &xTau)
return truth match tau eta (if hadronic truth tau match)
double truthDecayMode(const xAOD::TauJet &xTau)
return truth decay mode (if hadronic truth tau match)

◆ recommendedSystematics()

CP::SystematicSet CommonEfficiencyTool::recommendedSystematics ( ) const
overridevirtual

returns: the list of all systematics this tool recommends to use

Implements CP::IReentrantSystematicsTool.

Definition at line 337 of file CommonEfficiencyTool.cxx.

338{
340}

◆ renounce()

std::enable_if_t< std::is_void_v< std::result_of_t< decltype(&T::renounce)(T)> > &&!std::is_base_of_v< SG::VarHandleKeyArray, T > &&std::is_base_of_v< Gaudi::DataHandle, T >, void > AthCommonDataStore< AthCommonMsg< AlgTool > >::renounce ( T & h)
inlineprotectedinherited

Definition at line 380 of file AthCommonDataStore.h.

381 {
382 h.renounce();
384 }
std::enable_if_t< std::is_void_v< std::result_of_t< decltype(&T::renounce)(T)> > &&!std::is_base_of_v< SG::VarHandleKeyArray, T > &&std::is_base_of_v< Gaudi::DataHandle, T >, void > renounce(T &h)

◆ renounceArray()

void AthCommonDataStore< AthCommonMsg< AlgTool > >::renounceArray ( SG::VarHandleKeyArray & handlesArray)
inlineprotectedinherited

remove all handles from I/O resolution

Definition at line 364 of file AthCommonDataStore.h.

364 {
366 }

◆ sysInitialize()

virtual StatusCode AthCommonDataStore< AthCommonMsg< AlgTool > >::sysInitialize ( )
overridevirtualinherited

Perform system initialization for an algorithm.

We override this to declare all the elements of handle key arrays at the end of initialization. See comments on updateVHKA.

Reimplemented in asg::AsgMetadataTool, AthCheckedComponent< AthAlgTool >, AthCheckedComponent<::AthAlgTool >, and DerivationFramework::CfAthAlgTool.

◆ sysStart()

virtual StatusCode AthCommonDataStore< AthCommonMsg< AlgTool > >::sysStart ( )
overridevirtualinherited

Handle START transition.

We override this in order to make sure that conditions handle keys can cache a pointer to the conditions container.

◆ updateVHKA()

void AthCommonDataStore< AthCommonMsg< AlgTool > >::updateVHKA ( Gaudi::Details::PropertyBase & )
inlineinherited

Definition at line 308 of file AthCommonDataStore.h.

308 {
309 // debug() << "updateVHKA for property " << p.name() << " " << p.toString()
310 // << " size: " << m_vhka.size() << endmsg;
311 for (auto &a : m_vhka) {
313 for (auto k : keys) {
314 k->setOwner(this);
315 }
316 }
317 }
std::vector< SG::VarHandleKeyArray * > m_vhka

Member Data Documentation

◆ m_accessors

std::unique_ptr<Accessors> TauAnalysisTools::CommonEfficiencyTool::m_accessors

Definition at line 180 of file CommonEfficiencyTool.h.

◆ m_bNoMultiprong

bool TauAnalysisTools::CommonEfficiencyTool::m_bNoMultiprong
protected

Definition at line 155 of file CommonEfficiencyTool.h.

◆ m_bSFIsAvailable

bool TauAnalysisTools::CommonEfficiencyTool::m_bSFIsAvailable
protected

Definition at line 159 of file CommonEfficiencyTool.h.

◆ m_bSFIsAvailableChecked

bool TauAnalysisTools::CommonEfficiencyTool::m_bSFIsAvailableChecked
protected

Definition at line 160 of file CommonEfficiencyTool.h.

◆ m_bSkipTruthMatchCheck

Gaudi::Property<bool> TauAnalysisTools::CommonEfficiencyTool::m_bSkipTruthMatchCheck {this, "SkipTruthMatchCheck", false}
protected

Definition at line 147 of file CommonEfficiencyTool.h.

147{this, "SkipTruthMatchCheck", false};

◆ m_bUseTauSubstructure

Gaudi::Property<bool> TauAnalysisTools::CommonEfficiencyTool::m_bUseTauSubstructure {this, "UseTauSubstructure", false}
protected

Definition at line 150 of file CommonEfficiencyTool.h.

150{this, "UseTauSubstructure", false};

◆ m_detStore

StoreGateSvc_t AthCommonDataStore< AthCommonMsg< AlgTool > >::m_detStore
privateinherited

Pointer to StoreGate (detector store by default).

Definition at line 393 of file AthCommonDataStore.h.

◆ m_doTauTrig

Gaudi::Property<bool> TauAnalysisTools::CommonEfficiencyTool::m_doTauTrig {this, "DoTauTrig", false}
protected

Definition at line 151 of file CommonEfficiencyTool.h.

151{this, "DoTauTrig", false};

◆ m_eCheckTruth

TruthMatchedParticleType TauAnalysisTools::CommonEfficiencyTool::m_eCheckTruth
protected

Definition at line 157 of file CommonEfficiencyTool.h.

◆ m_evtStore

StoreGateSvc_t AthCommonDataStore< AthCommonMsg< AlgTool > >::m_evtStore
privateinherited

Pointer to StoreGate (event store by default).

Definition at line 390 of file AthCommonDataStore.h.

◆ m_fX

std::function<double(const xAOD::TauJet& xTau)> TauAnalysisTools::CommonEfficiencyTool::m_fX
protected

Definition at line 114 of file CommonEfficiencyTool.h.

◆ m_fY

std::function<double(const xAOD::TauJet& xTau)> TauAnalysisTools::CommonEfficiencyTool::m_fY
protected

Definition at line 115 of file CommonEfficiencyTool.h.

◆ m_iEleIDLevel

Gaudi::Property<int> TauAnalysisTools::CommonEfficiencyTool::m_iEleIDLevel {this, "EleIDLevel", static_cast<int>(ELEIDNONE)}
protected

Definition at line 149 of file CommonEfficiencyTool.h.

149{this, "EleIDLevel", static_cast<int>(ELEIDNONE)};

◆ m_iJetIDLevel

Gaudi::Property<int> TauAnalysisTools::CommonEfficiencyTool::m_iJetIDLevel {this, "JetIDLevel", static_cast<int>(JETIDNONE)}
protected

Definition at line 148 of file CommonEfficiencyTool.h.

148{this, "JetIDLevel", static_cast<int>(JETIDNONE)};

◆ m_mSF

std::unique_ptr< tSFMAP > TauAnalysisTools::CommonEfficiencyTool::m_mSF
protected

Definition at line 106 of file CommonEfficiencyTool.h.

◆ m_mSystematics

std::map<std::string, int> TauAnalysisTools::CommonEfficiencyTool::m_mSystematics
protected

Definition at line 111 of file CommonEfficiencyTool.h.

◆ m_mSystematicSets

std::unordered_map< CP::SystematicSet, std::string > TauAnalysisTools::CommonEfficiencyTool::m_mSystematicSets
protected

Definition at line 109 of file CommonEfficiencyTool.h.

◆ m_mSystematicsHistNames

std::map<std::string, std::string> TauAnalysisTools::CommonEfficiencyTool::m_mSystematicsHistNames
protected

Definition at line 112 of file CommonEfficiencyTool.h.

◆ m_sAffectingSystematics

CP::SystematicSet TauAnalysisTools::CommonEfficiencyTool::m_sAffectingSystematics
protected

Definition at line 141 of file CommonEfficiencyTool.h.

◆ m_sInputFileName

std::string TauAnalysisTools::CommonEfficiencyTool::m_sInputFileName
protected

Definition at line 153 of file CommonEfficiencyTool.h.

◆ m_sInputFilePath

Gaudi::Property<std::string> TauAnalysisTools::CommonEfficiencyTool::m_sInputFilePath {this, "InputFilePath", ""}
protected

Definition at line 144 of file CommonEfficiencyTool.h.

144{this, "InputFilePath", ""};

◆ m_sRecommendedSystematics

CP::SystematicSet TauAnalysisTools::CommonEfficiencyTool::m_sRecommendedSystematics
protected

Definition at line 142 of file CommonEfficiencyTool.h.

◆ m_sSFHistName

std::string TauAnalysisTools::CommonEfficiencyTool::m_sSFHistName
protected

Definition at line 154 of file CommonEfficiencyTool.h.

◆ m_sSystematicSet

const CP::SystematicSet* TauAnalysisTools::CommonEfficiencyTool::m_sSystematicSet
protected

Definition at line 110 of file CommonEfficiencyTool.h.

◆ m_sVarName

Gaudi::Property<std::string> TauAnalysisTools::CommonEfficiencyTool::m_sVarName {this, "VarName", ""}
protected

Definition at line 145 of file CommonEfficiencyTool.h.

145{this, "VarName", ""};

◆ m_sWP

Gaudi::Property<std::string> TauAnalysisTools::CommonEfficiencyTool::m_sWP {this, "WP", ""}
protected

Definition at line 146 of file CommonEfficiencyTool.h.

146{this, "WP", ""};

◆ m_varHandleArraysDeclared

bool AthCommonDataStore< AthCommonMsg< AlgTool > >::m_varHandleArraysDeclared
privateinherited

Definition at line 399 of file AthCommonDataStore.h.

◆ m_vhka

std::vector<SG::VarHandleKeyArray*> AthCommonDataStore< AthCommonMsg< AlgTool > >::m_vhka
privateinherited

Definition at line 398 of file AthCommonDataStore.h.


The documentation for this class was generated from the following files: