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< Accessors > m_accessors

Protected Types

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

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< tSFMAP > m_mSF
std::unordered_map< CP::SystematicSet, std::string > m_mSystematicSets
const CP::SystematicSet * m_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}
Gaudi::Property< bool > m_applyToData {this, "ApplyToData", 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< StoreGateSvc > StoreGateSvc_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 71 of file CommonEfficiencyTool.cxx.

72 : asg::AsgTool( sName )
73 , m_mSF(nullptr)
74 , m_sSystematicSet(nullptr)
77 , m_sSFHistName("sf")
78 , m_bNoMultiprong(false)
80 , m_bSFIsAvailable(false)
82 , m_accessors{std::make_unique<Accessors>(*this)}
83{
84}
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 89 of file CommonEfficiencyTool.cxx.

90{
91 if (m_mSF)
92 for (auto mEntry : *m_mSF)
93 delete std::get<0>(mEntry.second);
94}

Member Function Documentation

◆ addHistogramToSFMap()

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

Definition at line 531 of file CommonEfficiencyTool.cxx.

532{
533 // handling for the 3 different input types TH1F/TH1D/TF1, function pointer
534 // handle the access methods for the final scale factor retrieval
535 TClass *cClass = gROOT->GetClass(kKey->GetClassName());
536 if (cClass->InheritsFrom("TH2"))
537 {
538 TH1* oObject = (TH1*)kKey->ReadObj();
539 oObject->SetDirectory(0);
540 (*m_mSF)[sKeyName] = tTupleObjectFunc(oObject,&getValueTH2);
541 ATH_MSG_DEBUG("added histogram with name "<<sKeyName);
542 }
543 else if (cClass->InheritsFrom("TH1"))
544 {
545 TH1* oObject = (TH1*)kKey->ReadObj();
546 oObject->SetDirectory(0);
547 (*m_mSF)[sKeyName] = tTupleObjectFunc(oObject,&getValueTH1);
548 ATH_MSG_DEBUG("added histogram with name "<<sKeyName);
549 }
550 else if (cClass->InheritsFrom("TF1"))
551 {
552 TObject* oObject = kKey->ReadObj();
553 (*m_mSF)[sKeyName] = tTupleObjectFunc(oObject,&getValueTF1);
554 ATH_MSG_DEBUG("added function with name "<<sKeyName);
555 }
556 else
557 {
558 ATH_MSG_DEBUG("ignored object with name "<<sKeyName);
559 }
560}
#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 335 of file CommonEfficiencyTool.cxx.

336{
338}

◆ 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 291 of file CommonEfficiencyTool.cxx.

293{
294 double dSf = 0.;
295
298 {
299 m_bSFIsAvailable = decor.isAvailable(xTau);
302 {
303 ATH_MSG_DEBUG(m_sVarName << " decoration is available on first tau processed, switched off applyEfficiencyScaleFactor for further taus.");
304 ATH_MSG_DEBUG("If an application of efficiency scale factors needs to be redone, please pass a shallow copy of the original tau.");
305 }
306 }
309
310 // retrieve scale factor
311 CP::CorrectionCode tmpCorrectionCode = getEfficiencyScaleFactor(xTau, dSf, iRunNumber);
312 // adding scale factor to tau as decoration
313 decor(xTau) = dSf;
314
315 return tmpCorrectionCode;
316}
@ 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 360 of file CommonEfficiencyTool.cxx.

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

788{
789 const Accessors& acc = *m_accessors;
790 for (columnar::EventContextId event : events)
791 {
792 auto eventInfo = acc.m_eventInfo(event);
793 callSingleEvent (acc.m_taus(event), eventInfo);
794 }
795}
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 755 of file CommonEfficiencyTool.cxx.

756{
757
758 const Accessors& acc = *m_accessors;
759 unsigned int runNumber = 0;
760 if (!acc.randomrunnumber.isAvailable(event)) {
762 "Pileup tool not run before using ElectronEfficiencyTool! SFs do not "
763 "reflect PU distribution in data");
764 return;
765 }
766 runNumber = acc.randomrunnumber(event);
767
768 for (columnar::TauJetId tau : taus)
769 {
770 double sf = 0;
771 switch (getEfficiencyScaleFactor(tau, sf, runNumber).code())
772 {
774 acc.m_sfDec(tau) = sf;
775 acc.m_validDec(tau) = true;
776 break;
778 acc.m_sfDec(tau) = sf;
779 acc.m_validDec(tau) = false;
780 break;
781 default:
782 throw std::runtime_error("Error in getEfficiencyScaleFactor");
783 }
784 }
785}
#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 420 of file CommonEfficiencyTool.cxx.

421{
422 switch(iDecayMode)
423 {
425 return "_r1p0n";
427 return "_r1p1n";
429 return "_r1pXn";
431 return "_r3p0n";
433 return "_r3pXn";
434 default:
435 return "";
436 }
437}

◆ ConvertProngToString()

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

Definition at line 411 of file CommonEfficiencyTool.cxx.

412{
413 return fProngness == 1 ? "_1p" : "_3p";
414}

◆ 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 576 of file CommonEfficiencyTool.cxx.

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

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

◆ 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 147 of file CommonEfficiencyTool.cxx.

149{
150 return getEfficiencyScaleFactor(columnar::TauJetId(xTau), dEfficiencyScaleFactor, iRunNumber);
151}

◆ 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::Event 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::Event, 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::Event 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::Event, 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 636 of file CommonEfficiencyTool.cxx.

