Loading [MathJax]/jax/output/SVG/config.js
ATLAS Offline Software
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
Public Member Functions | Protected Member Functions | Private Types | Private Member Functions | Private Attributes | List of all members
TauAnalysisTools::TauEfficiencyCorrectionsTool Class Referenceabstract

#include <TauEfficiencyCorrectionsTool.h>

Inheritance diagram for TauAnalysisTools::TauEfficiencyCorrectionsTool:
Collaboration diagram for TauAnalysisTools::TauEfficiencyCorrectionsTool:

Public Member Functions

 TauEfficiencyCorrectionsTool (const std::string &sName)
 Create a proper constructor for Athena. More...
 
 ~TauEfficiencyCorrectionsTool ()
 
virtual StatusCode initialize ()
 Function initialising the tool. More...
 
virtual StatusCode beginInputFile ()
 Function called when a new input file is opened. More...
 
virtual void printConfig () const
 Print tool configuration. More...
 
virtual CP::CorrectionCode getEfficiencyScaleFactor (const xAOD::TauJet &xTau, double &eff, unsigned int iRunNumber=0, unsigned int iMu=0)
 Get the tau efficiency scale factor. More...
 
virtual CP::CorrectionCode applyEfficiencyScaleFactor (const xAOD::TauJet &xTau, unsigned int iRunNumber=0, unsigned int iMu=0)
 Decorate the tau with its efficiency scale factor. More...
 
virtual bool isAffectedBySystematic (const CP::SystematicVariation &systematic) const
 returns: whether this tool is affected by the given systematics More...
 
virtual CP::SystematicSet affectingSystematics () const
 returns: the list of all systematics this tool can be affected by More...
 
virtual CP::SystematicSet recommendedSystematics () const
 returns: the list of all systematics this tool recommends to use More...
 
virtual StatusCode applySystematicVariation (const CP::SystematicSet &systConfig)
 effects: configure this tool for the given list of systematic variations. More...
 
virtual bool isSupportedRunNumber (int) const
 check if run number is supported in recommendations More...
 
virtual void print () const =0
 Print the state of the tool. More...
 
virtual StatusCode sysInitialize ()
 Function initialising the tool in the correct way in Athena. More...
 
virtual void print () const
 Print the state of the tool. More...
 
ServiceHandle< StoreGateSvc > & evtStore ()
 The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc. More...
 
const ServiceHandle< StoreGateSvc > & evtStore () const
 The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc. More...
 
const ServiceHandle< StoreGateSvc > & detStore () const
 The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc. More...
 
virtual StatusCode sysStart () override
 Handle START transition. More...
 
virtual std::vector< Gaudi::DataHandle * > inputHandles () const override
 Return this algorithm's input handles. More...
 
virtual std::vector< Gaudi::DataHandle * > outputHandles () const override
 Return this algorithm's output handles. More...
 
Gaudi::Details::PropertyBase & declareProperty (Gaudi::Property< T > &t)
 
Gaudi::Details::PropertyBase * declareProperty (const std::string &name, SG::VarHandleKey &hndl, const std::string &doc, const SG::VarHandleKeyType &)
 Declare a new Gaudi property. More...
 
Gaudi::Details::PropertyBase * declareProperty (const std::string &name, SG::VarHandleBase &hndl, const std::string &doc, const SG::VarHandleType &)
 Declare a new Gaudi property. More...
 
Gaudi::Details::PropertyBase * declareProperty (const std::string &name, SG::VarHandleKeyArray &hndArr, const std::string &doc, const SG::VarHandleKeyArrayType &)
 
Gaudi::Details::PropertyBase * declareProperty (const std::string &name, T &property, const std::string &doc, const SG::NotHandleType &)
 Declare a new Gaudi property. More...
 
Gaudi::Details::PropertyBase * declareProperty (const std::string &name, T &property, const std::string &doc="none")
 Declare a new Gaudi property. More...
 
void updateVHKA (Gaudi::Details::PropertyBase &)
 
MsgStream & msg () const
 
MsgStream & msg (const MSG::Level lvl) const
 
bool msgLvl (const MSG::Level lvl) const
 

Protected Member Functions

void renounceArray (SG::VarHandleKeyArray &handlesArray)
 remove all handles from I/O resolution More...
 
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. More...
 

Private Types

typedef ServiceHandle< StoreGateSvcStoreGateSvc_t
 

Private Member Functions

StatusCode firstEvent ()
 
StatusCode beginEvent ()
 Function called when a new events is loaded. More...
 
std::string ConvertJetIDToString (const int iLevel) const
 
std::string ConvertEleIDToString (const int iLevel) const
 
std::string ConvertTriggerIDToString (const int iLevel) const
 
std::string GetTriggerSFMeasurementString () const
 
StatusCode initializeTools_2022_prerec ()
 
StatusCode initializeTools_2025_prerec ()
 
StatusCode readRandomRunNumber ()
 
Gaudi::Details::PropertyBase & declareGaudiProperty (Gaudi::Property< T > &hndl, const SG::VarHandleKeyType &)
 specialization for handling Gaudi::Property<SG::VarHandleKey> More...
 
Gaudi::Details::PropertyBase & declareGaudiProperty (Gaudi::Property< T > &hndl, const SG::VarHandleKeyArrayType &)
 specialization for handling Gaudi::Property<SG::VarHandleKeyArray> More...
 
Gaudi::Details::PropertyBase & declareGaudiProperty (Gaudi::Property< T > &hndl, const SG::VarHandleType &)
 specialization for handling Gaudi::Property<SG::VarHandleBase> More...
 
Gaudi::Details::PropertyBase & declareGaudiProperty (Gaudi::Property< T > &t, const SG::NotHandleType &)
 specialization for handling everything that's not a Gaudi::Property<SG::VarHandleKey> or a <SG::VarHandleKeyArray> More...
 

Private Attributes

std::vector< int > m_vEfficiencyCorrectionTypes
 
std::vector< asg::AnaToolHandle< ITauEfficiencyCorrectionsTool > * > m_vCommonEfficiencyTools
 
std::vector< asg::AnaToolHandle< ITauEfficiencyCorrectionsTool > * > m_vTriggerEfficiencyTools
 
std::string m_sInputFilePathRecoHadTau
 
std::string m_sInputFilePathJetIDHadTau
 
std::string m_sInputFilePathDecayModeHadTau
 
std::string m_sInputFilePathEleIDHadTau
 
std::string m_sInputFilePathEleIDElectron
 
std::string m_sInputFilePathTriggerHadTau
 
std::string m_sVarNameBase
 
std::string m_sVarNameRecoHadTau
 
std::string m_sVarNameEleIDHadTau
 
std::string m_sVarNameEleIDElectron
 
std::string m_sVarNameJetIDHadTau
 
std::string m_sVarNameDecayModeHadTau
 
std::string m_sVarNameTriggerHadTau
 
std::string m_sRecommendationTag
 
std::string m_sTriggerName
 
std::string m_sTriggerSFMeasurement
 
bool m_bSkipTruthMatchCheck
 
bool m_bUseTauSubstructure
 
bool m_bIsData
 
bool m_bIsConfigured
 
bool m_bReadRandomRunNumber
 
int m_iJetIDLevel
 
int m_iEleIDLevel
 
std::string m_sCampaign
 
bool m_useFastSim
 
bool m_firstEvent = false
 
unsigned int m_iRunNumber
 
unsigned int m_iMu
 
ToolHandle< CP::IPileupReweightingToolm_tPRWTool
 
MetaStore_t m_inputMetaStore
 Object accessing the input metadata store. More...
 
MetaStore_t m_outputMetaStore
 Object accessing the output metadata store. More...
 
bool m_beginInputFileCalled
 Flag helping to discover when the tool misses the opening of the first input file. More...
 
bool m_useIncidents
 
StoreGateSvc_t m_evtStore
 Pointer to StoreGate (event store by default) More...
 
StoreGateSvc_t m_detStore
 Pointer to StoreGate (detector store by default) More...
 
std::vector< SG::VarHandleKeyArray * > m_vhka
 
bool m_varHandleArraysDeclared
 

Detailed Description

Definition at line 31 of file TauEfficiencyCorrectionsTool.h.

Member Typedef Documentation

◆ MetaStore_t

Type of the metadata store object in Athena.

Definition at line 66 of file AsgMetadataTool.h.

◆ MetaStorePtr_t

Type of the metadata store pointer in standalone mode.

Definition at line 68 of file AsgMetadataTool.h.

◆ StoreGateSvc_t

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

Definition at line 388 of file AthCommonDataStore.h.

Constructor & Destructor Documentation

◆ TauEfficiencyCorrectionsTool()

TauAnalysisTools::TauEfficiencyCorrectionsTool::TauEfficiencyCorrectionsTool ( const std::string &  sName)

Create a proper constructor for Athena.

Create a constructor for standalone usage

Definition at line 18 of file TauEfficiencyCorrectionsTool.cxx.

19  : asg::AsgMetadataTool( sName )
22  , m_bIsData(false)
23  , m_bIsConfigured(false)
24  , m_iRunNumber(0)
25  , m_iMu(0)
26  , m_tPRWTool("")
27 {
28  declareProperty( "EfficiencyCorrectionTypes", m_vEfficiencyCorrectionTypes = {} );
29  declareProperty( "InputFilePathRecoHadTau", m_sInputFilePathRecoHadTau = "" );
30  declareProperty( "InputFilePathEleIDHadTau", m_sInputFilePathEleIDHadTau = "" );
31  declareProperty( "InputFilePathEleIDElectron", m_sInputFilePathEleIDElectron = "" );
32  declareProperty( "InputFilePathJetIDHadTau", m_sInputFilePathJetIDHadTau = "" );
33  declareProperty( "InputFilePathTriggerHadTau", m_sInputFilePathTriggerHadTau = "" );
34  declareProperty( "VarNameRecoHadTau", m_sVarNameRecoHadTau = "" );
35  declareProperty( "VarNameEleIDHadTau", m_sVarNameEleIDHadTau = "" );
36  declareProperty( "VarNameEleIDElectron", m_sVarNameEleIDElectron = "" );
37  declareProperty( "VarNameJetIDHadTau", m_sVarNameJetIDHadTau = "" );
38  declareProperty( "VarNameDecayModeHadTau", m_sVarNameDecayModeHadTau = "" );
39  declareProperty( "VarNameTriggerHadTau", m_sVarNameTriggerHadTau = "" );
40  declareProperty( "RecommendationTag", m_sRecommendationTag = "2022-prerec" );
41  declareProperty( "TriggerName", m_sTriggerName = "" );
42  declareProperty( "AutoTriggerYear", m_bReadRandomRunNumber = false );
43  declareProperty( "TriggerSFMeasurement", m_sTriggerSFMeasurement = "combined" ); // "combined", "Ztautau" or "ttbar"
44  declareProperty( "UseTauSubstructure", m_bUseTauSubstructure = false );
45  declareProperty( "JetIDLevel", m_iJetIDLevel = (int)JETIDNONE );
46  declareProperty( "EleIDLevel", m_iEleIDLevel = (int)ELEIDNONE );
47  declareProperty( "Campaign", m_sCampaign = "" ); // MC20, MC23
48  declareProperty( "useFastSim", m_useFastSim = false );
49  declareProperty( "SkipTruthMatchCheck", m_bSkipTruthMatchCheck = false );
50  declareProperty( "PileupReweightingTool", m_tPRWTool );
51 }

◆ ~TauEfficiencyCorrectionsTool()

TauAnalysisTools::TauEfficiencyCorrectionsTool::~TauEfficiencyCorrectionsTool ( )

Definition at line 55 of file TauEfficiencyCorrectionsTool.cxx.

56 {
57  for (auto tTool : m_vCommonEfficiencyTools)
58  delete tTool;
59  for (auto tTool : m_vTriggerEfficiencyTools)
60  delete tTool;
61 }

Member Function Documentation

◆ affectingSystematics()

