ATLAS Offline Software
|
a data handle for reading selection properties from objects More...
#include <SelectionReadHandle.h>
Public Member Functions | |
template<typename T2 > | |
SelectionReadHandle (T2 *owner, const std::string &propertyName, const std::string &propertyValue, const std::string &propertyDescription) | |
standard constructor More... | |
bool | empty () const noexcept |
whether we have a name configured More... | |
operator bool () const noexcept | |
!empty() More... | |
StatusCode | initialize () |
initialize the accessor More... | |
bool | getBool (const SG::AuxElement &element) const |
get the selection as a bool More... | |
Private Attributes | |
std::string | m_selection |
the selection we use More... | |
std::unique_ptr< ISelectionReadAccessor > | m_accessor |
the accessor we use More... | |
a data handle for reading selection properties from objects
Essentially this is just a wrapper around ISelectionReadAccessor to make it easier to use in an algorithm. Since we are now using this a lot, it seems like a good idea to streamline this as much as possible.
Definition at line 28 of file SelectionReadHandle.h.
CP::SelectionReadHandle::SelectionReadHandle | ( | T2 * | owner, |
const std::string & | propertyName, | ||
const std::string & | propertyValue, | ||
const std::string & | propertyDescription | ||
) |
standard constructor
|
noexcept |
whether we have a name configured
Definition at line 22 of file SelectionReadHandle.cxx.
bool CP::SelectionReadHandle::getBool | ( | const SG::AuxElement & | element | ) | const |
get the selection as a bool
StatusCode CP::SelectionReadHandle::initialize | ( | ) |
initialize the accessor
Definition at line 38 of file SelectionReadHandle.cxx.
|
explicitnoexcept |
!empty()
Definition at line 30 of file SelectionReadHandle.cxx.
|
private |
the accessor we use
Definition at line 72 of file SelectionReadHandle.h.
|
private |
the selection we use
Definition at line 68 of file SelectionReadHandle.h.