|
Gaudi Framework, version v23r2 |
| Home | Generated: Thu Jun 28 2012 |
A select statement can either contain
#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 Member Functions | |
| DeclareInterfaceID (ISelectStatement, 2, 0) | |
| InterfaceID. | |
| virtual long | type () const =0 |
| Access the type of the object. | |
| virtual const std::string & | criteria () const =0 |
| Access the selection string. | |
| virtual void | setCriteria (const std::string &crit)=0 |
| Set the type. | |
| virtual void | setActive (bool flag=true)=0 |
| Change activity flag. | |
| virtual bool | isActive () const =0 |
| Check if selection is active. | |
| virtual bool | operator() (void *val)=0 |
| Stupid default implementation. | |
A select statement can either contain
for refining an SQL statement
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 33 of file ISelectStatement.h.
| virtual const std::string& ISelectStatement::criteria | ( | ) | const [pure virtual] |
Access the selection string.
Implemented in SelectStatement.
| ISelectStatement::DeclareInterfaceID | ( | ISelectStatement | , |
| 2 | , | ||
| 0 | |||
| ) |
| virtual bool ISelectStatement::isActive | ( | ) | const [pure virtual] |
Check if selection is active.
Implemented in SelectStatement.
| virtual bool ISelectStatement::operator() | ( | void * | val ) | [pure virtual] |
Stupid default implementation.
Implemented in NTuple::Selector, and SelectStatement.
| virtual void ISelectStatement::setActive | ( | bool | flag = true ) |
[pure virtual] |
Change activity flag.
Implemented in SelectStatement.
| virtual void ISelectStatement::setCriteria | ( | const std::string & | crit ) | [pure virtual] |
Set the type.
Implemented in SelectStatement.
| virtual long ISelectStatement::type | ( | ) | const [pure virtual] |
Access the type of the object.
Implemented in SelectStatement.