CP::SystematicSet TauAnalysisTools::TauEfficiencyCorrectionsTool::affectingSystematics ( ) const
virtual

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

Implements CP::IReentrantSystematicsTool.

Definition at line 274 of file TauEfficiencyCorrectionsTool.cxx.

275 {
276  CP::SystematicSet sAffectingSystematics;
277  for (auto it = m_vCommonEfficiencyTools.begin(); it != m_vCommonEfficiencyTools.end(); it++)
278  sAffectingSystematics.insert((**it)->affectingSystematics());
279  for (auto it = m_vTriggerEfficiencyTools.begin(); it != m_vTriggerEfficiencyTools.end(); it++)
280  sAffectingSystematics.insert((**it)->affectingSystematics());
281  return sAffectingSystematics;
282 }

◆ applyEfficiencyScaleFactor()

CP::CorrectionCode TauAnalysisTools::TauEfficiencyCorrectionsTool::applyEfficiencyScaleFactor ( const xAOD::TauJet xTau,
unsigned int  iRunNumber = 0,
unsigned int  iMu = 0 
)
virtual

Decorate the tau with its efficiency scale factor.

Implements TauAnalysisTools::ITauEfficiencyCorrectionsTool.

Definition at line 234 of file TauEfficiencyCorrectionsTool.cxx.

235 {
236  if (m_bIsData)
237  return CP::CorrectionCode::Ok;
238 
241 
242  for (auto it = m_vCommonEfficiencyTools.begin(); it != m_vCommonEfficiencyTools.end(); it++)
243  {
244  CP::CorrectionCode tmpCorrectionCode = (**it)->applyEfficiencyScaleFactor(xTau, m_iRunNumber, m_iMu);
245  if (tmpCorrectionCode != CP::CorrectionCode::Ok)
246  return tmpCorrectionCode;
247  }
248  for (auto it = m_vTriggerEfficiencyTools.begin(); it != m_vTriggerEfficiencyTools.end(); it++)
249  {
250  if ( !(**it)->isSupportedRunNumber(m_iRunNumber) )
251  continue;
252  CP::CorrectionCode tmpCorrectionCode = (**it)->applyEfficiencyScaleFactor(xTau, m_iRunNumber, m_iMu);
253  if (tmpCorrectionCode != CP::CorrectionCode::Ok)
254  return tmpCorrectionCode;
255  }
256  return CP::CorrectionCode::Ok;
257 }

◆ applySystematicVariation()

StatusCode TauAnalysisTools::TauEfficiencyCorrectionsTool::applySystematicVariation ( const CP::SystematicSet systConfig)
virtual

effects: configure this tool for the given list of systematic variations.

any requested systematics that are not affecting this tool will be silently ignored (unless they cause other errors). failures: systematic unknown failures: requesting multiple variations on the same systematic (e.g. up & down) failures: requesting an unsupported variation on an otherwise supported systematic (e.g. a 2 sigma variation and the tool only supports 1 sigma variations) failures: unsupported combination of supported systematic failures: other tool specific errors

Implements CP::ISystematicsTool.

Definition at line 297 of file TauEfficiencyCorrectionsTool.cxx.

298 {
299  for (auto it = m_vCommonEfficiencyTools.begin(); it != m_vCommonEfficiencyTools.end(); it++)
300  if ((**it)->applySystematicVariation(sSystematicSet) == StatusCode::FAILURE)
301  return StatusCode::FAILURE;
302  for (auto it = m_vTriggerEfficiencyTools.begin(); it != m_vTriggerEfficiencyTools.end(); it++)
303  if ((**it)->applySystematicVariation(sSystematicSet) == StatusCode::FAILURE)
304  return StatusCode::FAILURE;
305  return StatusCode::SUCCESS;
306 }

◆ beginEvent()

StatusCode TauAnalysisTools::TauEfficiencyCorrectionsTool::beginEvent ( )
privatevirtual

Function called when a new events is loaded.

Dummy implementation that can be overridden by the derived tool.

Reimplemented from asg::AsgMetadataTool.

Definition at line 134 of file TauEfficiencyCorrectionsTool.cxx.

135 {
136  if (!m_bIsConfigured)
137  {
138  const xAOD::EventInfo* xEventInfo = nullptr;
139  ATH_CHECK(evtStore()->retrieve(xEventInfo,"EventInfo"));
141  m_bIsConfigured = true;
142  }
143 
144  if (!m_firstEvent){
146  m_firstEvent = true;
147 
148  }
149  if (m_bIsData)
150  return StatusCode::SUCCESS;
151 
152  const xAOD::EventInfo* xEventInfo = nullptr;
153  ATH_CHECK(evtStore()->retrieve(xEventInfo, "EventInfo"));
154  m_iMu = xEventInfo->averageInteractionsPerCrossing();
155 
157  {
158  // Reset the number at the beginning of event
159  m_iRunNumber = 0;
160  return StatusCode::SUCCESS;
161  }
162 
163  if (m_tPRWTool.empty())
164  return StatusCode::SUCCESS;
165 
166  m_iRunNumber = m_tPRWTool->getRandomRunNumber(*xEventInfo);
167  return StatusCode::SUCCESS;
168 }

◆ beginInputFile()

StatusCode TauAnalysisTools::TauEfficiencyCorrectionsTool::beginInputFile ( )
virtual

Function called when a new input file is opened.

Dummy implementation that can be overridden by the derived tool.

Reimplemented from asg::AsgMetadataTool.

Definition at line 593 of file TauEfficiencyCorrectionsTool.cxx.

594 {
595  if (inputMetaStore()->contains<xAOD::FileMetaData>("FileMetaData")) {
596  const xAOD::FileMetaData* fmd = nullptr;
597  ATH_CHECK( inputMetaStore()->retrieve( fmd, "FileMetaData" ) );
598  std::string simType("");
599  bool result = fmd->value( xAOD::FileMetaData::simFlavour , simType );
600  // if no result -> no simFlavor metadata, so must be data
601  if(result) std::transform(simType.begin(), simType.end(), simType.begin(), ::toupper);
602 
603  if( simType.find("ATLFAST3") != std::string::npos && !m_useFastSim){
604  ATH_MSG_WARNING("Input file is AF3 sample but you are _not_ using AF3 corrections and uncertainties, you should set \"useFastSim\" to \"true\"");
605  } else if (simType.find("FULLG4")!=std::string::npos && m_useFastSim){
606  ATH_MSG_WARNING("Input file is full simulation but you are using AF3 corrections and uncertainties, you should set \"useFastSim\" to \"false\"");
607  }
608  }
609 
610  return StatusCode::SUCCESS;
611 }

◆ ConvertEleIDToString()

std::string TauAnalysisTools::TauEfficiencyCorrectionsTool::ConvertEleIDToString ( const int  iLevel) const
private

Definition at line 635 of file TauEfficiencyCorrectionsTool.cxx.

636 {
637  switch(iLevel)
638  {
639  case ELEIDRNNTIGHT:
640  return "eleRNNTight";
641  case ELEIDRNNMEDIUM:
642  return "eleRNNMedium";
643  case ELEIDRNNLOOSE:
644  return "eleRNNLoose";
645  default:
646  ATH_MSG_WARNING("No valid EleID level passed.");
647  return "";
648  }
649 }

◆ ConvertJetIDToString()

std::string TauAnalysisTools::TauEfficiencyCorrectionsTool::ConvertJetIDToString ( const int  iLevel) const
private

Definition at line 614 of file TauEfficiencyCorrectionsTool.cxx.

615 {
616  switch(iLevel)
617  {
618  case JETIDNONE:
619  return "none";
620  case JETIDRNNVERYLOOSE:
621  ATH_MSG_WARNING("Efficiency corrections for JETIDRNNVERYLOOSE working point are not supported.");
622  return "";
623  case JETIDRNNLOOSE:
624  return "jetrnnsigloose";
625  case JETIDRNNMEDIUM:
626  return "jetrnnsigmedium";
627  case JETIDRNNTIGHT:
628  return "jetrnnsigtight";
629  default:
630  ATH_MSG_WARNING("No valid JetID level passed.");
631  return "";
632  }
633 }

◆ ConvertTriggerIDToString()

std::string TauAnalysisTools::TauEfficiencyCorrectionsTool::ConvertTriggerIDToString ( const int  iLevel) const
private

Definition at line 652 of file TauEfficiencyCorrectionsTool.cxx.

653 {
654  switch(iLevel)
655  {
656  case JETIDRNNLOOSE:
657  return "loose";
658  case JETIDRNNMEDIUM:
659  return "medium";
660  case JETIDRNNTIGHT:
661  return "tight";
662  default:
663  ATH_MSG_WARNING("No valid TriggerID level passed.");
664  return "";
665  }
666 }

◆ declareGaudiProperty() [1/4]

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

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

Definition at line 170 of file AthCommonDataStore.h.

172  {
173  return *AthCommonDataStore<PBASE>::declareProperty(hndl.name(),
174  hndl.value(),
175  hndl.documentation());
176 
177  }

◆ declareGaudiProperty() [2/4]

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

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

Definition at line 156 of file AthCommonDataStore.h.

158  {
159  return *AthCommonDataStore<PBASE>::declareProperty(hndl.name(),
160  hndl.value(),
161  hndl.documentation());
162 
163  }

◆ declareGaudiProperty() [3/4]

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

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

Definition at line 184 of file AthCommonDataStore.h.

186  {
187  return *AthCommonDataStore<PBASE>::declareProperty(hndl.name(),
188  hndl.value(),
189  hndl.documentation());
190  }

◆ declareGaudiProperty() [4/4]

Gaudi::Details::PropertyBase& AthCommonDataStore< AthCommonMsg< AlgTool > >::declareGaudiProperty ( Gaudi::Property< T > &  t,
const SG::NotHandleType  
)
inlineprivateinherited

specialization for handling everything that's not a Gaudi::Property<SG::VarHandleKey> or a <SG::VarHandleKeyArray>

Definition at line 199 of file AthCommonDataStore.h.

200  {
201  return PBASE::declareProperty(t);
202  }

◆ declareProperty() [1/6]

Gaudi::Details::PropertyBase* AthCommonDataStore< AthCommonMsg< AlgTool > >::declareProperty ( const std::string &  name,
SG::VarHandleBase hndl,
const std::string &  doc,
const SG::VarHandleType  
)
inlineinherited

Declare a new Gaudi property.

Parameters
nameName of the property.
hndlObject holding the property value.
docDocumentation string for the property.

This is the version for types that derive from SG::VarHandleBase. The property value object is put on the input and output lists as appropriate; then we forward to the base class.

Definition at line 245 of file AthCommonDataStore.h.

249  {
250  this->declare(hndl.vhKey());
251  hndl.vhKey().setOwner(this);
252 
253  return PBASE::declareProperty(name,hndl,doc);
254  }

◆ declareProperty() [2/6]

Gaudi::Details::PropertyBase* AthCommonDataStore< AthCommonMsg< AlgTool > >::declareProperty ( const std::string &  name,
SG::VarHandleKey hndl,
const std::string &  doc,
const SG::VarHandleKeyType  
)
inlineinherited

Declare a new Gaudi property.

Parameters
nameName of the property.
hndlObject holding the property value.
docDocumentation string for the property.

This is the version for types that derive from SG::VarHandleKey. The property value object is put on the input and output lists as appropriate; then we forward to the base class.

Definition at line 221 of file AthCommonDataStore.h.

225  {
226  this->declare(hndl);
227  hndl.setOwner(this);
228 
229  return PBASE::declareProperty(name,hndl,doc);
230  }

◆ declareProperty() [3/6]

Gaudi::Details::PropertyBase* AthCommonDataStore< AthCommonMsg< AlgTool > >::declareProperty ( const std::string &  name,
SG::VarHandleKeyArray hndArr,
const std::string &  doc,
const SG::VarHandleKeyArrayType  
)
inlineinherited

Definition at line 259 of file AthCommonDataStore.h.

