 |
ATLAS Offline Software
|
#include <TauEfficiencyCorrectionsTool.h>
|
| | 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) |
| | Get the tau efficiency scale factor. More...
|
| |
| virtual CP::CorrectionCode | applyEfficiencyScaleFactor (const xAOD::TauJet &xTau, unsigned int iRunNumber=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, V, H > &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 |
| |
|
| 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, V, H > &hndl, const SG::VarHandleKeyType &) |
| | specialization for handling Gaudi::Property<SG::VarHandleKey> More...
|
| |
| Gaudi::Details::PropertyBase & | declareGaudiProperty (Gaudi::Property< T, V, H > &hndl, const SG::VarHandleKeyArrayType &) |
| | specialization for handling Gaudi::Property<SG::VarHandleKeyArray> More...
|
| |
| Gaudi::Details::PropertyBase & | declareGaudiProperty (Gaudi::Property< T, V, H > &hndl, const SG::VarHandleType &) |
| | specialization for handling Gaudi::Property<SG::VarHandleBase> More...
|
| |
| Gaudi::Details::PropertyBase & | declareGaudiProperty (Gaudi::Property< T, V, H > &t, const SG::NotHandleType &) |
| | specialization for handling everything that's not a Gaudi::Property<SG::VarHandleKey> or a <SG::VarHandleKeyArray> More...
|
| |
|
| Gaudi::Property< std::string > | m_sInputFilePathRecoHadTau {this, "InputFilePathRecoHadTau", ""} |
| |
| Gaudi::Property< std::string > | m_sInputFilePathEleIDHadTau {this, "InputFilePathEleIDHadTau", ""} |
| |
| Gaudi::Property< std::string > | m_sInputFilePathEleIDElectron {this, "InputFilePathEleIDElectron", ""} |
| |
| Gaudi::Property< std::string > | m_sInputFilePathJetIDHadTau {this, "InputFilePathJetIDHadTau", ""} |
| |
| Gaudi::Property< std::string > | m_sInputFilePathTriggerHadTau {this, "InputFilePathTriggerHadTau", ""} |
| |
| Gaudi::Property< std::string > | m_sRecommendationTag {this, "RecommendationTag", "2025-prerec"} |
| |
| Gaudi::Property< std::string > | m_sTriggerName {this, "TriggerName", ""} |
| |
| Gaudi::Property< bool > | m_bReadRandomRunNumber {this, "AutoTriggerYear", false} |
| |
| Gaudi::Property< std::string > | m_sTriggerSFMeasurement {this, "TriggerSFMeasurement", "combined"} |
| |
| Gaudi::Property< bool > | m_bUseTauSubstructure {this, "UseTauSubstructure", 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< std::string > | m_sCampaign {this, "Campaign", ""} |
| |
| Gaudi::Property< bool > | m_useFastSim {this, "useFastSim", false} |
| |
| Gaudi::Property< bool > | m_bSkipTruthMatchCheck {this, "SkipTruthMatchCheck", false} |
| |
| Gaudi::Property< std::vector< int > > | m_vecEfficiencyCorrectionTypes {this, "EfficiencyCorrectionTypes", {}} |
| |
| std::vector< int > | m_vEfficiencyCorrectionTypes |
| |
| std::vector< asg::AnaToolHandle< ITauEfficiencyCorrectionsTool > * > | m_vCommonEfficiencyTools |
| |
| std::vector< asg::AnaToolHandle< ITauEfficiencyCorrectionsTool > * > | m_vTriggerEfficiencyTools |
| |
| std::string | m_sInputFilePathDecayModeHadTau |
| |
| std::string | m_sVarName |
| |
| bool | m_bIsData |
| |
| bool | m_bIsConfigured |
| |
| bool | m_firstEvent = false |
| |
| unsigned int | m_iRunNumber |
| |
| 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 |
| |
◆ MetaStore_t
◆ MetaStorePtr_t
Type of the metadata store pointer in standalone mode.
Definition at line 68 of file AsgMetadataTool.h.
◆ StoreGateSvc_t
◆ TauEfficiencyCorrectionsTool()
| TauAnalysisTools::TauEfficiencyCorrectionsTool::TauEfficiencyCorrectionsTool |
( |
const std::string & |
sName | ) |
|
◆ ~TauEfficiencyCorrectionsTool()
| TauAnalysisTools::TauEfficiencyCorrectionsTool::~TauEfficiencyCorrectionsTool |
( |
| ) |
|
◆ affectingSystematics()
| CP::SystematicSet TauAnalysisTools::TauEfficiencyCorrectionsTool::affectingSystematics |
( |
| ) |
const |
|
virtual |
◆ applyEfficiencyScaleFactor()
◆ 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 225 of file TauEfficiencyCorrectionsTool.cxx.
228 if ((**it)->applySystematicVariation(sSystematicSet) == StatusCode::FAILURE)
229 return StatusCode::FAILURE;
230 return StatusCode::SUCCESS;
◆ 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 99 of file TauEfficiencyCorrectionsTool.cxx.
115 return StatusCode::SUCCESS;
126 return StatusCode::SUCCESS;
◆ 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 553 of file TauEfficiencyCorrectionsTool.cxx.
555 if (
inputMetaStore()->contains<xAOD::FileMetaData>(
"FileMetaData")) {
558 std::string simType(
"");
563 if( simType.find(
"ATLFAST3") != std::string::npos && !
m_useFastSim){
564 ATH_MSG_WARNING(
"Input file is AF3 sample but you are _not_ using AF3 corrections and uncertainties, you should set \"useFastSim\" to \"true\"");
565 }
else if (simType.find(
"FULLG4")!=std::string::npos &&
m_useFastSim){
566 ATH_MSG_WARNING(
"Input file is full simulation but you are using AF3 corrections and uncertainties, you should set \"useFastSim\" to \"false\"");
570 return StatusCode::SUCCESS;
◆ ConvertEleIDToString()
| std::string TauAnalysisTools::TauEfficiencyCorrectionsTool::ConvertEleIDToString |
( |
const int |
iLevel | ) |
const |
|
private |
◆ ConvertJetIDToString()
| std::string TauAnalysisTools::TauEfficiencyCorrectionsTool::ConvertJetIDToString |
( |
const int |
iLevel | ) |
const |
|
private |
Definition at line 574 of file TauEfficiencyCorrectionsTool.cxx.
581 ATH_MSG_WARNING(
"Efficiency corrections for JETIDRNNVERYLOOSE working point are not supported.");
584 return "jetrnnsigloose";
586 return "jetrnnsigmedium";
588 return "jetrnnsigtight";
◆ ConvertTriggerIDToString()
| std::string TauAnalysisTools::TauEfficiencyCorrectionsTool::ConvertTriggerIDToString |
( |
const int |
iLevel | ) |
const |
|
private |
◆ declareGaudiProperty() [1/4]
specialization for handling Gaudi::Property<SG::VarHandleKeyArray>
Definition at line 170 of file AthCommonDataStore.h.
175 hndl.documentation());
◆ declareGaudiProperty() [2/4]
specialization for handling Gaudi::Property<SG::VarHandleKey>
Definition at line 156 of file AthCommonDataStore.h.
161 hndl.documentation());
◆ declareGaudiProperty() [3/4]
specialization for handling Gaudi::Property<SG::VarHandleBase>
Definition at line 184 of file AthCommonDataStore.h.
189 hndl.documentation());
◆ declareGaudiProperty() [4/4]
◆ declareProperty() [1/6]
Declare a new Gaudi property.
- Parameters
-
| name | Name of the property. |
| hndl | Object holding the property value. |
| doc | Documentation 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.
250 this->declare(hndl.
vhKey());
251 hndl.
vhKey().setOwner(
this);
253 return PBASE::declareProperty(
name,hndl,
doc);
◆ declareProperty() [2/6]
Declare a new Gaudi property.
- Parameters
-
| name | Name of the property. |
| hndl | Object holding the property value. |
| doc | Documentation 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.
229 return PBASE::declareProperty(
name,hndl,
doc);
◆ declareProperty() [3/6]
◆ declareProperty() [4/6]
Declare a new Gaudi property.
- Parameters
-
| name | Name of the property. |
| property | Object holding the property value. |
| doc | Documentation 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.
338 return PBASE::declareProperty(
name, property,
doc);
◆ declareProperty() [5/6]
Declare a new Gaudi property.
- Parameters
-
| name | Name of the property. |
| property | Object holding the property value. |
| doc | Documentation 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.
◆ declareProperty() [6/6]
◆ detStore()
◆ endInputFile()
| StatusCode asg::AsgMetadataTool::endInputFile |
( |
| ) |
|
|
protectedvirtualinherited |
◆ evtStore() [1/2]
◆ evtStore() [2/2]
◆ extraDeps_update_handler()
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 81 of file TauEfficiencyCorrectionsTool.cxx.
89 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." );
93 ANA_MSG_WARNING(
"TauEfficiency callibrations from 2022-prerec are not recommended for Run2 MC. Will only print this warning once." );
96 return StatusCode::SUCCESS;
◆ getEfficiencyScaleFactor()
◆ getKey()
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
-
| ptr | The 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.
121 #ifdef XAOD_STANDALONE
127 return (
proxy ==
nullptr ? 0 :
proxy->sgkey() );
128 #endif // XAOD_STANDALONE
◆ 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
-
| ptr | The 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.
108 #ifdef XAOD_STANDALONE
114 static const std::string
dummy =
"";
116 #endif // XAOD_STANDALONE
◆ 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 |
◆ handle()
| void asg::AsgMetadataTool::handle |
( |
const Incident & |
inc | ) |
|
|
protectedvirtualinherited |
Function receiving incidents from IncidentSvc/TEvent.
Reimplemented in Trig::TrigDecisionTool.
Definition at line 135 of file AsgMetadataTool.cxx.
141 if( inc.type() == IncidentType::BeginInputFile ) {
145 throw std::runtime_error(
"Couldn't call beginInputFile()" );
147 }
else if( inc.type() == IncidentType::EndInputFile ) {
150 throw std::runtime_error(
"Couldn't call endInputFile()" );
152 }
else if( inc.type() == IncidentType::BeginEvent ) {
160 throw std::runtime_error(
"Couldn't call beginInputFile()" );
165 throw std::runtime_error(
"Couldn't call beginEvent()" );
168 #ifdef XAOD_STANDALONE
169 }
else if( inc.type() == IncidentType::MetaDataStop ) {
172 throw std::runtime_error(
"Couldn't call metaDataStop()" );
175 #endif // XAOD_STANDALONE
177 ATH_MSG_WARNING(
"Unknown incident type received in AsgMetaDataTool: " << inc.type() );
◆ initialize()
| StatusCode TauAnalysisTools::TauEfficiencyCorrectionsTool::initialize |
( |
| ) |
|
|
virtual |
Function initialising the tool.
Reimplemented from asg::AsgTool.
Definition at line 34 of file TauEfficiencyCorrectionsTool.cxx.
36 ATH_MSG_INFO(
"Initializing TauEfficiencyCorrectionsTool" );
41 ATH_MSG_WARNING(
"Truth match check will be skipped. This is ONLY FOR TESTING PURPOSE!");
46 ATH_MSG_ERROR(
"Could not retrieve any EfficiencyCorrectionType");
47 return StatusCode::FAILURE;
53 ATH_MSG_WARNING(
"2022-prerec tag are pre-recommendations superseeded by 2025-prerec");
58 return StatusCode::FAILURE;
64 ATH_CHECK((**it).setProperty(
"OutputLevel", this->msg().level()));
70 if (!
registry.registerSystematics(*
this))
73 return StatusCode::FAILURE;
78 return StatusCode::SUCCESS;
◆ initializeTools_2022_prerec()
| StatusCode TauAnalysisTools::TauEfficiencyCorrectionsTool::initializeTools_2022_prerec |
( |
| ) |
|
|
private |
Definition at line 405 of file TauEfficiencyCorrectionsTool.cxx.
407 std::string sDirectory =
"TauAnalysisTools/" + std::string(sSharedFilesVersion) +
"/EfficiencyCorrections/";
416 ATH_MSG_WARNING(
"No fast-sim recommendation for Tau RNN, using full sim");
424 if (sJetIDWP.empty()) {
425 ATH_MSG_WARNING(
"Could not find valid ID working point. Skip ID efficiency corrections.");
454 ATH_MSG_WARNING(
"No fast-sim recommendation for tau electron veto, using full sim");
472 m_sVarName =
"TauScaleFactorReconstructionHadTau";
486 if (sJetIDWP.empty()) {
487 ATH_MSG_WARNING(
"Could not find valid ID working point. Skip ID efficiency corrections.");
503 ATH_MSG_ERROR(
"Property \"Trigger\" was not set, please provide a trigger name.");
504 return StatusCode::FAILURE;
513 if (
m_sTriggerName.value().find(
"mediumRNN_tracktwoMVA") != std::string::npos) {
516 else if (
m_sTriggerName.value().find(
"tracktwoEF") != std::string::npos) {
519 else if (
m_sTriggerName.value().find(
"tau160_medium1") != std::string::npos) {
530 return StatusCode::FAILURE;
544 ATH_MSG_WARNING(
"unsupported EfficiencyCorrectionsType with enum " << iEfficiencyCorrectionType);
548 return StatusCode::SUCCESS;
◆ initializeTools_2025_prerec()
| StatusCode TauAnalysisTools::TauEfficiencyCorrectionsTool::initializeTools_2025_prerec |
( |
| ) |
|
|
private |
Definition at line 234 of file TauEfficiencyCorrectionsTool.cxx.
236 std::string sDirectory =
"TauAnalysisTools/" + std::string(sSharedFilesVersion) +
"/EfficiencyCorrections/";
243 ATH_MSG_WARNING(
"No fast-sim recommendation for Tau RNN, using full sim");
255 if (sJetIDWP.empty()) {
256 ATH_MSG_WARNING(
"Could not find valid ID working point. Skip ID efficiency corrections.");
270 m_sVarName =
"TauScaleFactorReconstructionHadTau";
295 ATH_MSG_WARNING(
"No fast-sim recommendation for tau electron veto, using full sim");
306 return StatusCode::FAILURE;
316 return StatusCode::FAILURE;
333 ATH_MSG_ERROR(
"Property \"Trigger\" was not set, please provide a trigger name.");
334 return StatusCode::FAILURE;
339 if (
m_sTriggerName.value().find(
"mediumRNN_tracktwoMVA") != std::string::npos) {
343 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");
344 return StatusCode::FAILURE;
347 if (
m_sTriggerName.value().find(
"mediumRNN_tracktwoMVA") != std::string::npos) {
351 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");
352 return StatusCode::FAILURE;
355 if (
m_sTriggerName.value().find(
"tracktwoEF") != std::string::npos) {
362 }
else if (
m_sTriggerName.value().find(
"tracktwo") != std::string::npos) {
366 }
else if (
m_sTriggerName.value().find(
"tau125") != std::string::npos) {
369 }
else if (
m_sTriggerName.value().find(
"tau60") != std::string::npos) {
376 ATH_MSG_ERROR(
"Trigger " <<
m_sTriggerName <<
" is not supported. Please fix \"TriggerName\" property. If this is correct, then please contact the tau trigger coordinators");
377 return StatusCode::FAILURE;
380 ATH_MSG_ERROR(
"SFs are not available for " <<
m_sCampaign <<
" campaign. If the config is correct, then please contact the tau trigger coordinators");
381 return StatusCode::FAILURE;
395 ATH_MSG_WARNING(
"unsupported EfficiencyCorrectionsType with enum " << iEfficiencyCorrectionType);
399 return StatusCode::SUCCESS;
◆ inputHandles()
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 93 of file AsgMetadataTool.cxx.
95 #ifdef XAOD_STANDALONE
97 #else // XAOD_STANDALONE
99 #endif // XAOD_STANDALONE
◆ isAffectedBySystematic()
◆ isSupportedRunNumber()
| virtual bool TauAnalysisTools::TauEfficiencyCorrectionsTool::isSupportedRunNumber |
( |
int |
iRunNumber | ) |
const |
|
inlinevirtual |
◆ metaDataStop()
| StatusCode asg::AsgMetadataTool::metaDataStop |
( |
| ) |
|
|
protectedvirtualinherited |
◆ msg() [1/2]
◆ msg() [2/2]
◆ 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.
◆ msgLvl()
◆ outputHandles()
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 102 of file AsgMetadataTool.cxx.
104 #ifdef XAOD_STANDALONE
106 #else // XAOD_STANDALONE
108 #endif // XAOD_STANDALONE
◆ print() [1/2]
| void asg::AsgTool::print |
( |
| ) |
const |
|
virtualinherited |
Print the state of the tool.
Implements asg::IAsgTool.
Reimplemented in JetRecTool, JetFinder, JetModifiedMassDrop, JetFromPseudojet, JetReclusterer, JetReclusteringTool, JetTruthLabelingTool, JetPileupLabelingTool, HI::HIPileupTool, LundVariablesTool, JetDumper, JetBottomUpSoftDrop, JetRecursiveSoftDrop, JetSoftDrop, JetConstituentsRetriever, JetSubStructureMomentToolsBase, JetSplitter, JetToolRunner, JetPruner, JetPseudojetRetriever, JetTrimmer, AsgHelloTool, and KtDeltaRTool.
Definition at line 131 of file AsgTool.cxx.
◆ print() [2/2]
| virtual void asg::IAsgTool::print |
( |
| ) |
const |
|
pure virtualinherited |
Print the state of the tool.
Implemented in JetRecTool, JetFinder, JetModifiedMassDrop, JetFromPseudojet, JetReclusterer, JetReclusteringTool, JetTruthLabelingTool, JetPileupLabelingTool, HI::HIPileupTool, LundVariablesTool, asg::AsgTool, JetDumper, JetBottomUpSoftDrop, JetRecursiveSoftDrop, JetSoftDrop, JetConstituentsRetriever, JetSubStructureMomentToolsBase, JetSplitter, JetToolRunner, JetPruner, JetPseudojetRetriever, JetTrimmer, AsgHelloTool, and KtDeltaRTool.
◆ printConfig()
| void TauAnalysisTools::TauEfficiencyCorrectionsTool::printConfig |
( |
| ) |
const |
|
virtual |
◆ readRandomRunNumber()
| StatusCode TauAnalysisTools::TauEfficiencyCorrectionsTool::readRandomRunNumber |
( |
| ) |
|
|
private |
Definition at line 643 of file TauEfficiencyCorrectionsTool.cxx.
650 if (!
evtStore()->contains<xAOD::EventInfo>(
"EventInfo") || !
evtStore()->
retrieve(eventInfo,
"EventInfo").isSuccess())
653 return StatusCode::FAILURE;
656 if (!acc_rnd.isAvailable(*eventInfo))
658 ANA_MSG_ERROR(
"Failed to find the RandomRunNumber decoration. Call the apply() method from the PileupReweightingTool beforehand to get period dependent SFs.");
659 return StatusCode::FAILURE;
667 return StatusCode::SUCCESS;
◆ recommendedSystematics()
| CP::SystematicSet TauAnalysisTools::TauEfficiencyCorrectionsTool::recommendedSystematics |
( |
| ) |
const |
|
virtual |
◆ renounce()
◆ renounceArray()
◆ setUseIncidents()
| void asg::AsgMetadataTool::setUseIncidents |
( |
const bool |
flag | ) |
|
|
inlineprotectedinherited |
◆ 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 115 of file AsgMetadataTool.cxx.
117 #ifndef XAOD_STANDALONE
124 incSvc->addListener(
this, IncidentType::BeginEvent, 0,
false );
129 #endif // not XAOD_STANDALONE
132 return StatusCode::SUCCESS;
◆ sysStart()
Handle START transition.
We override this in order to make sure that conditions handle keys can cache a pointer to the conditions container.
◆ updateVHKA()
◆ 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 |
◆ m_bIsData
| bool TauAnalysisTools::TauEfficiencyCorrectionsTool::m_bIsData |
|
private |
◆ m_bReadRandomRunNumber
| Gaudi::Property<bool> TauAnalysisTools::TauEfficiencyCorrectionsTool::m_bReadRandomRunNumber {this, "AutoTriggerYear", false} |
|
private |
◆ m_bSkipTruthMatchCheck
| Gaudi::Property<bool> TauAnalysisTools::TauEfficiencyCorrectionsTool::m_bSkipTruthMatchCheck {this, "SkipTruthMatchCheck", false} |
|
private |
◆ m_bUseTauSubstructure
| Gaudi::Property<bool> TauAnalysisTools::TauEfficiencyCorrectionsTool::m_bUseTauSubstructure {this, "UseTauSubstructure", false} |
|
private |
◆ m_detStore
◆ m_evtStore
◆ m_firstEvent
| bool TauAnalysisTools::TauEfficiencyCorrectionsTool::m_firstEvent = false |
|
private |
◆ m_iEleIDLevel
| Gaudi::Property<int> TauAnalysisTools::TauEfficiencyCorrectionsTool::m_iEleIDLevel {this, "EleIDLevel", static_cast<int>(ELEIDNONE)} |
|
private |
◆ m_iJetIDLevel
| Gaudi::Property<int> TauAnalysisTools::TauEfficiencyCorrectionsTool::m_iJetIDLevel {this, "JetIDLevel", static_cast<int>(JETIDNONE)} |
|
private |
◆ m_inputMetaStore
◆ m_iRunNumber
| unsigned int TauAnalysisTools::TauEfficiencyCorrectionsTool::m_iRunNumber |
|
private |
◆ m_outputMetaStore
◆ m_sCampaign
| Gaudi::Property<std::string> TauAnalysisTools::TauEfficiencyCorrectionsTool::m_sCampaign {this, "Campaign", ""} |
|
private |
◆ m_sInputFilePathDecayModeHadTau
| std::string TauAnalysisTools::TauEfficiencyCorrectionsTool::m_sInputFilePathDecayModeHadTau |
|
private |
◆ m_sInputFilePathEleIDElectron
| Gaudi::Property<std::string> TauAnalysisTools::TauEfficiencyCorrectionsTool::m_sInputFilePathEleIDElectron {this, "InputFilePathEleIDElectron", ""} |
|
private |
◆ m_sInputFilePathEleIDHadTau
| Gaudi::Property<std::string> TauAnalysisTools::TauEfficiencyCorrectionsTool::m_sInputFilePathEleIDHadTau {this, "InputFilePathEleIDHadTau", ""} |
|
private |
◆ m_sInputFilePathJetIDHadTau
| Gaudi::Property<std::string> TauAnalysisTools::TauEfficiencyCorrectionsTool::m_sInputFilePathJetIDHadTau {this, "InputFilePathJetIDHadTau", ""} |
|
private |
◆ m_sInputFilePathRecoHadTau
| Gaudi::Property<std::string> TauAnalysisTools::TauEfficiencyCorrectionsTool::m_sInputFilePathRecoHadTau {this, "InputFilePathRecoHadTau", ""} |
|
private |
◆ m_sInputFilePathTriggerHadTau
| Gaudi::Property<std::string> TauAnalysisTools::TauEfficiencyCorrectionsTool::m_sInputFilePathTriggerHadTau {this, "InputFilePathTriggerHadTau", ""} |
|
private |
◆ m_sRecommendationTag
| Gaudi::Property<std::string> TauAnalysisTools::TauEfficiencyCorrectionsTool::m_sRecommendationTag {this, "RecommendationTag", "2025-prerec"} |
|
private |
◆ m_sTriggerName
| Gaudi::Property<std::string> TauAnalysisTools::TauEfficiencyCorrectionsTool::m_sTriggerName {this, "TriggerName", ""} |
|
private |
◆ m_sTriggerSFMeasurement
| Gaudi::Property<std::string> TauAnalysisTools::TauEfficiencyCorrectionsTool::m_sTriggerSFMeasurement {this, "TriggerSFMeasurement", "combined"} |
|
private |
◆ m_sVarName
| std::string TauAnalysisTools::TauEfficiencyCorrectionsTool::m_sVarName |
|
private |
◆ m_useFastSim
| Gaudi::Property<bool> TauAnalysisTools::TauEfficiencyCorrectionsTool::m_useFastSim {this, "useFastSim", false} |
|
private |
◆ m_useIncidents
| bool asg::AsgMetadataTool::m_useIncidents |
|
privateinherited |
◆ m_varHandleArraysDeclared
◆ m_vCommonEfficiencyTools
◆ m_vecEfficiencyCorrectionTypes
| Gaudi::Property<std::vector<int> > TauAnalysisTools::TauEfficiencyCorrectionsTool::m_vecEfficiencyCorrectionTypes {this, "EfficiencyCorrectionTypes", {}} |
|
private |
◆ m_vEfficiencyCorrectionTypes
| std::vector<int> TauAnalysisTools::TauEfficiencyCorrectionsTool::m_vEfficiencyCorrectionTypes |
|
private |
◆ m_vhka
◆ m_vTriggerEfficiencyTools
The documentation for this class was generated from the following files:
def retrieve(aClass, aKey=None)
Class to wrap a set of SystematicVariations.
StoreGateSvc_t m_evtStore
Pointer to StoreGate (event store by default)
std::vector< SG::VarHandleKeyArray * > m_vhka
#define ATH_MSG_VERBOSE(x)
@ IS_SIMULATION
true: simulation, false: data
uint32_t runNumber() const
The current event's run number.
virtual void setOwner(IDataHandleHolder *o)=0
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T, V, H > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>
ServiceHandle< StoreGateSvc > & evtStore()
The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc.
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T, V, H > &t)
Amg::Vector3D transform(Amg::Vector3D &v, Amg::Transform3D &tr)
Transform a point from a Trasformation3D.
const std::string & name(Level lvl)
Convenience function for translating message levels to strings.
StoreGateSvc_t m_detStore
Pointer to StoreGate (detector store by default)
virtual void renounce()=0
std::conditional< std::is_base_of< SG::VarHandleKeyArray, T >::value, VarHandleKeyArrayType, type2 >::type type
void insert(const SystematicVariation &systematic)
description: insert a systematic into the set
Class describing the basic event information.
@ Ok
The correction was done successfully.
#define ATH_MSG_WARNING(x)
This module implements the central registry for handling systematic uncertainties with CP tools.
Return value from object correction CP tools.
SG::VarHandleKey & vhKey()
Return a non-const reference to the HandleKey.
bool eventType(EventType type) const
Check for one particular bitmask value.
static SystematicRegistry & getInstance()
Get the singleton instance of the registry for the curren thread.