ATLAS Offline Software
|
a data handle for reading systematically varied selection properties from objects More...
#include <SysReadSelectionHandle.h>
Public Member Functions | |
template<typename T2 > | |
SysReadSelectionHandle (T2 *owner, const std::string &propertyName, const std::string &propertyValue, const std::string &propertyDescription) | |
Standard constructor. More... | |
template<typename T2 > | |
SysReadSelectionHandle (const std::string &selection, T2 *owner) | |
Construct the handle directly without declaring a property. More... | |
operator bool () const noexcept | |
!empty() More... | |
StatusCode | initialize (SysListHandle &sysListHandle, const ISysHandleBase &objectHandle) |
initialize the accessor More... | |
StatusCode | initialize (SysListHandle &sysListHandle, const ISysHandleBase &objectHandle, SG::AllowEmptyEnum) |
bool | getBool (const SG::AuxElement &element, const CP::SystematicSet &sys) const |
get the selection as a bool More... | |
const std::string & | getSelectionName () const |
get the name of the selection More... | |
virtual bool | empty () const noexcept override |
virtual std::string | getNamePattern () const override |
get the name pattern before substitution More... | |
virtual CP::SystematicSet | getInputAffecting (const ISystematicsSvc &svc) const override |
get the affecting systematics if this is an input handle More... | |
virtual StatusCode | fillSystematics (const ISystematicsSvc &svc, const CP::SystematicSet &fullAffecting, const std::vector< CP::SystematicSet > &sysList) override |
register and cache the systematics More... | |
bool | msgLvl (const MSG::Level lvl) const |
Test the output level of the object. More... | |
MsgStream & | msg () const |
The standard message stream. More... | |
MsgStream & | msg (const MSG::Level lvl) const |
The standard message stream. More... | |
Private Attributes | |
std::string | m_selection |
the selection we use More... | |
const ISysHandleBase * | m_objectHandle {nullptr} |
the object handle we use More... | |
std::unique_ptr< ISelectionReadAccessor > | m_accessor |
the accessor we use More... | |
std::function< MsgStream &()> | m_msg |
the message stream we use More... | |
a data handle for reading systematically varied selection properties from objects
Definition at line 30 of file SysReadSelectionHandle.h.
CP::SysReadSelectionHandle::SysReadSelectionHandle | ( | T2 * | owner, |
const std::string & | propertyName, | ||
const std::string & | propertyValue, | ||
const std::string & | propertyDescription | ||
) |
Standard constructor.
T2 | The type of the owner |
owner | Used to declare the property and for its messaging |
propertyName | The name of the property to declare |
propertyValue | The default value for the property |
propertyDescription | The description of the property |
This version of the constructor declares a property on the parent object and should usually be preferred when the selection to be read should be configurable
CP::SysReadSelectionHandle::SysReadSelectionHandle | ( | const std::string & | selection, |
T2 * | owner | ||
) |
Construct the handle directly without declaring a property.
|
overridevirtualnoexcept |
Implements CP::ISysHandleBase.
Definition at line 67 of file SysReadSelectionHandle.cxx.
|
overridevirtual |
register and cache the systematics
Implements CP::ISysHandleBase.
Definition at line 98 of file SysReadSelectionHandle.cxx.
bool CP::SysReadSelectionHandle::getBool | ( | const SG::AuxElement & | element, |
const CP::SystematicSet & | sys | ||
) | const |
get the selection as a bool
|
overridevirtual |
get the affecting systematics if this is an input handle
This returns the empty set if this is either not an input handle, or if the input handle is not affected by systematics.
Implements CP::ISysHandleBase.
Definition at line 90 of file SysReadSelectionHandle.cxx.
|
overridevirtual |
get the name pattern before substitution
Implements CP::ISysHandleBase.
Definition at line 75 of file SysReadSelectionHandle.cxx.
const std::string & CP::SysReadSelectionHandle::getSelectionName | ( | ) | const |
get the name of the selection
Definition at line 83 of file SysReadSelectionHandle.cxx.
StatusCode CP::SysReadSelectionHandle::initialize | ( | SysListHandle & | sysListHandle, |
const ISysHandleBase & | objectHandle | ||
) |
StatusCode CP::SysReadSelectionHandle::initialize | ( | SysListHandle & | sysListHandle, |
const ISysHandleBase & | objectHandle, | ||
SG::AllowEmptyEnum | |||
) |
Definition at line 53 of file SysReadSelectionHandle.cxx.
|
inherited |
The standard message stream.
Definition at line 24 of file AsgMessagingForward.cxx.
|
inherited |
|
inherited |
Test the output level of the object.
lvl | The message level to test against |
true
If messages at level "lvl" will be printed Definition at line 11 of file AsgMessagingForward.cxx.
|
explicitnoexcept |
!empty()
Definition at line 25 of file SysReadSelectionHandle.cxx.
|
private |
the accessor we use
Definition at line 109 of file SysReadSelectionHandle.h.
|
privateinherited |
the message stream we use
This used to be a simple pointer to the MsgStream
itself, but in AthenaMT the actual object used is local to the thread. So instead of pointing to it directly we are now using a function to look it up, which will get the thread-local object.
Definition at line 77 of file AsgMessagingForward.h.
|
private |
the object handle we use
Definition at line 105 of file SysReadSelectionHandle.h.
|
private |
the selection we use
Definition at line 101 of file SysReadSelectionHandle.h.