263  {
264 
265  // std::ostringstream ost;
266  // ost << Algorithm::name() << " VHKA declareProp: " << name
267  // << " size: " << hndArr.keys().size()
268  // << " mode: " << hndArr.mode()
269  // << " vhka size: " << m_vhka.size()
270  // << "\n";
271  // debug() << ost.str() << endmsg;
272 
273  hndArr.setOwner(this);
274  m_vhka.push_back(&hndArr);
275 
276  Gaudi::Details::PropertyBase* p = PBASE::declareProperty(name, hndArr, doc);
277  if (p != 0) {
278  p->declareUpdateHandler(&AthCommonDataStore<PBASE>::updateVHKA, this);
279  } else {
280  ATH_MSG_ERROR("unable to call declareProperty on VarHandleKeyArray "
281  << name);
282  }
283 
284  return p;
285 
286  }

◆ declareProperty() [4/6]

Gaudi::Details::PropertyBase* AthCommonDataStore< AthCommonMsg< AlgTool > >::declareProperty ( const std::string &  name,
T &  property,
const std::string &  doc,
const SG::NotHandleType  
)
inlineinherited

Declare a new Gaudi property.

Parameters
nameName of the property.
propertyObject holding the property value.
docDocumentation string for the property.

This is the generic version, for types that do not derive from SG::VarHandleKey. It just forwards to the base class version of declareProperty.

Definition at line 333 of file AthCommonDataStore.h.

337  {
338  return PBASE::declareProperty(name, property, doc);
339  }

◆ declareProperty() [5/6]

Gaudi::Details::PropertyBase* AthCommonDataStore< AthCommonMsg< AlgTool > >::declareProperty ( const std::string &  name,
T &  property,
const std::string &  doc = "none" 
)
inlineinherited

Declare a new Gaudi property.

Parameters
nameName of the property.
propertyObject holding the property value.
docDocumentation string for the property.

This dispatches to either the generic declareProperty or the one for VarHandle/Key/KeyArray.

Definition at line 352 of file AthCommonDataStore.h.

355  {
356  typedef typename SG::HandleClassifier<T>::type htype;
357  return declareProperty (name, property, doc, htype());
358  }

◆ declareProperty() [6/6]

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

Definition at line 145 of file AthCommonDataStore.h.

145  {
146  typedef typename SG::HandleClassifier<T>::type htype;
148  }

◆ 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.

95 { return m_detStore; }

◆ endInputFile()

StatusCode asg::AsgMetadataTool::endInputFile ( )
protectedvirtualinherited

Function called when the currently open input file got completely processed.

Dummy implementation that can be overridden by the derived tool.

Reimplemented in BookkeeperTool, BookkeeperDumperTool, xAODMaker::TriggerMenuMetaDataTool, and xAODMaker::TruthMetaDataTool.

Definition at line 188 of file AsgMetadataTool.cxx.

188  {
189 
190  // Return gracefully:
191  return StatusCode::SUCCESS;
192  }

◆ evtStore() [1/2]

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.

85 { return m_evtStore; }

◆ evtStore() [2/2]

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

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

Definition at line 90 of file AthCommonDataStore.h.

90 { return m_evtStore; }

◆ 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

◆ firstEvent()

StatusCode TauAnalysisTools::TauEfficiencyCorrectionsTool::firstEvent ( )
private

Definition at line 118 of file TauEfficiencyCorrectionsTool.cxx.

119 {
120  const xAOD::EventInfo* xEventInfo = nullptr;
121  ATH_CHECK(evtStore()->retrieve(xEventInfo, "EventInfo"));
122 
123  if (xEventInfo->runNumber() != 284500 && xEventInfo->runNumber() != 300000 && xEventInfo->runNumber() != 310000) // mc21/2022: 410000
124  {
125  ANA_MSG_WARNING( "Could not determine MC campaign from run number! The mu dependent systematic of the trigger scale factors should not be trusted. Current (" << xEventInfo->runNumber() << "). Will only print this warning once." );
126  }
127  if (xEventInfo->runNumber() < 410000 && m_sRecommendationTag == "2022-prerec") // mc21/2022: 410000
128  {
129  ANA_MSG_WARNING( "TauEfficiency callibrations from 2022-prerec are not recommended for Run2 MC. Will only print this warning once." );
130  }
131  return StatusCode::SUCCESS;
132 }

◆ getEfficiencyScaleFactor()

CP::CorrectionCode TauAnalysisTools::TauEfficiencyCorrectionsTool::getEfficiencyScaleFactor ( const xAOD::TauJet xTau,
double &  eff,
unsigned int  iRunNumber = 0,
unsigned int  iMu = 0 
)
virtual

Get the tau efficiency scale factor.

Implements TauAnalysisTools::ITauEfficiencyCorrectionsTool.

Definition at line 199 of file TauEfficiencyCorrectionsTool.cxx.

201 {
202  eff = 1.;
203 
204  if (m_bIsData)
205  return CP::CorrectionCode::Ok;
206 
209 
210  for (auto it = m_vCommonEfficiencyTools.begin(); it != m_vCommonEfficiencyTools.end(); it++)
211  {
212  if ( !(**it)->isSupportedRunNumber(m_iRunNumber) )
213  continue;
214  double dToolEff = 1.;
215  CP::CorrectionCode tmpCorrectionCode = (**it)->getEfficiencyScaleFactor(xTau, dToolEff, m_iRunNumber, m_iMu);
216  if (tmpCorrectionCode != CP::CorrectionCode::Ok)
217  return tmpCorrectionCode;
218  eff *= dToolEff;
219  }
220  for (auto it = m_vTriggerEfficiencyTools.begin(); it != m_vTriggerEfficiencyTools.end(); it++)
221  {
222  if ( !(**it)->isSupportedRunNumber(m_iRunNumber) )
223  continue;
224  double dToolEff = 1.;
225  CP::CorrectionCode tmpCorrectionCode = (**it)->getEfficiencyScaleFactor(xTau, dToolEff);
226  if (tmpCorrectionCode != CP::CorrectionCode::Ok)
227  return tmpCorrectionCode;
228  eff *= dToolEff;
229  }
230  return CP::CorrectionCode::Ok;
231 }

◆ 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  }

◆ 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.

◆ GetTriggerSFMeasurementString()

std::string TauAnalysisTools::TauEfficiencyCorrectionsTool::GetTriggerSFMeasurementString ( ) const
private

Definition at line 669 of file TauEfficiencyCorrectionsTool.cxx.

670 {
671  std::string sMeasurement = "_comb_";
672 
673  if (m_sTriggerSFMeasurement == "Ztautau")
674  sMeasurement = "_Ztt_";
675  else if (m_sTriggerSFMeasurement == "ttbar")
676  sMeasurement = "_ttbar_";
677  else if (m_sTriggerSFMeasurement != "combined")
678  ATH_MSG_WARNING("Trigger scale factor measurement \'" << m_sTriggerSFMeasurement << "\' is not supported. \'combined\' is used instead.");
679 
680  return sMeasurement;
681 }

◆ handle()

void asg::AsgMetadataTool::handle ( const Incident &  inc)
protectedvirtualinherited

Function receiving incidents from IncidentSvc/TEvent.

Reimplemented in Trig::TrigDecisionTool.

Definition at line 130 of file AsgMetadataTool.cxx.

130  {
131 
132  // Tell the user what's happening:
133  ATH_MSG_VERBOSE( "Callback received with incident: " << inc.type() );
134 
135  // Call the appropriate member function:
136  if( inc.type() == IncidentType::BeginInputFile ) {
137  m_beginInputFileCalled = true;
138  if( beginInputFile().isFailure() ) {
139  ATH_MSG_FATAL( "Failed to call beginInputFile()" );
140  throw std::runtime_error( "Couldn't call beginInputFile()" );
141  }
142  } else if( inc.type() == IncidentType::EndInputFile ) {
143  if( endInputFile().isFailure() ) {
144  ATH_MSG_FATAL( "Failed to call endInputFile()" );
145  throw std::runtime_error( "Couldn't call endInputFile()" );
146  }
147  } else if( inc.type() == IncidentType::BeginEvent ) {
148  // If the tool didn't catch the begin input file incident for the
149  // first input file of the job, then call the appropriate function
150  // now.
151  if( ! m_beginInputFileCalled ) {
152  m_beginInputFileCalled = true;
153  if( beginInputFile().isFailure() ) {
154  ATH_MSG_FATAL( "Failed to call beginInputFile()" );
155  throw std::runtime_error( "Couldn't call beginInputFile()" );
156  }
157  }
158  if( beginEvent().isFailure() ) {
159  ATH_MSG_FATAL( "Failed to call beginEvent()" );
160  throw std::runtime_error( "Couldn't call beginEvent()" );
161  }
162 
163  #ifdef XAOD_STANDALONE
164  } else if( inc.type() == IncidentType::MetaDataStop ) {
165  if( metaDataStop().isFailure() ) {
166  ATH_MSG_FATAL( "Failed to call metaDataStop()" );
167  throw std::runtime_error( "Couldn't call metaDataStop()" );
168  }
169 
170  #endif // XAOD_STANDALONE
171  } else {
172  ATH_MSG_WARNING( "Unknown incident type received in AsgMetaDataTool: " << inc.type() );
173  }
174 
175  return;
176  }

◆ initialize()

StatusCode TauAnalysisTools::TauEfficiencyCorrectionsTool::initialize ( )
virtual

Function initialising the tool.

Reimplemented from asg::AsgTool.

Definition at line 64 of file TauEfficiencyCorrectionsTool.cxx.

65 {
66  ATH_MSG_INFO( "Initializing TauEfficiencyCorrectionsTool" );
67 
69  ATH_MSG_WARNING("Truth match check will be skipped. This is ONLY FOR TESTING PURPOSE!");
70 
71  if (!m_tPRWTool.empty())
72  ATH_CHECK(m_tPRWTool.retrieve());
73 
74  // check efficiency correction type
75  if (m_vEfficiencyCorrectionTypes.empty())
76  {
77  ATH_MSG_ERROR("Could not retrieve any EfficiencyCorrectionType");
78  return StatusCode::FAILURE;
79  }
80 
81  if(m_sRecommendationTag == "2025-prerec") {
82  ATH_MSG_WARNING("2025-prerec is under development and not complete yet.");
84  } else if (m_sRecommendationTag == "2022-prerec") {
85  ATH_MSG_WARNING("2022-prerec tag are pre-recommendations and still under development.");
87  }
88  else {
89  ATH_MSG_ERROR("Unknown RecommendationTag " << m_sRecommendationTag);
90  return StatusCode::FAILURE;
91  }
92 
93  // for (auto tCommonEfficiencyTool : m_vCommonEfficiencyTools)
94  for (auto it = m_vCommonEfficiencyTools.begin(); it != m_vCommonEfficiencyTools.end(); it++)
95  {
96  ATH_CHECK((**it).setProperty("OutputLevel", this->msg().level()));
97  ATH_CHECK((**it).initialize());
98  }
99  for (auto it = m_vTriggerEfficiencyTools.begin(); it != m_vTriggerEfficiencyTools.end(); it++)
100  {
101  ATH_CHECK((**it).setProperty("OutputLevel", this->msg().level()));
102  ATH_CHECK((**it).initialize());
103  }
104 
105  // Add the affecting systematics to the global registry
107  if (!registry.registerSystematics(*this))
108  {
109  ATH_MSG_ERROR ("Unable to register the systematics");
110  return StatusCode::FAILURE;
111  }
112 
113  printConfig();
114 
115  return StatusCode::SUCCESS;
116 }

◆ initializeTools_2022_prerec()

StatusCode TauAnalysisTools::TauEfficiencyCorrectionsTool::initializeTools_2022_prerec ( )
private

Definition at line 446 of file TauEfficiencyCorrectionsTool.cxx.

447 {
448  std::string sDirectory = "TauAnalysisTools/" + std::string(sSharedFilesVersion) + "/EfficiencyCorrections/";
449 
450  // initialise paths and SF names unless they have been configured by the user
451  for (auto iEfficiencyCorrectionType : m_vEfficiencyCorrectionTypes)
452  {
453  if (iEfficiencyCorrectionType == SFJetIDHadTau)
454  {
455  if (m_sInputFilePathJetIDHadTau.empty()) {
456  if(m_useFastSim) {
457  ATH_MSG_WARNING("No fast-sim recommendation for Tau RNN, using full sim");
458  }
459 
460  m_sInputFilePathJetIDHadTau = sDirectory + "RNNID_TrueHadTau_2022-prerecommendation_v2.root";
461  }
462  if (m_sVarNameJetIDHadTau.empty()) m_sVarNameJetIDHadTau = "TauScaleFactorJetIDHadTau";
463 
464  std::string sJetIDWP = ConvertJetIDToString(m_iJetIDLevel);
465  if (sJetIDWP.empty()) {
466  ATH_MSG_WARNING("Could not find valid ID working point. Skip ID efficiency corrections.");
467  continue;
468  }
469 
470  asg::AnaToolHandle<ITauEfficiencyCorrectionsTool>* tTool = new asg::AnaToolHandle<ITauEfficiencyCorrectionsTool>("TauAnalysisTools::CommonEfficiencyTool/JetIDHadTauTool", this);
471  m_vCommonEfficiencyTools.push_back(tTool);
472  ATH_CHECK(tTool->setProperty("InputFilePath", m_sInputFilePathJetIDHadTau));
473  ATH_CHECK(tTool->setProperty("VarName", m_sVarNameJetIDHadTau));
474  //ATH_CHECK(tTool->setProperty("UseTauSubstructure", m_bUseTauSubstructure));
475  ATH_CHECK(tTool->setProperty("SkipTruthMatchCheck", m_bSkipTruthMatchCheck));
476  ATH_CHECK(tTool->setProperty("WP", sJetIDWP));
477  }
478  else if (iEfficiencyCorrectionType == SFEleIDHadTau)
479  {
480  // the path must be updated once RNN eVeto SFs are available
481  if (m_sInputFilePathEleIDHadTau.empty()) m_sInputFilePathEleIDHadTau = sDirectory + "EleOLR_TrueHadTau_2016-ichep.root";
482  if (m_sVarNameEleIDHadTau.empty()) m_sVarNameEleIDHadTau = "TauScaleFactorEleIDHadTau";
483 
484  asg::AnaToolHandle<ITauEfficiencyCorrectionsTool>* tTool = new asg::AnaToolHandle<ITauEfficiencyCorrectionsTool>("TauAnalysisTools::CommonEfficiencyTool/EleIDHadTauTool", this);
485  m_vCommonEfficiencyTools.push_back(tTool);
486  ATH_CHECK(tTool->setProperty("InputFilePath", m_sInputFilePathEleIDHadTau));
487  ATH_CHECK(tTool->setProperty("VarName", m_sVarNameEleIDHadTau));
488  ATH_CHECK(tTool->setProperty("SkipTruthMatchCheck", m_bSkipTruthMatchCheck));
489  }
490  else if (iEfficiencyCorrectionType == SFEleIDElectron)
491  {
492  // the path must be updated once RNN eVeto SFs are available
493  if (m_sInputFilePathEleIDElectron.empty()) {
494  if(m_useFastSim) {
495  ATH_MSG_WARNING("No fast-sim recommendation for tau electron veto, using full sim");
496  }
497 
498  m_sInputFilePathEleIDElectron = sDirectory+ "EleRNN_TrueElectron_2022-mc20-prerec-v2.root";
499  }
500  if (m_sVarNameEleIDElectron.empty()) m_sVarNameEleIDElectron = "TauScaleFactorEleIDElectron";
501 
502  asg::AnaToolHandle<ITauEfficiencyCorrectionsTool>* tTool = new asg::AnaToolHandle<ITauEfficiencyCorrectionsTool>("TauAnalysisTools::CommonEfficiencyTool/EleIDElectronTool", this);
503  m_vCommonEfficiencyTools.push_back(tTool);
504  ATH_CHECK(tTool->setProperty("InputFilePath", m_sInputFilePathEleIDElectron));
505  ATH_CHECK(tTool->setProperty("VarName", m_sVarNameEleIDElectron));
506  ATH_CHECK(tTool->setProperty("SkipTruthMatchCheck", m_bSkipTruthMatchCheck));
508  ATH_CHECK(tTool->setProperty("UseTauSubstructure", false));
509  }
510  else if (iEfficiencyCorrectionType == SFRecoHadTau)
511  {
512  if (m_sInputFilePathRecoHadTau.empty()) m_sInputFilePathRecoHadTau = sDirectory + "Reco_TrueHadTau_2019-summer_v2.root";
513  if (m_sVarNameRecoHadTau.empty()) m_sVarNameRecoHadTau = "TauScaleFactorReconstructionHadTau";
514 
515  asg::AnaToolHandle<ITauEfficiencyCorrectionsTool>* tTool = new asg::AnaToolHandle<ITauEfficiencyCorrectionsTool>("TauAnalysisTools::CommonEfficiencyTool/RecoHadTauTool", this);
516  m_vCommonEfficiencyTools.push_back(tTool);
517  ATH_CHECK(tTool->setProperty("InputFilePath", m_sInputFilePathRecoHadTau));
518  ATH_CHECK(tTool->setProperty("VarName", m_sVarNameRecoHadTau));
519  ATH_CHECK(tTool->setProperty("SkipTruthMatchCheck", m_bSkipTruthMatchCheck));
520  }
521  else if (iEfficiencyCorrectionType == SFDecayModeHadTau)
522  {
523  if (m_sInputFilePathDecayModeHadTau.empty()) m_sInputFilePathDecayModeHadTau = sDirectory + "DecayModeSubstructure_TrueHadTau_2019-summer.root";
524  if (m_sVarNameDecayModeHadTau.empty()) m_sVarNameDecayModeHadTau = "TauScaleFactorDecayModeHadTau";
525 
526  std::string sJetIDWP = ConvertJetIDToString(m_iJetIDLevel);
527  if (sJetIDWP.empty()) {
528  ATH_MSG_WARNING("Could not find valid ID working point. Skip ID efficiency corrections.");
529  continue;
530  }
531 
533  m_vCommonEfficiencyTools.push_back(tTool);
535  ATH_CHECK(tTool->setProperty("InputFilePath", m_sInputFilePathDecayModeHadTau));
536  ATH_CHECK(tTool->setProperty("VarName", m_sVarNameDecayModeHadTau));
537  ATH_CHECK(tTool->setProperty("UseTauSubstructure", true));
538  ATH_CHECK(tTool->setProperty("SkipTruthMatchCheck", m_bSkipTruthMatchCheck));
539  ATH_CHECK(tTool->setProperty("WP", sJetIDWP));
540  }
541  else if (iEfficiencyCorrectionType == SFTriggerHadTau)
542  {
543  if (m_sTriggerName.empty()) {
544  ATH_MSG_ERROR("Property \"Trigger\" was not set, please provide a trigger name.");
545  return StatusCode::FAILURE;
546  }
547  if (m_sInputFilePathTriggerHadTau.empty()) {
548  // Determine the input file name from the given trigger name.
549  // Triggers having "mediumRNN_tracktwoMVA are only part of 2018aftTS1.
550  // Every other trigger having "tracktwoEF" is only part of 2018.
551  // Every other trigger having "tau160_medium1" is only part of 2016.
552  // Every other trigger having "tau160" is only part of 2017/2018.
553  // Lastly check for other possible triggers, if this is not fulfilled the passed trigger is not supported.
554  if (m_sTriggerName.find("mediumRNN_tracktwoMVA") != std::string::npos) {
555  m_sInputFilePathTriggerHadTau = sDirectory+"Trigger/RNN/Trigger_TrueHadTau_2019-summer_data2018aftTS1"+GetTriggerSFMeasurementString()+m_sTriggerName+".root";
556  }
557  else if (m_sTriggerName.find("tracktwoEF") != std::string::npos) {
558  m_sInputFilePathTriggerHadTau = sDirectory+"Trigger/RNN/Trigger_TrueHadTau_2019-summer_data2018"+GetTriggerSFMeasurementString()+m_sTriggerName+".root";
559  }
560  else if (m_sTriggerName.find("tau160_medium1") != std::string::npos) {
561  m_sInputFilePathTriggerHadTau = sDirectory+"Trigger/RNN/Trigger_TrueHadTau_2019-summer_data2016"+GetTriggerSFMeasurementString()+m_sTriggerName+".root";
562  }
563  else if ((m_sTriggerName.find("tau160") != std::string::npos) || (m_sTriggerName.find("tau60") != std::string::npos)) {
564  m_sInputFilePathTriggerHadTau = sDirectory+"Trigger/RNN/Trigger_TrueHadTau_2019-summer_data1718"+GetTriggerSFMeasurementString()+m_sTriggerName+".root";
565  }
566  else if ((m_sTriggerName.find("tau125") != std::string::npos) || (m_sTriggerName.find("tau25") != std::string::npos) || (m_sTriggerName.find("tau35") != std::string::npos) || (m_sTriggerName.find("tau50") != std::string::npos) || (m_sTriggerName.find("tau80") != std::string::npos) ) {
567  m_sInputFilePathTriggerHadTau = sDirectory+"Trigger/RNN/Trigger_TrueHadTau_2019-summer_data161718"+GetTriggerSFMeasurementString()+m_sTriggerName+".root";
568  }
569  else {
570  ATH_MSG_ERROR("Trigger " << m_sTriggerName << " is not supported. Please fix \"TriggerName\" property.");
571  return StatusCode::FAILURE;
572  }
573  }
574  if (m_sVarNameTriggerHadTau.empty()) m_sVarNameTriggerHadTau = "TauScaleFactorTriggerHadTau";
575 
576  asg::AnaToolHandle<ITauEfficiencyCorrectionsTool>* tTool = new asg::AnaToolHandle<ITauEfficiencyCorrectionsTool>("TauAnalysisTools::TauEfficiencyTriggerTool/TriggerHadTauTool", this);
577  m_vTriggerEfficiencyTools.push_back(tTool);
578  ATH_CHECK(tTool->setProperty("InputFilePath", m_sInputFilePathTriggerHadTau));
579  ATH_CHECK(tTool->setProperty("VarName", m_sVarNameTriggerHadTau));
580  ATH_CHECK(tTool->setProperty("SkipTruthMatchCheck", m_bSkipTruthMatchCheck));
582  }
583  else {
584  ATH_MSG_WARNING("unsupported EfficiencyCorrectionsType with enum " << iEfficiencyCorrectionType);
585  }
586  }
587 
588  return StatusCode::SUCCESS;
589 }

◆ initializeTools_2025_prerec()

StatusCode TauAnalysisTools::TauEfficiencyCorrectionsTool::initializeTools_2025_prerec ( )
private

Definition at line 309 of file TauEfficiencyCorrectionsTool.cxx.