639{
640
641
642 const tSFMAP& mSF = *m_mSF;
643 auto it = mSF.find (sHistName);
644 if (it == mSF.end())
645 {
646 ATH_MSG_ERROR("Object with name "<<sHistName<<" was not found in input file.");
647 ATH_MSG_DEBUG("Content of input file");
648 for (const auto & eEntry : mSF)
649 ATH_MSG_DEBUG(" Entry: "<<eEntry.first);
651 }
652
653 // get a tuple (TObject*,functionPointer) from the scale factor map
654 tTupleObjectFunc tTuple = it->second;
655
656 // get pt and eta (for x and y axis respectively)
657 // need columnar migration
658 double dPt = m_fX(tau.getXAODObject());
659 double dEta = m_fY(tau.getXAODObject());
660
661 double dVars[2] = {dPt, dEta};
662
663 // finally obtain efficiency scale factor from TH1F/TH1D/TF1, by calling the
664 // function pointer stored in the tuple from the scale factor map
665 return (std::get<1>(tTuple))(std::get<0>(tTuple), dEfficiencyScaleFactor, dVars);
666}
@ 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 736 of file CommonEfficiencyTool.cxx.

738{
739 double dPt = dVars[0];
740 double dEta = dVars[1];
741
742 const TF1* fFunc = static_cast<const TF1*>(oObject);
743
744 if (!fFunc)
745 {
746 // ATH_MSG_ERROR("Problem with casting TObject of type "<<oObject->ClassName()<<" to TF1");
748 }
749
750 // evaluate TFunction and set scale factor
751 dEfficiencyScaleFactor = fFunc->Eval(dPt, dEta);
753}

◆ getValueTH1()

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

Definition at line 674 of file CommonEfficiencyTool.cxx.

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

◆ getValueTH2()

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

Definition at line 704 of file CommonEfficiencyTool.cxx.

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

◆ 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 103 of file CommonEfficiencyTool.cxx.

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

325{
326 CP::SystematicSet sys = affectingSystematics();
327 return sys.find(systematic) != sys.end();
328}
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 449 of file CommonEfficiencyTool.cxx.

450{
451 m_mSF->clear();
452
453 // initialize function pointer
454 m_fX = &finalTauPt;
455 m_fY = &finalTauEta;
456
457 TKey *kKey;
458 TIter itNext(fFile.GetListOfKeys());
459 while ((kKey = (TKey*)itNext()))
460 {
461 // parse file content for objects of type TNamed, check their title for
462 // known strings and reset funtion pointer
463 std::string sKeyName = kKey->GetName();
464 if (sKeyName == "Xaxis")
465 {
466 TNamed* tObj = (TNamed*)kKey->ReadObj();
467 std::string sTitle = tObj->GetTitle();
468 delete tObj;
469 if (sTitle == "TruthDecayMode")
470 {
472 ATH_MSG_DEBUG("using truth decay mode for x-axis");
473 }
474 if (sTitle == "truth visible pt")
475 {
477 ATH_MSG_DEBUG("using truth visible pT for x-axis");
478 }
479 if (sTitle == "|eta|")
480 {
482 ATH_MSG_DEBUG("using absolute tau eta for x-axis");
483 }
484
485 continue;
486 }
487 else if (sKeyName == "Yaxis")
488 {
489 TNamed* tObj = (TNamed*)kKey->ReadObj();
490 std::string sTitle = tObj->GetTitle();
491 delete tObj;
492 if (sTitle == "|eta|")
493 {
495 ATH_MSG_DEBUG("using absolute tau eta for y-axis");
496 }
497 else if (sTitle == "truth |eta|")
498 {
500 ATH_MSG_DEBUG("using absolute truth tau eta for y-axis");
501 }
502 continue;
503 }
504
505 std::vector<std::string> vSplitName = {};
506 split(sKeyName,'_',vSplitName);
507 if (vSplitName[0] == "sf")
508 {
509 addHistogramToSFMap(kKey, sKeyName);
510 }
511 else
512 {
513 // std::string sDirection = vSplitName[1];
514 if (sKeyName.find("_up_") != std::string::npos or sKeyName.find("_down_") != std::string::npos)
515 addHistogramToSFMap(kKey, sKeyName);
516 else
517 {
518 size_t iPos = sKeyName.find('_');
519 addHistogramToSFMap(kKey, sKeyName.substr(0,iPos)+"_up"+sKeyName.substr(iPos));
520 addHistogramToSFMap(kKey, sKeyName.substr(0,iPos)+"_down"+sKeyName.substr(iPos));
521 }
522 }
523 }
524 ATH_MSG_INFO("data loaded from " << fFile.GetName());
525}
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 344 of file CommonEfficiencyTool.cxx.

345{
347}

◆ 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 >, and AthCheckedComponent<::AthAlgTool >.

◆ 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 187 of file CommonEfficiencyTool.h.

◆ m_applyToData

Gaudi::Property<bool> TauAnalysisTools::CommonEfficiencyTool::m_applyToData {this, "ApplyToData", false}
protected

Definition at line 152 of file CommonEfficiencyTool.h.

152{this, "ApplyToData", false}; // for experts only

◆ m_bNoMultiprong

bool TauAnalysisTools::CommonEfficiencyTool::m_bNoMultiprong
protected

Definition at line 156 of file CommonEfficiencyTool.h.

◆ m_bSFIsAvailable

bool TauAnalysisTools::CommonEfficiencyTool::m_bSFIsAvailable
protected

Definition at line 160 of file CommonEfficiencyTool.h.

◆ m_bSFIsAvailableChecked

bool TauAnalysisTools::CommonEfficiencyTool::m_bSFIsAvailableChecked
protected

Definition at line 161 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 158 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 154 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 155 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: