![]() |
ATLAS Offline Software
|
#include <METSystematicsTool.h>
Public Member Functions | |
| METSystematicsTool (const std::string &name) | |
| StatusCode | softTrkSystInitialize () |
| StatusCode | softCaloSystInitialize () |
| StatusCode | jetTrkSystInitialize () |
| StatusCode | initialize () |
| Dummy implementation of the initialisation function. | |
| CP::CorrectionCode | applyCorrection (xAOD::MissingET &inputMet, const xAOD::MissingETAssociationHelper &helper) const |
| CP::CorrectionCode | correctedCopy (const xAOD::MissingET &met, xAOD::MissingET *&outputmet, const xAOD::MissingETAssociationHelper &helper) const |
| bool | isAffectedBySystematic (const CP::SystematicVariation &var) const |
| Declare the interface that this class provides. | |
| CP::SystematicSet | affectingSystematics () const |
| the list of all systematics this tool can be affected by | |
| CP::SystematicSet | recommendedSystematics () const |
| the list of all systematics this tool recommends to use | |
| StatusCode | applySystematicVariation (const CP::SystematicSet &set) |
| effects: configure this tool for the given list of systematic variations. | |
| StatusCode | sysApplySystematicVariation (const CP::SystematicSet &) |
| effects: configure this tool for the given list of systematic variations. | |
| void | setRandomSeed (unsigned long seed) const |
| virtual void | print () const |
| Print the state of the tool. | |
| ServiceHandle< StoreGateSvc > & | evtStore () |
The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc. | |
| const ServiceHandle< StoreGateSvc > & | detStore () const |
The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc. | |
| virtual StatusCode | sysInitialize () override |
| Perform system initialization for an algorithm. | |
| virtual StatusCode | sysStart () override |
| Handle START transition. | |
| virtual std::vector< Gaudi::DataHandle * > | inputHandles () const override |
| Return this algorithm's input handles. | |
| virtual std::vector< Gaudi::DataHandle * > | outputHandles () const override |
| Return this algorithm's output handles. | |
| Gaudi::Details::PropertyBase & | declareProperty (Gaudi::Property< T, V, H > &t) |
| void | updateVHKA (Gaudi::Details::PropertyBase &) |
| MsgStream & | msg () const |
| bool | msgLvl (const MSG::Level lvl) const |
| const SystematicSet & | appliedSystematics () const |
| returns: the list of systematics that have been applied to this tool. | |
| std::string | appliedSystematicsString () const |
| returns: a string representation of appliedSystematics() guarantee: strong failures: out of memory II rationale: this is meant to be used when printing out the applied systematics for debugging purposes (or when embedding them in a string). | |
| void | testInvariant () const |
| effects: test the invariance of this object guarantee: no-fail | |
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. | |
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. | |
| StatusCode | addAffectingSystematic (const SystematicVariation &systematic, bool recommended) |
| effects: add a systematic to the list of registered systematics. | |
| StatusCode | addRecommendedSystematic (const SystematicVariation &systematic) |
| effects: add a systematic to the list of recommended systematics failures: unsupported systematic | |
| void | addAffectingSystematics (const SystematicSet &systematics) |
| effects: add a SystematicSet to the registered systematics. | |
| StatusCode | addRecommendedSystematics (const SystematicSet &systematics) |
| effects: add a SystematicSet to the recommended systematics. | |
Protected Attributes | |
| SystematicSet | m_affectingSystematics |
| description: members directly corresponding to accessors | |
| SystematicSet | m_recommendedSystematics |
Private Types | |
| typedef ServiceHandle< StoreGateSvc > | StoreGateSvc_t |
Private Member Functions | |
| FRIEND_TEST (METSystTest, TestDefaultHistosFilled) | |
| FRIEND_TEST (METSystTest, TestJetTrkHistosFilled) | |
| FRIEND_TEST (METSystTest, TestAddAffectingSystematic) | |
| FRIEND_TEST (METSystTest, TestProjectST) | |
| FRIEND_TEST (METSystTest, TestProjectST2) | |
| METSystematicsTool () | |
| CP::CorrectionCode | internalSoftTermApplyCorrection (xAOD::MissingET &softMet, xAOD::MissingETContainer const *METcont, xAOD::EventInfo const &eInfo) const |
| CP::CorrectionCode | calcJetTrackMETWithSyst (xAOD::MissingET &jettrkmet, const xAOD::MissingETAssociationHelper &helper) const |
| CP::CorrectionCode | calcJetTrackMETWithSyst (xAOD::MissingET &jettrkmet, const xAOD::MissingETAssociationHelper &helper, const xAOD::Jet *jet) const |
| CP::CorrectionCode | getCorrectedJetTrackMET (xAOD::MissingET &jettrkmet, const xAOD::MissingETAssociationHelper &helper) const |
| TRandom3 * | getTLSRandomGen () const |
| int | getNPV () const |
| xAOD::EventInfo const * | getDefaultEventInfo () const |
| StatusCode | addMETAffectingSystematics () |
| StatusCode | extractHistoPath (std::string &histfile, std::string &systpath, std::string &configdir, std::string &suffix, SystType const &type) |
| missingEt | calcPtHard (xAOD::MissingETContainer const *const cont) const |
| missingEt | variedSoftTerm (missingEt const &softTerms, missingEt const &ptHard, double varPara, double varPerp) const |
| missingEt | projectST (missingEt const &softTerms, missingEt const &ptHard) const |
| Gaudi::Details::PropertyBase & | declareGaudiProperty (Gaudi::Property< T, V, H > &hndl, const SG::VarHandleKeyType &) |
| specialization for handling Gaudi::Property<SG::VarHandleKey> | |
Private Attributes | |
| SystApplied | m_appliedSystEnum {NONE} |
| Gaudi::Property< std::string > | m_configPrefix {this, "ConfigPrefix", "METUtilities/R22_PreRecs", ""} |
| Gaudi::Property< std::string > | m_configSoftTrkFile {this, "ConfigSoftTrkFile", "TrackSoftTerms-pflow_Dec24.config", ""} |
| Gaudi::Property< std::string > | m_configJetTrkFile {this, "ConfigJetTrkFile", "", ""} |
| Gaudi::Property< std::string > | m_configSoftCaloFile {this, "ConfigSoftCaloFile", "", ""} |
| Gaudi::Property< bool > | m_useDevArea {this, "UseDevArea", false, ""} |
| std::unique_ptr< TH3D > | m_trk_shiftpara_pthard_njet_mu {} |
| std::unique_ptr< TH3D > | m_trk_resopara_pthard_njet_mu {} |
| std::unique_ptr< TH3D > | m_trk_resoperp_pthard_njet_mu {} |
| std::unique_ptr< TH3D > | m_calo_shiftpara_pthard_njet_mu {} |
| std::unique_ptr< TH3D > | m_calo_resopara_pthard_njet_mu {} |
| std::unique_ptr< TH3D > | m_calo_resoperp_pthard_njet_mu {} |
| std::unique_ptr< TH2D > | m_jet_systRpt_pt_eta {} |
| boost::thread_specific_ptr< TRandom3 > | m_rand_tls |
| int | m_units {-1} |
| SG::ReadHandleKey< xAOD::VertexContainer > | m_VertexContKey {this, "VertexContainer", "PrimaryVertices", ""} |
| SG::ReadHandleKey< xAOD::MissingETContainer > | m_TruthContKey {this, "TruthContainer", "MET_Truth", ""} |
| SG::ReadHandleKey< xAOD::EventInfo > | m_EventInfoKey {this, "EventInfo", "EventInfo", ""} |
| 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 |
| SystematicSet * | m_appliedSystematics |
| description: pointer to currenty applied systematics | |
| std::unordered_map< SystematicSet, SystematicSet > | m_systFilterMap |
| map of cached systematics filtering | |
Definition at line 84 of file METSystematicsTool.h.
|
privateinherited |
Definition at line 388 of file AthCommonDataStore.h.
| met::METSystematicsTool::METSystematicsTool | ( | const std::string & | name | ) |
Definition at line 31 of file METSystematicsTool.cxx.
|
private |
|
protectedinherited |
effects: add a systematic to the list of registered systematics.
It will optionally also add this sytematic to the recommended set. side effects: this will add the systematic to the global list of systematics, if not already there guarantee: strong failures: out of memory II
Definition at line 111 of file SystematicsTool.cxx.
|
protectedinherited |
effects: add a SystematicSet to the registered systematics.
Definition at line 141 of file SystematicsTool.cxx.
|
private |
Definition at line 39 of file METSystematicsTool.cxx.
|
protectedinherited |
effects: add a systematic to the list of recommended systematics failures: unsupported systematic
Definition at line 127 of file SystematicsTool.cxx.
|
protectedinherited |
effects: add a SystematicSet to the recommended systematics.
Definition at line 151 of file SystematicsTool.cxx.
|
inlinevirtual |
the list of all systematics this tool can be affected by
Implements CP::IReentrantSystematicsTool.
Definition at line 125 of file METSystematicsTool.h.
|
inherited |
returns: the list of systematics that have been applied to this tool.
this is not including systematics that were applied, but do not affect this tool guarantee: no-fail
Definition at line 54 of file SystematicsTool.cxx.
|
inherited |
returns: a string representation of appliedSystematics() guarantee: strong failures: out of memory II rationale: this is meant to be used when printing out the applied systematics for debugging purposes (or when embedding them in a string).
Definition at line 67 of file SystematicsTool.cxx.
|
virtual |
Implements IMETSystematicsTool.
Definition at line 236 of file METSystematicsTool.cxx.
|
inlinevirtual |
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 127 of file METSystematicsTool.h.
|
private |
Definition at line 500 of file METSystematicsTool.cxx.
|
private |
Definition at line 457 of file METSystematicsTool.cxx.
|
private |
Definition at line 606 of file METSystematicsTool.cxx.
|
virtual |
Implements IMETSystematicsTool.
Definition at line 279 of file METSystematicsTool.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.
|
inlineinherited |
The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc.
Definition at line 85 of file AthCommonDataStore.h.
|
private |
Definition at line 661 of file METSystematicsTool.cxx.
|
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 |
|
private |
|
private |
|
private |
|
private |
|
private |
Definition at line 562 of file METSystematicsTool.cxx.
|
private |
Definition at line 771 of file METSystematicsTool.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.
|
private |
Definition at line 782 of file METSystematicsTool.cxx.
|
inherited |
Get one of the tool's properties.
|
private |
Definition at line 799 of file METSystematicsTool.cxx.
|
virtual |
Dummy implementation of the initialisation function.
It's here to allow the dual-use tools to skip defining an initialisation function. Since many are doing so...
Reimplemented from asg::AsgTool.
Definition at line 83 of file METSystematicsTool.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.
|
private |
Definition at line 335 of file METSystematicsTool.cxx.
|
inlinevirtual |
Declare the interface that this class provides.
returns: whether this tool is affected by the given systematics
Implements CP::ISystematicsTool.
Definition at line 124 of file METSystematicsTool.h.
| StatusCode met::METSystematicsTool::jetTrkSystInitialize | ( | ) |
Definition at line 141 of file METSystematicsTool.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.
|
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.
|
private |
Definition at line 591 of file METSystematicsTool.cxx.
|
inlinevirtual |
the list of all systematics this tool recommends to use
Implements CP::IReentrantSystematicsTool.
Definition at line 126 of file METSystematicsTool.h.
|
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.
|
virtual |
Implements IMETSystematicsTool.
Definition at line 808 of file METSystematicsTool.cxx.
| StatusCode met::METSystematicsTool::softCaloSystInitialize | ( | ) |
Definition at line 108 of file METSystematicsTool.cxx.
| StatusCode met::METSystematicsTool::softTrkSystInitialize | ( | ) |
Definition at line 168 of file METSystematicsTool.cxx.
|
virtual |
effects: configure this tool for the given list of systematic variations.
systConfig is guaranteed to contain only supported systematics. guarantee: basic failures: out of memory II failures: unsupported combination of supported systematics failures: other tool specific errors
Implements CP::SystematicsTool.
Definition at line 199 of file METSystematicsTool.cxx.
|
overridevirtualinherited |
Perform system initialization for an algorithm.
We override this to declare all the elements of handle key arrays at the end of initialization. See comments on updateVHKA.
Reimplemented in asg::AsgMetadataTool, AthCheckedComponent< AthAlgTool >, AthCheckedComponent<::AthAlgTool >, and DerivationFramework::CfAthAlgTool.
|
overridevirtualinherited |
Handle START transition.
We override this in order to make sure that conditions handle keys can cache a pointer to the conditions container.
|
inherited |
effects: test the invariance of this object guarantee: no-fail
Definition at line 165 of file SystematicsTool.cxx.
|
inlineinherited |
Definition at line 308 of file AthCommonDataStore.h.
|
private |
Definition at line 579 of file METSystematicsTool.cxx.
|
protectedinherited |
description: members directly corresponding to accessors
Definition at line 146 of file SystematicsTool.h.
|
privateinherited |
description: pointer to currenty applied systematics
Definition at line 151 of file SystematicsTool.h.
|
private |
Definition at line 138 of file METSystematicsTool.h.
|
private |
Definition at line 161 of file METSystematicsTool.h.
|
private |
Definition at line 162 of file METSystematicsTool.h.
|
private |
Definition at line 160 of file METSystematicsTool.h.
|
private |
Definition at line 153 of file METSystematicsTool.h.
|
private |
Definition at line 151 of file METSystematicsTool.h.
|
private |
Definition at line 154 of file METSystematicsTool.h.
|
private |
Definition at line 152 of file METSystematicsTool.h.
|
privateinherited |
Pointer to StoreGate (detector store by default)
Definition at line 393 of file AthCommonDataStore.h.
|
private |
Definition at line 177 of file METSystematicsTool.h.
|
privateinherited |
Pointer to StoreGate (event store by default)
Definition at line 390 of file AthCommonDataStore.h.
|
private |
Definition at line 163 of file METSystematicsTool.h.
|
mutableprivate |
Definition at line 165 of file METSystematicsTool.h.
|
protectedinherited |
Definition at line 147 of file SystematicsTool.h.
|
privateinherited |
map of cached systematics filtering
Definition at line 154 of file SystematicsTool.h.
|
private |
Definition at line 158 of file METSystematicsTool.h.
|
private |
Definition at line 159 of file METSystematicsTool.h.
|
private |
Definition at line 157 of file METSystematicsTool.h.
|
private |
Definition at line 176 of file METSystematicsTool.h.
|
private |
Definition at line 168 of file METSystematicsTool.h.
|
private |
Definition at line 155 of file METSystematicsTool.h.
|
privateinherited |
Definition at line 399 of file AthCommonDataStore.h.
|
private |
Definition at line 175 of file METSystematicsTool.h.
|
privateinherited |
Definition at line 398 of file AthCommonDataStore.h.