310 {
311  std::string sDirectory = "TauAnalysisTools/" + std::string(sSharedFilesVersion) + "/EfficiencyCorrections/";
312  for (auto iEfficiencyCorrectionType : m_vEfficiencyCorrectionTypes){
313 
314  if (iEfficiencyCorrectionType == SFJetIDHadTau)
315  {
316  if (m_sInputFilePathJetIDHadTau.empty()) {
317  if(m_useFastSim) {
318  ATH_MSG_WARNING("No fast-sim recommendation for Tau RNN, using full sim");
319  }
320 
321  if(m_sCampaign=="mc23"){
322  m_sInputFilePathJetIDHadTau = sDirectory + "RNNID_TrueHadTau_mc23_v1.root";
323  } else if (m_sCampaign=="mc20"){
324  m_sInputFilePathJetIDHadTau = sDirectory + "RNNID_TrueHadTau_mc20_v0.root";
325  }
326  }
327  if (m_sVarNameJetIDHadTau.empty()) m_sVarNameJetIDHadTau = "TauScaleFactorJetIDHadTau";
328 
329  std::string sJetIDWP = ConvertJetIDToString(m_iJetIDLevel);
330  if (sJetIDWP.empty()) {
331  ATH_MSG_WARNING("Could not find valid ID working point. Skip ID efficiency corrections.");
332  continue;
333  }
334 
335  asg::AnaToolHandle<ITauEfficiencyCorrectionsTool>* tTool = new asg::AnaToolHandle<ITauEfficiencyCorrectionsTool>("TauAnalysisTools::CommonEfficiencyTool/JetIDHadTauTool", this);
336  m_vCommonEfficiencyTools.push_back(tTool);
337  ATH_CHECK(tTool->setProperty("InputFilePath", m_sInputFilePathJetIDHadTau));
338  ATH_CHECK(tTool->setProperty("VarName", m_sVarNameJetIDHadTau));
339  ATH_CHECK(tTool->setProperty("SkipTruthMatchCheck", m_bSkipTruthMatchCheck));
340  ATH_CHECK(tTool->setProperty("WP", sJetIDWP));
341  }
342  else if (iEfficiencyCorrectionType == SFRecoHadTau)
343  {
344  if (m_sInputFilePathRecoHadTau.empty()) m_sInputFilePathRecoHadTau = sDirectory + "Reco_TrueHadTau_2019-summer_v2.root";
345  if (m_sVarNameRecoHadTau.empty()) m_sVarNameRecoHadTau = "TauScaleFactorReconstructionHadTau";
346 
347  asg::AnaToolHandle<ITauEfficiencyCorrectionsTool>* tTool = new asg::AnaToolHandle<ITauEfficiencyCorrectionsTool>("TauAnalysisTools::CommonEfficiencyTool/RecoHadTauTool", this);
348  m_vCommonEfficiencyTools.push_back(tTool);
349  ATH_CHECK(tTool->setProperty("InputFilePath", m_sInputFilePathRecoHadTau));
350  ATH_CHECK(tTool->setProperty("VarName", m_sVarNameRecoHadTau));
351  ATH_CHECK(tTool->setProperty("SkipTruthMatchCheck", m_bSkipTruthMatchCheck));
352  }
353  else if (iEfficiencyCorrectionType == SFEleIDHadTau)
354  {
355  // the path must be updated once RNN eVeto SFs are available
356  if (m_sInputFilePathEleIDHadTau.empty()) m_sInputFilePathEleIDHadTau = sDirectory + "EleOLR_TrueHadTau_2016-ichep.root";
357  if (m_sVarNameEleIDHadTau.empty()) m_sVarNameEleIDHadTau = "TauScaleFactorEleIDHadTau";
358 
359  asg::AnaToolHandle<ITauEfficiencyCorrectionsTool>* tTool = new asg::AnaToolHandle<ITauEfficiencyCorrectionsTool>("TauAnalysisTools::CommonEfficiencyTool/EleIDHadTauTool", this);
360  m_vCommonEfficiencyTools.push_back(tTool);
361  ATH_CHECK(tTool->setProperty("InputFilePath", m_sInputFilePathEleIDHadTau));
362  ATH_CHECK(tTool->setProperty("VarName", m_sVarNameEleIDHadTau));
363  ATH_CHECK(tTool->setProperty("SkipTruthMatchCheck", m_bSkipTruthMatchCheck));
364  }
365  else if (iEfficiencyCorrectionType == SFEleIDElectron)
366  {
367  // the path must be updated once RNN eVeto SFs are available
368  if (m_sInputFilePathEleIDElectron.empty()) {
369  if(m_useFastSim) {
370  ATH_MSG_WARNING("No fast-sim recommendation for tau electron veto, using full sim");
371  }
372 
373  if(m_sCampaign=="mc23"){
374  if( m_iJetIDLevel == (int)JETIDRNNLOOSE){
375  m_sInputFilePathEleIDElectron = sDirectory + "EleRNN_SF_2022_looseRNNTauID_1p.root";
376  } else if( m_iJetIDLevel == (int)JETIDRNNMEDIUM){
377  m_sInputFilePathEleIDElectron = sDirectory + "EleRNN_SF_2022_mediumRNNTauID_1p.root";
378  }
379  } else if(m_sCampaign=="mc20"){
380  if( m_iJetIDLevel == (int)JETIDRNNLOOSE){
381  m_sInputFilePathEleIDElectron = sDirectory + "EleRNN_SF_Run2_looseRNNTauID_1p.root";
382  } else if( m_iJetIDLevel == (int)JETIDRNNMEDIUM){
383  m_sInputFilePathEleIDElectron = sDirectory + "EleRNN_SF_Run2_mediumRNNTauID_1p_v1.root";
384  }
385  }
386  }
387  if (m_sVarNameEleIDElectron.empty()) m_sVarNameEleIDElectron = "TauScaleFactorEleIDElectron";
388 
389  asg::AnaToolHandle<ITauEfficiencyCorrectionsTool>* tTool = new asg::AnaToolHandle<ITauEfficiencyCorrectionsTool>("TauAnalysisTools::CommonEfficiencyTool/EleIDElectronTool", this);
390  m_vCommonEfficiencyTools.push_back(tTool);
391  ATH_CHECK(tTool->setProperty("InputFilePath", m_sInputFilePathEleIDElectron));
392  ATH_CHECK(tTool->setProperty("VarName", m_sVarNameEleIDElectron));
393  ATH_CHECK(tTool->setProperty("SkipTruthMatchCheck", m_bSkipTruthMatchCheck));
395  ATH_CHECK(tTool->setProperty("UseTauSubstructure", false));
396 
397  } else if (iEfficiencyCorrectionType == SFTriggerHadTau){
398 
399  if (m_sTriggerName.empty()) {
400  ATH_MSG_ERROR("Property \"Trigger\" was not set, please provide a trigger name.");
401  return StatusCode::FAILURE;
402  }
403  if (m_sInputFilePathTriggerHadTau.empty()) {
404  // Determine the input file name from the given trigger name.
405  if(m_sCampaign=="mc23a"){
406  if (m_sTriggerName.find("mediumRNN_tracktwoMVA") != std::string::npos) {
407  m_sInputFilePathTriggerHadTau = sDirectory+"Trigger/RNN/Trigger_TrueHadTau_data2022"+GetTriggerSFMeasurementString()+m_sTriggerName+".root";
408  }
409  else {
410  ATH_MSG_ERROR("Trigger " << m_sTriggerName << " is not supported for " << m_sCampaign << " campaign. Please fix \"TriggerName\" property. In case of doubt please consult with TauTrigger coordinators");
411  return StatusCode::FAILURE;
412  }
413  } if(m_sCampaign=="mc23d"){
414  if (m_sTriggerName.find("mediumRNN_tracktwoMVA") != std::string::npos) {
415  m_sInputFilePathTriggerHadTau = sDirectory+"Trigger/RNN/Trigger_TrueHadTau_data2023"+GetTriggerSFMeasurementString()+m_sTriggerName+".root";
416  }
417  else {
418  ATH_MSG_ERROR("Trigger " << m_sTriggerName << " is not supported for " << m_sCampaign << " campaign. Please fix \"TriggerName\" property. In case of doubt please consult with TauTrigger coordinators");
419  return StatusCode::FAILURE;
420  }
421  } else if (m_sCampaign=="mc20"){
422  ATH_MSG_ERROR("SFs for Run2 not available, please check the Campaign option in the tool configuration. If the config is correct, then please contact the tau trigger coordinators");
423  return StatusCode::FAILURE;
424  }
425  }
426  if (m_sVarNameTriggerHadTau.empty()) m_sVarNameTriggerHadTau = "TauScaleFactorTriggerHadTau";
427 
428  asg::AnaToolHandle<ITauEfficiencyCorrectionsTool>* tTool = new asg::AnaToolHandle<ITauEfficiencyCorrectionsTool>("TauAnalysisTools::TauEfficiencyTriggerTool/TriggerHadTauTool", this);
429  m_vTriggerEfficiencyTools.push_back(tTool);
430  ATH_CHECK(tTool->setProperty("InputFilePath", m_sInputFilePathTriggerHadTau));
431  ATH_CHECK(tTool->setProperty("VarName", m_sVarNameTriggerHadTau));
432  ATH_CHECK(tTool->setProperty("SkipTruthMatchCheck", m_bSkipTruthMatchCheck));
434  }
435  else {
436  ATH_MSG_WARNING("unsupported EfficiencyCorrectionsType with enum " << iEfficiencyCorrectionType);
437  }
438  }
439 
440  return StatusCode::SUCCESS;
441 }

◆ 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.

◆ inputMetaStore()

AsgMetadataTool::MetaStorePtr_t asg::AsgMetadataTool::inputMetaStore ( ) const
inherited

Accessor for the input metadata store.

Definition at line 88 of file AsgMetadataTool.cxx.

88  {
89 
90 #ifdef XAOD_STANDALONE
91  return &m_inputMetaStore;
92 #else // XAOD_STANDALONE
93  return m_inputMetaStore;
94 #endif // XAOD_STANDALONE
95  }

◆ isAffectedBySystematic()

bool TauAnalysisTools::TauEfficiencyCorrectionsTool::isAffectedBySystematic ( const CP::SystematicVariation systematic) const
virtual

returns: whether this tool is affected by the given systematics

Implements CP::ISystematicsTool.

Definition at line 261 of file TauEfficiencyCorrectionsTool.cxx.

262 {
263  for (auto it = m_vCommonEfficiencyTools.begin(); it != m_vCommonEfficiencyTools.end(); it++)
264  if ((**it)->isAffectedBySystematic(systematic))
265  return true;
266  for (auto it = m_vTriggerEfficiencyTools.begin(); it != m_vTriggerEfficiencyTools.end(); it++)
267  if ((**it)->isAffectedBySystematic(systematic))
268  return true;
269  return false;
270 }

◆ isSupportedRunNumber()

virtual bool TauAnalysisTools::TauEfficiencyCorrectionsTool::isSupportedRunNumber ( int  iRunNumber) const
inlinevirtual

check if run number is supported in recommendations

Implements TauAnalysisTools::ITauEfficiencyCorrectionsTool.

Definition at line 71 of file TauEfficiencyCorrectionsTool.h.

72  {
73  return true;
74  };

◆ metaDataStop()

StatusCode asg::AsgMetadataTool::metaDataStop ( )
protectedvirtualinherited

Function called when the tool should write out its metadata.

Dummy implementation that can be overridden by the derived tool.

Reimplemented in BookkeeperTool, BookkeeperDumperTool, xAODMaker::TriggerMenuMetaDataTool, and xAODMaker::TruthMetaDataTool.

Definition at line 204 of file AsgMetadataTool.cxx.

204  {
205 
206  // Return gracefully:
207  return StatusCode::SUCCESS;
208  }

◆ msg() [1/2]

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

Definition at line 24 of file AthCommonMsg.h.

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

◆ msg() [2/2]

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

Definition at line 27 of file AthCommonMsg.h.

27  {
28  return this->msgStream(lvl);
29  }

◆ 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  }

◆ 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.

◆ outputMetaStore()

AsgMetadataTool::MetaStorePtr_t asg::AsgMetadataTool::outputMetaStore ( ) const
inherited

Accessor for the output metadata store.

Definition at line 97 of file AsgMetadataTool.cxx.

97  {
98 
99 #ifdef XAOD_STANDALONE
100  return &m_outputMetaStore;
101 #else // XAOD_STANDALONE
102  return m_outputMetaStore;
103 #endif // XAOD_STANDALONE
104  }

◆ print() [1/2]

void asg::AsgTool::print ( ) const
virtualinherited

◆ print() [2/2]

virtual void asg::IAsgTool::print ( ) const
pure virtualinherited

◆ printConfig()

void TauAnalysisTools::TauEfficiencyCorrectionsTool::printConfig ( ) const
virtual

Print tool configuration.

Definition at line 171 of file TauEfficiencyCorrectionsTool.cxx.

