![]() |
The Gaudi Framework
master (ff829712)
|
Class of a selection statement. More...
#include </builds/gaudi/Gaudi/GaudiKernel/include/GaudiKernel/SelectStatement.h>
Public Member Functions | |
SelectStatement (const std::string &s, long typ) | |
Standard Constructor initializing select string. | |
SelectStatement (const std::string &s) | |
Standard Constructor initializing select string. | |
SelectStatement () | |
Standard Constructor initializing function call. | |
virtual | ~SelectStatement () |
Standard Destructor. | |
long | type () const override |
Access the type of the object. | |
const std::string & | criteria () const override |
Access the selection string. | |
void | setCriteria (const std::string &crit) override |
Set the type. | |
void | setActive (bool flag=true) override |
Change activity flag. | |
bool | isActive () const override |
Check if selection is active. | |
virtual bool | operator() (void *) override |
Stupid default implementation. | |
![]() | |
void const * | i_cast (const InterfaceID &tid) const override |
Implementation of IInterface::i_cast. | |
StatusCode | queryInterface (const InterfaceID &ti, void **pp) override |
Implementation of IInterface::queryInterface. | |
std::vector< std::string > | getInterfaceNames () const override |
Implementation of IInterface::getInterfaceNames. | |
implements ()=default | |
Default constructor. | |
implements (const implements &) | |
Copy constructor (zero the reference count) | |
implements & | operator= (const implements &) |
Assignment operator (do not touch the reference count). | |
unsigned long | addRef () const override |
Reference Interface instance. | |
unsigned long | release () const override |
Release Interface instance. | |
unsigned long | refCount () const override |
Current reference count. | |
Protected Attributes | |
std::string | m_select |
Select string. | |
bool | m_isActive |
Activation flag. | |
long | m_type |
Type identifier. | |
![]() | |
std::atomic_ulong | m_refCount |
Reference counter. | |
Additional Inherited Members | |
![]() | |
using | base_class |
Typedef to this class. | |
using | extend_interfaces_base |
Typedef to the base of this class. | |
using | iids |
![]() | |
using | ext_iids |
take union of the ext_iids of all Interfaces... | |
![]() | |
unsigned long | decRef () const override |
Class of a selection statement.
A select statement can either contain
bool MySelect::operator()(IValueLocator* l) { float px, py, pz; if ( l->get("PX",px) && l->get("PY",py) && l->get("PZ",pz) ) { float mom = sqrt(px*px+py*py+pz*pz); return mom > 100.0 * GeV; } return false; }
if "true" is returned, the object will be loaded completely.
History: +------—+-------------------------------------------—+-----—+ | Date | Comment | Who | +------—+-------------------------------------------—+-----—+ | 21/10/99| Initial version. | MF | +------—+-------------------------------------------—+-----—+ Author: M.Frank Version: 1.0
Definition at line 43 of file SelectStatement.h.
|
inlineexplicit |
|
inlineexplicit |
|
inlineexplicit |
|
inlinevirtual |
|
inlineoverride |
|
inlineoverride |
|
inlineoverridevirtual |
Stupid default implementation.
Reimplemented in Gaudi::TestSuite::EvtCollectionSelector, and NTuple::Selector.
Definition at line 67 of file SelectStatement.h.
|
inlineoverride |
|
inlineoverride |
|
inlineoverride |
|
protected |
Activation flag.
Definition at line 73 of file SelectStatement.h.
|
protected |
Select string.
Definition at line 71 of file SelectStatement.h.
|
protected |
Type identifier.
Definition at line 75 of file SelectStatement.h.