![]() |
ATLAS Offline Software
|
#include <AsgElectronEfficiencyCorrectionTool.h>
Classes | |
| struct | Accessors |
| struct | SystConf |
Public Types | |
Definition of the StoreGate-like object's definition | |
| typedef ServiceHandle< StoreGateSvc > | MetaStore_t |
| Type of the metadata store object in Athena. | |
| typedef const ServiceHandle< StoreGateSvc > & | MetaStorePtr_t |
| Type of the metadata store pointer in standalone mode. | |
Public Member Functions | |
| void | callSingleEvent (columnar::ElectronRange electrons, columnar::EventInfoId event) const |
| void | callEvents (columnar::EventContextRange events) const override |
| virtual StatusCode | sysInitialize () |
| Function initialising the tool in the correct way in Athena. | |
| virtual void | print () const |
| Print the state of the tool. | |
| ServiceHandle< StoreGateSvc > & | evtStore () |
The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc. | |
| const ServiceHandle< StoreGateSvc > & | detStore () const |
The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc. | |
| virtual StatusCode | sysStart () override |
| Handle START transition. | |
| virtual std::vector< Gaudi::DataHandle * > | inputHandles () const override |
| Return this algorithm's input handles. | |
| virtual std::vector< Gaudi::DataHandle * > | outputHandles () const override |
| Return this algorithm's output handles. | |
| Gaudi::Details::PropertyBase & | declareProperty (Gaudi::Property< T, V, H > &t) |
| void | updateVHKA (Gaudi::Details::PropertyBase &) |
| MsgStream & | msg () const |
| bool | msgLvl (const MSG::Level lvl) const |
Functions providing access to the input/output metadata | |
| MetaStorePtr_t | inputMetaStore () const |
| Accessor for the input metadata store. | |
| MetaStorePtr_t | outputMetaStore () const |
| Accessor for the output metadata store. | |
Additional helper functions, not directly mimicking Athena | |
| template<class T> | |
| const T * | getProperty (const std::string &name) const |
| Get one of the tool's properties. | |
| const std::string & | msg_level_name () const __attribute__((deprecated)) |
| A deprecated function for getting the message level's name. | |
| const std::string & | getName (const void *ptr) const |
| Get the name of an object that is / should be in the event store. | |
| SG::sgkey_t | getKey (const void *ptr) const |
| Get the (hashed) key of an object that is in the event store. | |
Public Attributes | |
| std::unique_ptr< Accessors > | m_accessors |
Protected Member Functions | |
| void | renounceArray (SG::VarHandleKeyArray &handlesArray) |
| remove all handles from I/O resolution | |
| std::enable_if_t< std::is_void_v< std::result_of_t< decltype(&T::renounce)(T)> > &&!std::is_base_of_v< SG::VarHandleKeyArray, T > &&std::is_base_of_v< Gaudi::DataHandle, T >, void > | renounce (T &h) |
| void | extraDeps_update_handler (Gaudi::Details::PropertyBase &ExtraDeps) |
| Add StoreName to extra input/output deps as needed. | |
Callback functions helping in metadata reading/writing | |
| void | setUseIncidents (const bool flag) |
| virtual void | handle (const Incident &inc) |
| Function receiving incidents from IncidentSvc/TEvent. | |
| virtual StatusCode | endInputFile () |
| Function called when the currently open input file got completely processed. | |
| virtual StatusCode | metaDataStop () |
| Function called when the tool should write out its metadata. | |
Private Types | |
| typedef ServiceHandle< StoreGateSvc > | StoreGateSvc_t |
Private Member Functions | |
| virtual ASG_TOOL_CLASS(AsgElectronEfficiencyCorrectionTool, IAsgElectronEfficiencyCorrectionTool) public | ~AsgElectronEfficiencyCorrectionTool () override final |
| Standard destructor. | |
| virtual StatusCode | initialize () override final |
| Gaudi Service Interface method implementations. | |
| virtual StatusCode | beginInputFile () override final |
| Function called when a new input file is opened. | |
| virtual StatusCode | beginEvent () override final |
| Function called when a new events is loaded. | |
| virtual CP::SystematicSet | affectingSystematics () const override final |
| returns: the list of all systematics this tool can be affected by | |
| virtual CP::SystematicSet | recommendedSystematics () const override final |
| returns: the list of all systematics this tool recommends to use | |
| virtual bool | isAffectedBySystematic (const CP::SystematicVariation &systematic) const override final |
| returns: whether this tool is affected by the given systematis | |
| virtual StatusCode | applySystematicVariation (const CP::SystematicSet &systConfig) override final |
| Configure this tool for the given systematics. | |
| virtual CP::CorrectionCode | getEfficiencyScaleFactor (const xAOD::Electron &inputObject, double &efficiencyScaleFactor) const override final |
| CP::CorrectionCode | getEfficiencyScaleFactor (columnar::ElectronId inputObject, double &efficiencyScaleFactor, columnar::EventInfoId info) const |
| virtual CP::CorrectionCode | getEfficiencyScaleFactor (const double et, const double cluster_eta, const unsigned int runNumber, double &efficiencyScaleFactor) const override final |
| virtual CP::CorrectionCode | applyEfficiencyScaleFactor (const xAOD::Electron &inputObject) const override final |
| virtual int | getNumberOfToys () const override final |
| virtual void | printCorrelationModels () const override final |
| print available/implemented correlation models | |
| virtual const CP::SystematicSet & | appliedSystematics () const override final |
| returns: the currently applied systematics | |
| virtual int | systUncorrVariationIndex (const xAOD::Electron &inputObject) const override final |
| int | systUncorrVariationIndex (columnar::ElectronId inputObject) const |
| StatusCode | registerSystematics () |
| int | currentSimplifiedUncorrSystRegion (const double cluster_eta, const double et) const |
| int | currentUncorrSystRegion (const double cluster_eta, const double et) const |
| StatusCode | InitSystematics () |
| initialize the systematics | |
| virtual StatusCode | getFile (const std::string &recokey, const std::string &idkey, const std::string &isokey, const std::string &trigkey) |
| Gets the correction filename from map. | |
| StatusCode | get_simType_from_metadata (PATCore::ParticleDataType::DataType &result) const |
| Gaudi::Details::PropertyBase & | declareGaudiProperty (Gaudi::Property< T, V, H > &hndl, const SG::VarHandleKeyType &) |
| specialization for handling Gaudi::Property<SG::VarHandleKey> | |
Private Attributes | |
| bool | m_metadata_retrieved = false |
| To check if the metadata can be retrieved. | |
| std::unique_ptr< Root::TElectronEfficiencyCorrectionTool > | m_rootTool = nullptr |
| Pointer to the underlying ROOT based tool. | |
| std::unordered_map< CP::SystematicSet, CP::SystematicSet > | m_systFilter |
| Systematics filter map. | |
| CP::SystematicSet | m_affectedSys |
| Affected systematic, should be done only once. | |
| CP::SystematicSet * | m_appliedSystematics |
| Currently applied systematics. | |
| std::string | m_correlation_model_name |
| int | m_correlation_model |
| std::string | m_mapFile |
| std::string | m_recoKey |
| std::string | m_idKey |
| std::string | m_isoKey |
| std::string | m_trigKey |
| std::vector< std::string > | m_corrFileNameList |
| The list of file names. | |
| std::string | m_resultPrefix |
| The prefix string for the result. | |
| std::string | m_resultName |
| The string for the result. | |
| std::string | m_sysSubstring |
| std::string | m_eventInfoCollectionName |
| The Event info collection name. | |
| bool | m_useRandomRunNumber |
| int | m_defaultRandomRunNumber |
| PATCore::ParticleDataType::DataType | m_dataType |
| int | m_dataTypeOverwrite |
| Force the data type to a given value. | |
| int | m_number_of_toys |
| int | m_seed_toys |
| double | m_scale_toys |
| int | m_nCorrSyst |
| int | m_nUncorrSyst |
| std::vector< std::pair< float, std::vector< float > > > | m_pteta_bins |
| std::vector< float > | m_uncorrSimplfEtaBinsUser |
| std::vector< float > | m_uncorrSimplfEtBinsUser |
| TH2F * | m_UncorrRegions |
| int | m_nSimpleUncorrSyst |
| std::string | m_toysBasename |
| std::vector< CP::SystematicVariation > | m_corrVarUp |
| std::vector< CP::SystematicVariation > | m_corrVarDown |
| std::vector< CP::SystematicVariation > | m_uncorrVarUp |
| std::vector< CP::SystematicVariation > | m_uncorrVarDown |
| MetaStore_t | m_inputMetaStore |
| Object accessing the input metadata store. | |
| MetaStore_t | m_outputMetaStore |
| Object accessing the output metadata store. | |
| bool | m_beginInputFileCalled |
| Flag helping to discover when the tool misses the opening of the first input file. | |
| bool | m_useIncidents |
| StoreGateSvc_t | m_evtStore |
| Pointer to StoreGate (event store by default) | |
| StoreGateSvc_t | m_detStore |
| Pointer to StoreGate (detector store by default) | |
| std::vector< SG::VarHandleKeyArray * > | m_vhka |
| bool | m_varHandleArraysDeclared |
Definition at line 41 of file AsgElectronEfficiencyCorrectionTool.h.
|
inherited |
Type of the metadata store object in Athena.
Definition at line 66 of file AsgMetadataTool.h.
|
inherited |
Type of the metadata store pointer in standalone mode.
Definition at line 68 of file AsgMetadataTool.h.
|
privateinherited |
Definition at line 388 of file AthCommonDataStore.h.
|
finaloverrideprivatevirtual |
returns: the list of all systematics this tool can be affected by
Implements CP::IReentrantSystematicsTool.
Definition at line 572 of file AsgElectronEfficiencyCorrectionTool.cxx.
|
inlinefinaloverrideprivatevirtual |
returns: the currently applied systematics
Implements IAsgElectronEfficiencyCorrectionTool.
Definition at line 115 of file AsgElectronEfficiencyCorrectionTool.h.
|
finaloverrideprivatevirtual |
Implements IAsgElectronEfficiencyCorrectionTool.
Definition at line 539 of file AsgElectronEfficiencyCorrectionTool.cxx.
|
finaloverrideprivatevirtual |
Configure this tool for the given systematics.
Apply one variation at a time.
Implements CP::ISystematicsTool.
Definition at line 598 of file AsgElectronEfficiencyCorrectionTool.cxx.
|
finaloverrideprivatevirtual |
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 933 of file AsgElectronEfficiencyCorrectionTool.cxx.
|
finaloverrideprivatevirtual |
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 898 of file AsgElectronEfficiencyCorrectionTool.cxx.
|
override |
Definition at line 1026 of file AsgElectronEfficiencyCorrectionTool.cxx.
| void AsgElectronEfficiencyCorrectionTool::callSingleEvent | ( | columnar::ElectronRange | electrons, |
| columnar::EventInfoId | event ) const |
Definition at line 1004 of file AsgElectronEfficiencyCorrectionTool.cxx.
|
private |
Definition at line 716 of file AsgElectronEfficiencyCorrectionTool.cxx.
|
private |
Definition at line 755 of file AsgElectronEfficiencyCorrectionTool.cxx.
|
inlineprivateinherited |
specialization for handling Gaudi::Property<SG::VarHandleKey>
Definition at line 156 of file AthCommonDataStore.h.
|
inlineinherited |
Definition at line 145 of file AthCommonDataStore.h.
|
inlineinherited |
The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc.
Definition at line 95 of file AthCommonDataStore.h.
|
protectedvirtualinherited |
Function called when the currently open input file got completely processed.
Dummy implementation that can be overridden by the derived tool.
Reimplemented in BookkeeperDumperTool, BookkeeperTool, xAODMaker::TriggerMenuMetaDataTool, and xAODMaker::TruthMetaDataTool.
Definition at line 193 of file AsgMetadataTool.cxx.
|
inlineinherited |
The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc.
Definition at line 85 of file AthCommonDataStore.h.
|
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
|
private |
Definition at line 946 of file AsgElectronEfficiencyCorrectionTool.cxx.
|
private |
Definition at line 347 of file AsgElectronEfficiencyCorrectionTool.cxx.
|
finaloverrideprivatevirtual |
Implements IAsgElectronEfficiencyCorrectionTool.
Definition at line 399 of file AsgElectronEfficiencyCorrectionTool.cxx.
|
finaloverrideprivatevirtual |
Implements IAsgElectronEfficiencyCorrectionTool.
Definition at line 334 of file AsgElectronEfficiencyCorrectionTool.cxx.
|
privatevirtual |
Gets the correction filename from map.
Definition at line 845 of file AsgElectronEfficiencyCorrectionTool.cxx.
|
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.
| ptr | The bare pointer to the object that the event store should know about |
Definition at line 119 of file AsgTool.cxx.
|
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.
| ptr | The bare pointer to the object that the event store should know about |
Definition at line 106 of file AsgTool.cxx.
|
inlinefinaloverrideprivatevirtual |
Implements IAsgElectronEfficiencyCorrectionTool.
Definition at line 97 of file AsgElectronEfficiencyCorrectionTool.h.
|
inherited |
Get one of the tool's properties.
|
protectedvirtualinherited |
Function receiving incidents from IncidentSvc/TEvent.
Reimplemented in Trig::TrigDecisionTool.
Definition at line 135 of file AsgMetadataTool.cxx.
|
finaloverrideprivatevirtual |
Gaudi Service Interface method implementations.
Reimplemented from asg::AsgTool.
Definition at line 150 of file AsgElectronEfficiencyCorrectionTool.cxx.
|
private |
initialize the systematics
Definition at line 646 of file AsgElectronEfficiencyCorrectionTool.cxx.
|
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.
|
inherited |
Accessor for the input metadata store.
Definition at line 93 of file AsgMetadataTool.cxx.
|
finaloverrideprivatevirtual |
returns: whether this tool is affected by the given systematis
returns: bool indicating if affected by the variation
Implements CP::ISystematicsTool.
Definition at line 556 of file AsgElectronEfficiencyCorrectionTool.cxx.
|
protectedvirtualinherited |
Function called when the tool should write out its metadata.
Dummy implementation that can be overridden by the derived tool.
Reimplemented in BookkeeperDumperTool, BookkeeperTool, xAODMaker::TriggerMenuMetaDataTool, and xAODMaker::TruthMetaDataTool.
Definition at line 209 of file AsgMetadataTool.cxx.
|
inlineinherited |
Definition at line 24 of file AthCommonMsg.h.
|
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:
This function's name doesn't follow the ATLAS coding rules, and as such will be removed in the not too distant future.
Definition at line 101 of file AsgTool.cxx.
|
inlineinherited |
Definition at line 30 of file AthCommonMsg.h.
|
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.
|
inherited |
Accessor for the output metadata store.
Definition at line 102 of file AsgMetadataTool.cxx.
|
virtualinherited |
Print the state of the tool.
Implements asg::IAsgTool.
Reimplemented in AsgHelloTool, HI::HIPileupTool, JetBottomUpSoftDrop, JetConstituentsRetriever, JetDumper, JetFinder, JetFromPseudojet, JetModifiedMassDrop, JetPileupLabelingTool, JetPruner, JetPseudojetRetriever, JetReclusterer, JetReclusteringTool, JetRecTool, JetRecursiveSoftDrop, JetSoftDrop, JetSplitter, JetSubStructureMomentToolsBase, JetToolRunner, JetTrimmer, JetTruthLabelingTool, KtDeltaRTool, and LundVariablesTool.
Definition at line 131 of file AsgTool.cxx.
|
inlinefinaloverrideprivatevirtual |
print available/implemented correlation models
Implements IAsgElectronEfficiencyCorrectionTool.
Definition at line 102 of file AsgElectronEfficiencyCorrectionTool.h.
|
finaloverrideprivatevirtual |
returns: the list of all systematics this tool recommends to use
Implements CP::IReentrantSystematicsTool.
Definition at line 592 of file AsgElectronEfficiencyCorrectionTool.cxx.
|
private |
Definition at line 579 of file AsgElectronEfficiencyCorrectionTool.cxx.
|
inlineprotectedinherited |
Definition at line 380 of file AthCommonDataStore.h.
|
inlineprotectedinherited |
remove all handles from I/O resolution
Definition at line 364 of file AthCommonDataStore.h.
|
inlineprotectedinherited |
Definition at line 132 of file AsgMetadataTool.h.
|
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.
|
overridevirtualinherited |
Handle START transition.
We override this in order to make sure that conditions handle keys can cache a pointer to the conditions container.
|
private |
Definition at line 815 of file AsgElectronEfficiencyCorrectionTool.cxx.
|
finaloverrideprivatevirtual |
Implements IAsgElectronEfficiencyCorrectionTool.
Definition at line 808 of file AsgElectronEfficiencyCorrectionTool.cxx.
|
inlineinherited |
Definition at line 308 of file AthCommonDataStore.h.
|
finaloverrideprivatevirtual |
Standard destructor.
Definition at line 142 of file AsgElectronEfficiencyCorrectionTool.cxx.
| std::unique_ptr<Accessors> AsgElectronEfficiencyCorrectionTool::m_accessors |
Definition at line 256 of file AsgElectronEfficiencyCorrectionTool.h.
|
private |
Affected systematic, should be done only once.
Definition at line 162 of file AsgElectronEfficiencyCorrectionTool.h.
|
private |
Currently applied systematics.
Definition at line 165 of file AsgElectronEfficiencyCorrectionTool.h.
|
privateinherited |
Flag helping to discover when the tool misses the opening of the first input file.
Definition at line 126 of file AsgMetadataTool.h.
|
private |
Definition at line 169 of file AsgElectronEfficiencyCorrectionTool.h.
|
private |
Definition at line 168 of file AsgElectronEfficiencyCorrectionTool.h.
|
private |
The list of file names.
Definition at line 181 of file AsgElectronEfficiencyCorrectionTool.h.
|
private |
Definition at line 230 of file AsgElectronEfficiencyCorrectionTool.h.
|
private |
Definition at line 229 of file AsgElectronEfficiencyCorrectionTool.h.
|
private |
Definition at line 200 of file AsgElectronEfficiencyCorrectionTool.h.
|
private |
Force the data type to a given value.
Definition at line 203 of file AsgElectronEfficiencyCorrectionTool.h.
|
private |
Definition at line 197 of file AsgElectronEfficiencyCorrectionTool.h.
|
privateinherited |
Pointer to StoreGate (detector store by default)
Definition at line 393 of file AthCommonDataStore.h.
|
private |
The Event info collection name.
Definition at line 193 of file AsgElectronEfficiencyCorrectionTool.h.
|
privateinherited |
Pointer to StoreGate (event store by default)
Definition at line 390 of file AthCommonDataStore.h.
|
private |
Definition at line 176 of file AsgElectronEfficiencyCorrectionTool.h.
|
privateinherited |
Object accessing the input metadata store.
Definition at line 119 of file AsgMetadataTool.h.
|
private |
Definition at line 177 of file AsgElectronEfficiencyCorrectionTool.h.
|
private |
Definition at line 172 of file AsgElectronEfficiencyCorrectionTool.h.
|
private |
To check if the metadata can be retrieved.
Definition at line 153 of file AsgElectronEfficiencyCorrectionTool.h.
|
private |
Definition at line 215 of file AsgElectronEfficiencyCorrectionTool.h.
|
private |
Definition at line 225 of file AsgElectronEfficiencyCorrectionTool.h.
|
private |
Definition at line 206 of file AsgElectronEfficiencyCorrectionTool.h.
|
private |
Definition at line 216 of file AsgElectronEfficiencyCorrectionTool.h.
|
privateinherited |
Object accessing the output metadata store.
Definition at line 121 of file AsgMetadataTool.h.
|
private |
Definition at line 217 of file AsgElectronEfficiencyCorrectionTool.h.
|
private |
Definition at line 175 of file AsgElectronEfficiencyCorrectionTool.h.
|
private |
The string for the result.
Definition at line 187 of file AsgElectronEfficiencyCorrectionTool.h.
|
private |
The prefix string for the result.
Definition at line 184 of file AsgElectronEfficiencyCorrectionTool.h.
|
private |
Pointer to the underlying ROOT based tool.
Definition at line 156 of file AsgElectronEfficiencyCorrectionTool.h.
|
private |
Definition at line 212 of file AsgElectronEfficiencyCorrectionTool.h.
|
private |
Definition at line 209 of file AsgElectronEfficiencyCorrectionTool.h.
|
private |
Definition at line 190 of file AsgElectronEfficiencyCorrectionTool.h.
|
private |
Systematics filter map.
Definition at line 159 of file AsgElectronEfficiencyCorrectionTool.h.
|
private |
Definition at line 228 of file AsgElectronEfficiencyCorrectionTool.h.
|
private |
Definition at line 178 of file AsgElectronEfficiencyCorrectionTool.h.
|
private |
Definition at line 224 of file AsgElectronEfficiencyCorrectionTool.h.
|
private |
Definition at line 220 of file AsgElectronEfficiencyCorrectionTool.h.
|
private |
Definition at line 221 of file AsgElectronEfficiencyCorrectionTool.h.
|
private |
Definition at line 232 of file AsgElectronEfficiencyCorrectionTool.h.
|
private |
Definition at line 231 of file AsgElectronEfficiencyCorrectionTool.h.
|
privateinherited |
Definition at line 128 of file AsgMetadataTool.h.
|
private |
Definition at line 196 of file AsgElectronEfficiencyCorrectionTool.h.
|
privateinherited |
Definition at line 399 of file AthCommonDataStore.h.
|
privateinherited |
Definition at line 398 of file AthCommonDataStore.h.