172 {
173  ATH_MSG_DEBUG( "TauEfficiencyCorrectionsTool with name " << name() << " is configured as follows:" );
174  for (auto iEfficiencyCorrectionType : m_vEfficiencyCorrectionTypes) {
175  ATH_MSG_DEBUG( " EfficiencyCorrectionTypes " << iEfficiencyCorrectionType );
176  }
177  ATH_MSG_DEBUG( " InputFilePathRecoHadTau " << m_sInputFilePathRecoHadTau );
178  ATH_MSG_DEBUG( " InputFilePathEleIDHadTau " << m_sInputFilePathEleIDHadTau );
179  ATH_MSG_DEBUG( " InputFilePathEleIDElectron " << m_sInputFilePathEleIDElectron );
180  ATH_MSG_DEBUG( " InputFilePathJetIDHadTau " << m_sInputFilePathJetIDHadTau );
181  ATH_MSG_DEBUG( " InputFilePathDecayModeHadTau " << m_sInputFilePathDecayModeHadTau );
182  ATH_MSG_DEBUG( " InputFilePathTriggerHadTau " << m_sInputFilePathTriggerHadTau );
183  ATH_MSG_DEBUG( " VarNameRecoHadTau " << m_sVarNameRecoHadTau );
184  ATH_MSG_DEBUG( " VarNameEleIDHadTau " << m_sVarNameEleIDHadTau );
185  ATH_MSG_DEBUG( " VarNameEleIDElectron " << m_sVarNameEleIDElectron );
186  ATH_MSG_DEBUG( " VarNameJetIDHadTau " << m_sVarNameJetIDHadTau );
187  ATH_MSG_DEBUG( " VarNameDecayModeHadTau " << m_sVarNameDecayModeHadTau );
188  ATH_MSG_DEBUG( " VarNameTriggerHadTau " << m_sVarNameTriggerHadTau );
189  ATH_MSG_DEBUG( " RecommendationTag " << m_sRecommendationTag );
190  ATH_MSG_DEBUG( " TriggerName " << m_sTriggerName );
191  ATH_MSG_DEBUG( " UseTauSubstructure " << m_bUseTauSubstructure );
192  ATH_MSG_DEBUG( " JetIDLevel " << m_iJetIDLevel );
193  ATH_MSG_DEBUG( " EleIDLevel " << m_iEleIDLevel );
194  ATH_MSG_DEBUG( " Campaign " << m_sCampaign );
195  ATH_MSG_DEBUG( " useFastSim " << m_useFastSim);
196 }

◆ readRandomRunNumber()

StatusCode TauAnalysisTools::TauEfficiencyCorrectionsTool::readRandomRunNumber ( )
private

Definition at line 683 of file TauEfficiencyCorrectionsTool.cxx.

684 {
686  {
687  static const SG::ConstAccessor<unsigned int> acc_rnd("RandomRunNumber");
688  const xAOD::EventInfo* eventInfo = nullptr;
689  if (!evtStore()->contains<xAOD::EventInfo>("EventInfo") || !evtStore()->retrieve(eventInfo, "EventInfo").isSuccess())
690  {
691  ANA_MSG_ERROR("Could not retrieve EventInfo");
692  return StatusCode::FAILURE;
693  }
694 
695  if (!acc_rnd.isAvailable(*eventInfo))
696  {
697  ANA_MSG_ERROR("Failed to find the RandomRunNumber decoration. Call the apply() method from the PileupReweightingTool beforehand to get period dependent SFs.");
698  return StatusCode::FAILURE;
699  }
700 
701  m_iRunNumber = acc_rnd(*eventInfo);
702 
703  ANA_MSG_VERBOSE("Read RandomRunNumber as " << m_iRunNumber);
704  }
705 
706  return StatusCode::SUCCESS;
707 }

◆ recommendedSystematics()

CP::SystematicSet TauAnalysisTools::TauEfficiencyCorrectionsTool::recommendedSystematics ( ) const
virtual

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

Implements CP::IReentrantSystematicsTool.

Definition at line 286 of file TauEfficiencyCorrectionsTool.cxx.

287 {
288  CP::SystematicSet sRecommendedSystematics;
289  for (auto it = m_vCommonEfficiencyTools.begin(); it != m_vCommonEfficiencyTools.end(); it++)
290  sRecommendedSystematics.insert((**it)->recommendedSystematics());
291  for (auto it = m_vTriggerEfficiencyTools.begin(); it != m_vTriggerEfficiencyTools.end(); it++)
292  sRecommendedSystematics.insert((**it)->recommendedSystematics());
293  return sRecommendedSystematics;
294 }

◆ 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();
383  PBASE::renounce (h);
384  }

◆ 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  {
365  handlesArray.renounce();
366  }

◆ setUseIncidents()

void asg::AsgMetadataTool::setUseIncidents ( const bool  flag)
inlineprotectedinherited

Definition at line 132 of file AsgMetadataTool.h.

133  {
135  }

◆ sysInitialize()

StatusCode asg::AsgMetadataTool::sysInitialize ( )
virtualinherited

Function initialising the tool in the correct way in Athena.

This function is used to set up the callbacks from IncidentSvc in Athena at the right time during initialisation, without the user having to do anything special in his/her code.

Reimplemented from AthCommonDataStore< AthCommonMsg< AlgTool > >.

Definition at line 110 of file AsgMetadataTool.cxx.

110  {
111 
112 #ifndef XAOD_STANDALONE
113  if (m_useIncidents) {
114  // Connect to the IncidentSvc:
115  ServiceHandle< IIncidentSvc > incSvc( "IncidentSvc", name() );
116  ATH_CHECK( incSvc.retrieve() );
117 
118  // Set up the right callbacks: don't rethrow exceptions, any failure and we should end
119  incSvc->addListener( this, IncidentType::BeginEvent, 0, false );
120  }
121  // Let the base class do its thing:
122  ATH_CHECK( AlgTool::sysInitialize() );
123 
124 #endif // not XAOD_STANDALONE
125 
126  // Return gracefully:
127  return StatusCode::SUCCESS;
128  }

◆ 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) {
312  std::vector<SG::VarHandleKey*> keys = a->keys();
313  for (auto k : keys) {
314  k->setOwner(this);
315  }
316  }
317  }

Member Data Documentation

◆ m_beginInputFileCalled

bool asg::AsgMetadataTool::m_beginInputFileCalled
privateinherited

Flag helping to discover when the tool misses the opening of the first input file.

Definition at line 126 of file AsgMetadataTool.h.

◆ m_bIsConfigured

bool TauAnalysisTools::TauEfficiencyCorrectionsTool::m_bIsConfigured
private

Definition at line 117 of file TauEfficiencyCorrectionsTool.h.

◆ m_bIsData

bool TauAnalysisTools::TauEfficiencyCorrectionsTool::m_bIsData
private

Definition at line 116 of file TauEfficiencyCorrectionsTool.h.

◆ m_bReadRandomRunNumber

bool TauAnalysisTools::TauEfficiencyCorrectionsTool::m_bReadRandomRunNumber
private

Definition at line 118 of file TauEfficiencyCorrectionsTool.h.

◆ m_bSkipTruthMatchCheck

bool TauAnalysisTools::TauEfficiencyCorrectionsTool::m_bSkipTruthMatchCheck
private

Definition at line 114 of file TauEfficiencyCorrectionsTool.h.

◆ m_bUseTauSubstructure

bool TauAnalysisTools::TauEfficiencyCorrectionsTool::m_bUseTauSubstructure
private

Definition at line 115 of file TauEfficiencyCorrectionsTool.h.

◆ 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_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_firstEvent

bool TauAnalysisTools::TauEfficiencyCorrectionsTool::m_firstEvent = false
private

Definition at line 123 of file TauEfficiencyCorrectionsTool.h.

◆ m_iEleIDLevel

int TauAnalysisTools::TauEfficiencyCorrectionsTool::m_iEleIDLevel
private

Definition at line 120 of file TauEfficiencyCorrectionsTool.h.

◆ m_iJetIDLevel

int TauAnalysisTools::TauEfficiencyCorrectionsTool::m_iJetIDLevel
private

Definition at line 119 of file TauEfficiencyCorrectionsTool.h.

◆ m_iMu

unsigned int TauAnalysisTools::TauEfficiencyCorrectionsTool::m_iMu
private

Definition at line 125 of file TauEfficiencyCorrectionsTool.h.

◆ m_inputMetaStore

MetaStore_t asg::AsgMetadataTool::m_inputMetaStore
privateinherited

Object accessing the input metadata store.

Definition at line 119 of file AsgMetadataTool.h.

◆ m_iRunNumber

unsigned int TauAnalysisTools::TauEfficiencyCorrectionsTool::m_iRunNumber
private

Definition at line 124 of file TauEfficiencyCorrectionsTool.h.

◆ m_outputMetaStore

MetaStore_t asg::AsgMetadataTool::m_outputMetaStore
privateinherited

Object accessing the output metadata store.

Definition at line 121 of file AsgMetadataTool.h.

◆ m_sCampaign

std::string TauAnalysisTools::TauEfficiencyCorrectionsTool::m_sCampaign
private

Definition at line 121 of file TauEfficiencyCorrectionsTool.h.

◆ m_sInputFilePathDecayModeHadTau

std::string TauAnalysisTools::TauEfficiencyCorrectionsTool::m_sInputFilePathDecayModeHadTau
private

Definition at line 100 of file TauEfficiencyCorrectionsTool.h.

◆ m_sInputFilePathEleIDElectron

std::string TauAnalysisTools::TauEfficiencyCorrectionsTool::m_sInputFilePathEleIDElectron
private

Definition at line 102 of file TauEfficiencyCorrectionsTool.h.

◆ m_sInputFilePathEleIDHadTau

std::string TauAnalysisTools::TauEfficiencyCorrectionsTool::m_sInputFilePathEleIDHadTau
private

Definition at line 101 of file TauEfficiencyCorrectionsTool.h.

◆ m_sInputFilePathJetIDHadTau

std::string TauAnalysisTools::TauEfficiencyCorrectionsTool::m_sInputFilePathJetIDHadTau
private

Definition at line 99 of file TauEfficiencyCorrectionsTool.h.

◆ m_sInputFilePathRecoHadTau

std::string TauAnalysisTools::TauEfficiencyCorrectionsTool::m_sInputFilePathRecoHadTau
private

Definition at line 98 of file TauEfficiencyCorrectionsTool.h.

◆ m_sInputFilePathTriggerHadTau

std::string TauAnalysisTools::TauEfficiencyCorrectionsTool::m_sInputFilePathTriggerHadTau
private

Definition at line 103 of file TauEfficiencyCorrectionsTool.h.

◆ m_sRecommendationTag

std::string TauAnalysisTools::TauEfficiencyCorrectionsTool::m_sRecommendationTag
private

Definition at line 111 of file TauEfficiencyCorrectionsTool.h.

◆ m_sTriggerName

std::string TauAnalysisTools::TauEfficiencyCorrectionsTool::m_sTriggerName
private

Definition at line 112 of file TauEfficiencyCorrectionsTool.h.

◆ m_sTriggerSFMeasurement

std::string TauAnalysisTools::TauEfficiencyCorrectionsTool::m_sTriggerSFMeasurement
private

Definition at line 113 of file TauEfficiencyCorrectionsTool.h.

◆ m_sVarNameBase

std::string TauAnalysisTools::TauEfficiencyCorrectionsTool::m_sVarNameBase
private

Definition at line 104 of file TauEfficiencyCorrectionsTool.h.

◆ m_sVarNameDecayModeHadTau

std::string TauAnalysisTools::TauEfficiencyCorrectionsTool::m_sVarNameDecayModeHadTau
private

Definition at line 109 of file TauEfficiencyCorrectionsTool.h.

◆ m_sVarNameEleIDElectron

std::string TauAnalysisTools::TauEfficiencyCorrectionsTool::m_sVarNameEleIDElectron
private

Definition at line 107 of file TauEfficiencyCorrectionsTool.h.

