![]() |
The Gaudi Framework
v29r3 (fa547fc2)
|
A select statement can either contain. More...
#include <GaudiKernel/ISelectStatement.h>


Public Types | |
| enum | SelectType { FUNCTION = 1 << 1, STRING = 1 << 2, FULL = 1 << 3, OTHER = 1 << 4 } |
| Statement type definition. More... | |
Public Types inherited from IInterface | |
| enum | Status { SUCCESS = 1, NO_INTERFACE, VERSMISMATCH, LAST_ERROR } |
| Return status. More... | |
| using | iid = Gaudi::InterfaceId< IInterface, 0, 0 > |
| Interface ID. More... | |
| using | ext_iids = Gaudi::interface_list< iid > |
| Extra interfaces. More... | |
Public Member Functions | |
| DeclareInterfaceID (ISelectStatement, 2, 0) | |
| InterfaceID. More... | |
| virtual long | type () const =0 |
| Access the type of the object. More... | |
| virtual const std::string & | criteria () const =0 |
| Access the selection string. More... | |
| virtual void | setCriteria (const std::string &crit)=0 |
| Set the type. More... | |
| virtual void | setActive (bool flag=true)=0 |
| Change activity flag. More... | |
| virtual bool | isActive () const =0 |
| Check if selection is active. More... | |
| virtual bool | operator() (void *val)=0 |
| Stupid default implementation. More... | |
Public Member Functions inherited from IInterface | |
| virtual void * | i_cast (const InterfaceID &) const =0 |
| main cast function More... | |
| virtual std::vector< std::string > | getInterfaceNames () const =0 |
| Returns a vector of strings containing the names of all the implemented interfaces. More... | |
| virtual unsigned long | addRef ()=0 |
| Increment the reference count of Interface instance. More... | |
| virtual unsigned long | release ()=0 |
| Release Interface instance. More... | |
| virtual unsigned long | refCount () const =0 |
| Current reference count. More... | |
| virtual StatusCode | queryInterface (const InterfaceID &ti, void **pp)=0 |
| Set the void** to the pointer to the requested interface of the instance. More... | |
| virtual | ~IInterface ()=default |
| Virtual destructor. More... | |
Additional Inherited Members | |
Static Public Member Functions inherited from IInterface | |
| static const InterfaceID & | interfaceID () |
| Return an instance of InterfaceID identifying the interface. More... | |
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.
Definition at line 32 of file ISelectStatement.h.
Statement type definition.
| Enumerator | |
|---|---|
| FUNCTION | |
| STRING | |
| FULL | |
| OTHER | |
Definition at line 39 of file ISelectStatement.h.
|
pure virtual |
Access the selection string.
| ISelectStatement::DeclareInterfaceID | ( | ISelectStatement | , |
| 2 | , | ||
| 0 | |||
| ) |
|
pure virtual |
Check if selection is active.
|
pure virtual |
Stupid default implementation.
|
pure virtual |
Change activity flag.
|
pure virtual |
Set the type.
|
pure virtual |
Access the type of the object.