![]() |
ATLAS Offline Software
|
a data handle for writing systematically varied selection properties from objects More...
#include <SysWriteSelectionHandle.h>
Public Member Functions | |
template<typename T2 > | |
SysWriteSelectionHandle (T2 *owner, const std::string &propertyName, const std::string &propertyValue, const std::string &propertyDescription) | |
standard constructor 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) |
void | setBits (const SG::AuxElement &element, SelectionType selection, const CP::SystematicSet &sys) const |
set the selection decoration More... | |
void | setBool (const SG::AuxElement &element, bool selection, const CP::SystematicSet &sys) const |
set the selection decoration More... | |
std::string | getLabel () const |
get the name/label of the decoration More... | |
const std::string & | getSelection () const |
get the actual selection string 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< ISelectionWriteAccessor > | m_accessor |
the accessor we use More... | |
std::function< MsgStream &()> | m_msg |
the message stream we use More... | |
a data handle for writing systematically varied selection properties from objects
Definition at line 30 of file SysWriteSelectionHandle.h.
CP::SysWriteSelectionHandle::SysWriteSelectionHandle | ( | T2 * | owner, |
const std::string & | propertyName, | ||
const std::string & | propertyValue, | ||
const std::string & | propertyDescription | ||
) |
standard constructor
|
overridevirtualnoexcept |
Implements CP::ISysHandleBase.
Definition at line 67 of file SysWriteSelectionHandle.cxx.
|
overridevirtual |
register and cache the systematics
Implements CP::ISysHandleBase.
Definition at line 109 of file SysWriteSelectionHandle.cxx.
|
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 101 of file SysWriteSelectionHandle.cxx.
std::string CP::SysWriteSelectionHandle::getLabel | ( | ) | const |
get the name/label of the decoration
Definition at line 75 of file SysWriteSelectionHandle.cxx.
|
overridevirtual |
get the name pattern before substitution
Implements CP::ISysHandleBase.
Definition at line 91 of file SysWriteSelectionHandle.cxx.
const std::string & CP::SysWriteSelectionHandle::getSelection | ( | ) | const |
get the actual selection string
Definition at line 83 of file SysWriteSelectionHandle.cxx.
StatusCode CP::SysWriteSelectionHandle::initialize | ( | SysListHandle & | sysListHandle, |
const ISysHandleBase & | objectHandle | ||
) |
StatusCode CP::SysWriteSelectionHandle::initialize | ( | SysListHandle & | sysListHandle, |
const ISysHandleBase & | objectHandle, | ||
SG::AllowEmptyEnum | |||
) |
Definition at line 53 of file SysWriteSelectionHandle.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 SysWriteSelectionHandle.cxx.
void CP::SysWriteSelectionHandle::setBits | ( | const SG::AuxElement & | element, |
SelectionType | selection, | ||
const CP::SystematicSet & | sys | ||
) | const |
set the selection decoration
void CP::SysWriteSelectionHandle::setBool | ( | const SG::AuxElement & | element, |
bool | selection, | ||
const CP::SystematicSet & | sys | ||
) | const |
set the selection decoration
|
private |
the accessor we use
Definition at line 107 of file SysWriteSelectionHandle.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 103 of file SysWriteSelectionHandle.h.
|
private |
the selection we use
Definition at line 99 of file SysWriteSelectionHandle.h.