◆ m_sVarNameEleIDHadTau

std::string TauAnalysisTools::TauEfficiencyCorrectionsTool::m_sVarNameEleIDHadTau
private

Definition at line 106 of file TauEfficiencyCorrectionsTool.h.

◆ m_sVarNameJetIDHadTau

std::string TauAnalysisTools::TauEfficiencyCorrectionsTool::m_sVarNameJetIDHadTau
private

Definition at line 108 of file TauEfficiencyCorrectionsTool.h.

◆ m_sVarNameRecoHadTau

std::string TauAnalysisTools::TauEfficiencyCorrectionsTool::m_sVarNameRecoHadTau
private

Definition at line 105 of file TauEfficiencyCorrectionsTool.h.

◆ m_sVarNameTriggerHadTau

std::string TauAnalysisTools::TauEfficiencyCorrectionsTool::m_sVarNameTriggerHadTau
private

Definition at line 110 of file TauEfficiencyCorrectionsTool.h.

◆ m_tPRWTool

ToolHandle<CP::IPileupReweightingTool> TauAnalysisTools::TauEfficiencyCorrectionsTool::m_tPRWTool
private

Definition at line 127 of file TauEfficiencyCorrectionsTool.h.

◆ m_useFastSim

bool TauAnalysisTools::TauEfficiencyCorrectionsTool::m_useFastSim
private

Definition at line 122 of file TauEfficiencyCorrectionsTool.h.

◆ m_useIncidents

bool asg::AsgMetadataTool::m_useIncidents
privateinherited

Definition at line 128 of file AsgMetadataTool.h.

◆ m_varHandleArraysDeclared

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

Definition at line 399 of file AthCommonDataStore.h.

◆ m_vCommonEfficiencyTools

std::vector< asg::AnaToolHandle<ITauEfficiencyCorrectionsTool>* > TauAnalysisTools::TauEfficiencyCorrectionsTool::m_vCommonEfficiencyTools
private

Definition at line 96 of file TauEfficiencyCorrectionsTool.h.

◆ m_vEfficiencyCorrectionTypes

std::vector<int> TauAnalysisTools::TauEfficiencyCorrectionsTool::m_vEfficiencyCorrectionTypes
private

Definition at line 95 of file TauEfficiencyCorrectionsTool.h.

◆ m_vhka

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

Definition at line 398 of file AthCommonDataStore.h.

◆ m_vTriggerEfficiencyTools

std::vector< asg::AnaToolHandle<ITauEfficiencyCorrectionsTool>* > TauAnalysisTools::TauEfficiencyCorrectionsTool::m_vTriggerEfficiencyTools
private

Definition at line 97 of file TauEfficiencyCorrectionsTool.h.


The documentation for this class was generated from the following files:
python.PyKernel.retrieve
def retrieve(aClass, aKey=None)
Definition: PyKernel.py:110
python.Dso.registry
registry
Definition: Control/AthenaServices/python/Dso.py:159
TauAnalysisTools::TauEfficiencyCorrectionsTool::m_bIsConfigured
bool m_bIsConfigured
Definition: TauEfficiencyCorrectionsTool.h:117
TauAnalysisTools::TauEfficiencyCorrectionsTool::m_bReadRandomRunNumber
bool m_bReadRandomRunNumber
Definition: TauEfficiencyCorrectionsTool.h:118
TauAnalysisTools::TauEfficiencyCorrectionsTool::m_tPRWTool
ToolHandle< CP::IPileupReweightingTool > m_tPRWTool
Definition: TauEfficiencyCorrectionsTool.h:127
TauAnalysisTools::SFTriggerHadTau
@ SFTriggerHadTau
Definition: PhysicsAnalysis/TauID/TauAnalysisTools/TauAnalysisTools/Enums.h:80
ATH_MSG_FATAL
#define ATH_MSG_FATAL(x)
Definition: AthMsgStreamMacros.h:34
asg::AnaToolHandle
a modified tool handle that allows its owner to configure new tools from the C++ side
Definition: AnaToolHandle.h:34
asg::AsgMetadataTool::beginEvent
virtual StatusCode beginEvent()
Function called when a new events is loaded.
Definition: AsgMetadataTool.cxx:196
get_generator_info.result
result
Definition: get_generator_info.py:21
StateLessPT_NewConfig.proxy
proxy
Definition: StateLessPT_NewConfig.py:402
ATH_MSG_INFO
#define ATH_MSG_INFO(x)
Definition: AthMsgStreamMacros.h:31
TauAnalysisTools::JETIDRNNTIGHT
@ JETIDRNNTIGHT
Definition: PhysicsAnalysis/TauID/TauAnalysisTools/TauAnalysisTools/Enums.h:22
TauAnalysisTools::TauEfficiencyCorrectionsTool::m_sVarNameJetIDHadTau
std::string m_sVarNameJetIDHadTau
Definition: TauEfficiencyCorrectionsTool.h:108
TauAnalysisTools::TauEfficiencyCorrectionsTool::m_sInputFilePathJetIDHadTau
std::string m_sInputFilePathJetIDHadTau
Definition: TauEfficiencyCorrectionsTool.h:99
TauAnalysisTools::TauEfficiencyCorrectionsTool::GetTriggerSFMeasurementString
std::string GetTriggerSFMeasurementString() const
Definition: TauEfficiencyCorrectionsTool.cxx:669
AthCommonDataStore< AthCommonMsg< AlgTool > >::declareProperty
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
Definition: AthCommonDataStore.h:145
TauAnalysisTools::JETIDRNNMEDIUM
@ JETIDRNNMEDIUM
Definition: PhysicsAnalysis/TauID/TauAnalysisTools/TauAnalysisTools/Enums.h:21
TauAnalysisTools::TauEfficiencyCorrectionsTool::ConvertEleIDToString
std::string ConvertEleIDToString(const int iLevel) const
Definition: TauEfficiencyCorrectionsTool.cxx:635
TauAnalysisTools::TauEfficiencyCorrectionsTool::m_firstEvent
bool m_firstEvent
Definition: TauEfficiencyCorrectionsTool.h:123
TauAnalysisTools::SFDecayModeHadTau
@ SFDecayModeHadTau
Definition: PhysicsAnalysis/TauID/TauAnalysisTools/TauAnalysisTools/Enums.h:85
skel.it
it
Definition: skel.GENtoEVGEN.py:407
CP::SystematicSet
Class to wrap a set of SystematicVariations.
Definition: SystematicSet.h:31
AthCommonDataStore< AthCommonMsg< AlgTool > >::m_evtStore
StoreGateSvc_t m_evtStore
Pointer to StoreGate (event store by default)
Definition: AthCommonDataStore.h:390
AthCommonDataStore< AthCommonMsg< AlgTool > >::m_vhka
std::vector< SG::VarHandleKeyArray * > m_vhka
Definition: AthCommonDataStore.h:398
asg::AsgMetadataTool::inputMetaStore
MetaStorePtr_t inputMetaStore() const
Accessor for the input metadata store.
Definition: AsgMetadataTool.cxx:88
TauAnalysisTools::TauEfficiencyCorrectionsTool::m_sVarNameTriggerHadTau
std::string m_sVarNameTriggerHadTau
Definition: TauEfficiencyCorrectionsTool.h:110
TauAnalysisTools::JETIDRNNLOOSE
@ JETIDRNNLOOSE
Definition: PhysicsAnalysis/TauID/TauAnalysisTools/TauAnalysisTools/Enums.h:20
TauAnalysisTools::TauEfficiencyCorrectionsTool::m_sVarNameEleIDHadTau
std::string m_sVarNameEleIDHadTau
Definition: TauEfficiencyCorrectionsTool.h:106
ANA_MSG_ERROR
#define ANA_MSG_ERROR(xmsg)
Macro printing error messages.
Definition: Control/AthToolSupport/AsgMessaging/AsgMessaging/MessageCheck.h:294
ANA_CHECK
#define ANA_CHECK(EXP)
check whether the given expression was successful
Definition: Control/AthToolSupport/AsgMessaging/AsgMessaging/MessageCheck.h:324
TauAnalysisTools::TauEfficiencyCorrectionsTool::m_sTriggerSFMeasurement
std::string m_sTriggerSFMeasurement
Definition: TauEfficiencyCorrectionsTool.h:113
TauAnalysisTools::TauEfficiencyCorrectionsTool::m_sInputFilePathTriggerHadTau
std::string m_sInputFilePathTriggerHadTau
Definition: TauEfficiencyCorrectionsTool.h:103
TauAnalysisTools::TauEfficiencyCorrectionsTool::m_sInputFilePathEleIDElectron
std::string m_sInputFilePathEleIDElectron
Definition: TauEfficiencyCorrectionsTool.h:102
asg::AsgMetadataTool::m_beginInputFileCalled
bool m_beginInputFileCalled
Flag helping to discover when the tool misses the opening of the first input file.
Definition: AsgMetadataTool.h:126
SG::ConstAccessor< unsigned int >
asg::AsgMetadataTool::endInputFile
virtual StatusCode endInputFile()
Function called when the currently open input file got completely processed.
Definition: AsgMetadataTool.cxx:188
asg::AsgMetadataTool::m_outputMetaStore
MetaStore_t m_outputMetaStore
Object accessing the output metadata store.
Definition: AsgMetadataTool.h:121
read_hist_ntuple.t
t
Definition: read_hist_ntuple.py:5
ATH_MSG_VERBOSE
#define ATH_MSG_VERBOSE(x)
Definition: AthMsgStreamMacros.h:28
dbg::ptr
void * ptr(T *p)
Definition: SGImplSvc.cxx:74
ASG_MAKE_ANA_TOOL
#define ASG_MAKE_ANA_TOOL(handle, type)
create the tool in the given tool handle
Definition: AnaToolHandle.h:690
TauAnalysisTools::JETIDNONE
@ JETIDNONE
Definition: PhysicsAnalysis/TauID/TauAnalysisTools/TauAnalysisTools/Enums.h:14
asg::AnaToolHandle::setProperty
StatusCode setProperty(const std::string &property, const T2 &value)
set the given property of the tool.
xAOD::EventInfo_v1::IS_SIMULATION
@ IS_SIMULATION
true: simulation, false: data
Definition: EventInfo_v1.h:151
TauAnalysisTools::SFEleIDElectron
@ SFEleIDElectron
Definition: PhysicsAnalysis/TauID/TauAnalysisTools/TauAnalysisTools/Enums.h:77
xAOD::EventInfo_v1::runNumber
uint32_t runNumber() const
The current event's run number.
python.iconfTool.models.loaders.level
level
Definition: loaders.py:20
TauAnalysisTools::TauEfficiencyCorrectionsTool::m_vTriggerEfficiencyTools
std::vector< asg::AnaToolHandle< ITauEfficiencyCorrectionsTool > * > m_vTriggerEfficiencyTools
Definition: TauEfficiencyCorrectionsTool.h:97
TauAnalysisTools::ELEIDRNNLOOSE
@ ELEIDRNNLOOSE
Definition: PhysicsAnalysis/TauID/TauAnalysisTools/TauAnalysisTools/Enums.h:33
xAOD::FileMetaData_v1::value
bool value(MetaDataType type, std::string &val) const
Get a pre-defined string value out of the object.
Definition: FileMetaData_v1.cxx:195
SG::VarHandleKeyArray::setOwner
virtual void setOwner(IDataHandleHolder *o)=0
xAOD::FileMetaData_v1::simFlavour
@ simFlavour
Fast or Full sim [string].
Definition: FileMetaData_v1.h:76
IDTPMcnv.htype
htype
Definition: IDTPMcnv.py:29
TauAnalysisTools::TauEfficiencyCorrectionsTool::m_vEfficiencyCorrectionTypes
std::vector< int > m_vEfficiencyCorrectionTypes
Definition: TauEfficiencyCorrectionsTool.h:95
TauAnalysisTools::TauEfficiencyCorrectionsTool::m_sVarNameEleIDElectron
std::string m_sVarNameEleIDElectron
Definition: TauEfficiencyCorrectionsTool.h:107
TauAnalysisTools::TauEfficiencyCorrectionsTool::m_iRunNumber
unsigned int m_iRunNumber
Definition: TauEfficiencyCorrectionsTool.h:124
AthCommonDataStore< AthCommonMsg< AlgTool > >::evtStore
ServiceHandle< StoreGateSvc > & evtStore()
The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc.
Definition: AthCommonDataStore.h:85
TauAnalysisTools::TauEfficiencyCorrectionsTool::m_vCommonEfficiencyTools
std::vector< asg::AnaToolHandle< ITauEfficiencyCorrectionsTool > * > m_vCommonEfficiencyTools
Definition: TauEfficiencyCorrectionsTool.h:96
TauAnalysisTools::TauEfficiencyCorrectionsTool::m_bUseTauSubstructure
bool m_bUseTauSubstructure
Definition: TauEfficiencyCorrectionsTool.h:115
python.utils.AtlRunQueryDQUtils.p
p
Definition: AtlRunQueryDQUtils.py:210
AthCommonDataStore
Definition: AthCommonDataStore.h:52
ATH_MSG_ERROR
#define ATH_MSG_ERROR(x)
Definition: AthMsgStreamMacros.h:33
TauAnalysisTools::TauEfficiencyCorrectionsTool::readRandomRunNumber
StatusCode readRandomRunNumber()
Definition: TauEfficiencyCorrectionsTool.cxx:683
TauAnalysisTools::ELEIDNONE
@ ELEIDNONE
Definition: PhysicsAnalysis/TauID/TauAnalysisTools/TauAnalysisTools/Enums.h:32
ATH_MSG_DEBUG
#define ATH_MSG_DEBUG(x)
Definition: AthMsgStreamMacros.h:29
TauAnalysisTools::TauEfficiencyCorrectionsTool::m_sTriggerName
std::string m_sTriggerName
Definition: TauEfficiencyCorrectionsTool.h:112
asg::AsgMetadataTool::beginInputFile
virtual StatusCode beginInputFile()
Function called when a new input file is opened.
Definition: AsgMetadataTool.cxx:180
master.flag
bool flag
Definition: master.py:29
ANA_MSG_WARNING
#define ANA_MSG_WARNING(xmsg)
Macro printing warning messages.
Definition: Control/AthToolSupport/AsgMessaging/AsgMessaging/MessageCheck.h:292
Amg::transform
Amg::Vector3D transform(Amg::Vector3D &v, Amg::Transform3D &tr)
Transform a point from a Trasformation3D.
Definition: GeoPrimitivesHelpers.h:156
TauAnalysisTools::CommonEfficiencyTool
Definition: CommonEfficiencyTool.h:39
asg::AsgMetadataTool::metaDataStop
virtual StatusCode metaDataStop()
Function called when the tool should write out its metadata.
Definition: AsgMetadataTool.cxx:204
TauAnalysisTools::TauEfficiencyCorrectionsTool::m_sCampaign
std::string m_sCampaign
Definition: TauEfficiencyCorrectionsTool.h:121
python.xAODType.dummy
dummy
Definition: xAODType.py:4
ATH_CHECK
#define ATH_CHECK
Definition: AthCheckMacros.h:40
MSG::name
const std::string & name(Level lvl)
Convenience function for translating message levels to strings.
Definition: MsgLevel.cxx:19
TauAnalysisTools::TauEfficiencyCorrectionsTool::m_iEleIDLevel
int m_iEleIDLevel
Definition: TauEfficiencyCorrectionsTool.h:120
TauAnalysisTools::TauEfficiencyCorrectionsTool::m_bSkipTruthMatchCheck
bool m_bSkipTruthMatchCheck
Definition: TauEfficiencyCorrectionsTool.h:114
AthCommonDataStore< AthCommonMsg< AlgTool > >::m_detStore
StoreGateSvc_t m_detStore
Pointer to StoreGate (detector store by default)
Definition: AthCommonDataStore.h:393
TauAnalysisTools::TauEfficiencyCorrectionsTool::ConvertTriggerIDToString
std::string ConvertTriggerIDToString(const int iLevel) const
Definition: TauEfficiencyCorrectionsTool.cxx:652
TauAnalysisTools::ELEIDRNNMEDIUM
@ ELEIDRNNMEDIUM
Definition: PhysicsAnalysis/TauID/TauAnalysisTools/TauAnalysisTools/Enums.h:34
TauAnalysisTools::TauEfficiencyCorrectionsTool::m_sInputFilePathEleIDHadTau
std::string m_sInputFilePathEleIDHadTau
Definition: TauEfficiencyCorrectionsTool.h:101
xAOD::FileMetaData_v1
Class holding file-level metadata about an xAOD file.
Definition: FileMetaData_v1.h:34
SG::VarHandleKeyArray::renounce
virtual void renounce()=0
SG::HandleClassifier::type
std::conditional< std::is_base_of< SG::VarHandleKeyArray, T >::value, VarHandleKeyArrayType, type2 >::type type
Definition: HandleClassifier.h:54
TauAnalysisTools::TauEfficiencyCorrectionsTool::printConfig
virtual void printConfig() const
Print tool configuration.
Definition: TauEfficiencyCorrectionsTool.cxx:171
xAOD::EventInfo_v1::averageInteractionsPerCrossing
float averageInteractionsPerCrossing() const
Average interactions per crossing for all BCIDs - for out-of-time pile-up.
Definition: EventInfo_v1.cxx:397
merge_scale_histograms.doc
string doc
Definition: merge_scale_histograms.py:9
asg::AsgMetadataTool::m_inputMetaStore
MetaStore_t m_inputMetaStore
Object accessing the input metadata store.
Definition: AsgMetadataTool.h:119
TauAnalysisTools::ELEIDRNNTIGHT
@ ELEIDRNNTIGHT
Definition: PhysicsAnalysis/TauID/TauAnalysisTools/TauAnalysisTools/Enums.h:35
CP::SystematicSet::insert
void insert(const SystematicVariation &systematic)
description: insert a systematic into the set
Definition: SystematicSet.cxx:88
ANA_MSG_VERBOSE
#define ANA_MSG_VERBOSE(xmsg)
Macro printing verbose messages.
Definition: Control/AthToolSupport/AsgMessaging/AsgMessaging/MessageCheck.h:286
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:240
TauAnalysisTools::SFJetIDHadTau
@ SFJetIDHadTau
Definition: PhysicsAnalysis/TauID/TauAnalysisTools/TauAnalysisTools/Enums.h:70
TauAnalysisTools::SFRecoHadTau
@ SFRecoHadTau
Definition: PhysicsAnalysis/TauID/TauAnalysisTools/TauAnalysisTools/Enums.h:65
TauAnalysisTools::TauEfficiencyCorrectionsTool::m_iMu
unsigned int m_iMu
Definition: TauEfficiencyCorrectionsTool.h:125
columnar::ContainerId::eventInfo
@ eventInfo
xAOD::EventInfo_v1
Class describing the basic event information.
Definition: EventInfo_v1.h:43
TauAnalysisTools::TauEfficiencyCorrectionsTool::m_sRecommendationTag
std::string m_sRecommendationTag
Definition: TauEfficiencyCorrectionsTool.h:111
TauAnalysisTools::TauEfficiencyCorrectionsTool::initializeTools_2022_prerec
StatusCode initializeTools_2022_prerec()
Definition: TauEfficiencyCorrectionsTool.cxx:446
TauAnalysisTools::TauEfficiencyCorrectionsTool::m_sInputFilePathDecayModeHadTau
std::string m_sInputFilePathDecayModeHadTau
Definition: TauEfficiencyCorrectionsTool.h:100
CP::CorrectionCode::Ok
@ Ok
The correction was done successfully.
Definition: CorrectionCode.h:38
TauAnalysisTools::TauEfficiencyCorrectionsTool::m_sVarNameDecayModeHadTau
std::string m_sVarNameDecayModeHadTau
Definition: TauEfficiencyCorrectionsTool.h:109
a
TList * a
Definition: liststreamerinfos.cxx:10
TauAnalysisTools::SFEleIDHadTau
@ SFEleIDHadTau
Definition: PhysicsAnalysis/TauID/TauAnalysisTools/TauAnalysisTools/Enums.h:75
h
asg::AsgMetadataTool
Base class for dual-use tools that provide file metadata access.
Definition: AsgMetadataTool.h:48
ATH_MSG_WARNING
#define ATH_MSG_WARNING(x)
Definition: AthMsgStreamMacros.h:32
ANA_CHECK_SET_TYPE
#define ANA_CHECK_SET_TYPE(TYPE)
set the type for ANA_CHECK to report failures
Definition: Control/AthToolSupport/AsgMessaging/AsgMessaging/MessageCheck.h:314
CP::SystematicRegistry
This module implements the central registry for handling systematic uncertainties with CP tools.
Definition: SystematicRegistry.h:25
TauAnalysisTools::TauEfficiencyCorrectionsTool::initializeTools_2025_prerec
StatusCode initializeTools_2025_prerec()
Definition: TauEfficiencyCorrectionsTool.cxx:309
AthCommonMsg< AlgTool >::msg
MsgStream & msg() const
Definition: AthCommonMsg.h:24
CP::CorrectionCode
Return value from object correction CP tools.
Definition: CorrectionCode.h:31
SG::VarHandleBase::vhKey
SG::VarHandleKey & vhKey()
Return a non-const reference to the HandleKey.
Definition: StoreGate/src/VarHandleBase.cxx:629
TauAnalysisTools::TauEfficiencyCorrectionsTool::m_iJetIDLevel
int m_iJetIDLevel
Definition: TauEfficiencyCorrectionsTool.h:119
dqt_zlumi_alleff_HIST.eff
int eff
Definition: dqt_zlumi_alleff_HIST.py:113
python.Bindings.keys
keys
Definition: Control/AthenaPython/python/Bindings.py:798
TauAnalysisTools::JETIDRNNVERYLOOSE
@ JETIDRNNVERYLOOSE
Definition: PhysicsAnalysis/TauID/TauAnalysisTools/TauAnalysisTools/Enums.h:19
TauAnalysisTools::TauEfficiencyCorrectionsTool::m_sInputFilePathRecoHadTau
std::string m_sInputFilePathRecoHadTau
Definition: TauEfficiencyCorrectionsTool.h:98
SG::DataProxy
Definition: DataProxy.h:45
TauAnalysisTools::TauEfficiencyCorrectionsTool::firstEvent
StatusCode firstEvent()
Definition: TauEfficiencyCorrectionsTool.cxx:118
AthCommonDataStore::declareGaudiProperty
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>
Definition: AthCommonDataStore.h:156
TauAnalysisTools::TauEfficiencyCorrectionsTool::m_sVarNameRecoHadTau
std::string m_sVarNameRecoHadTau
Definition: TauEfficiencyCorrectionsTool.h:105
TauAnalysisTools::TauEfficiencyCorrectionsTool::ConvertJetIDToString
std::string ConvertJetIDToString(const int iLevel) const
Definition: TauEfficiencyCorrectionsTool.cxx:614
TauAnalysisTools::TauEfficiencyCorrectionsTool::m_useFastSim
bool m_useFastSim
Definition: TauEfficiencyCorrectionsTool.h:122
fitman.k
k
Definition: fitman.py:528
xAOD::EventInfo_v1::eventType
bool eventType(EventType type) const
Check for one particular bitmask value.
CP::SystematicRegistry::getInstance
static SystematicRegistry & getInstance()
Get the singleton instance of the registry for the curren thread.
Definition: SystematicRegistry.cxx:25
ServiceHandle< IIncidentSvc >
TauAnalysisTools::TauEfficiencyCorrectionsTool::m_bIsData
bool m_bIsData
Definition: TauEfficiencyCorrectionsTool.h:116
asg::AsgMetadataTool::m_useIncidents
bool m_useIncidents
Definition: AsgMetadataTool.h:128