|
Gaudi Framework, version v22r0 |
| Home | Generated: 9 Feb 2011 |
Class of a selection statement. More...
#include <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 |
| Access the type of the object. | |
| const std::string & | criteria () const |
| Access the selection string. | |
| void | setCriteria (const std::string &crit) |
| Set the type. | |
| void | setActive (bool flag=true) |
| Change activity flag. | |
| bool | isActive () const |
| Check if selection is active. | |
| virtual bool | operator() (void *) |
| Stupid default implementation. | |
Protected Attributes | |
| std::string | m_select |
| Select string. | |
| bool | m_isActive |
| Activation flag. | |
| long | m_type |
| Type identifier. | |
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 46 of file SelectStatement.h.
| SelectStatement::SelectStatement | ( | const std::string & | s, | |
| long | typ | |||
| ) | [inline, explicit] |
Standard Constructor initializing select string.
Definition at line 49 of file SelectStatement.h.
00050 : m_select(s), m_isActive(false), m_type(typ) 00051 { 00052 }
| SelectStatement::SelectStatement | ( | const std::string & | s | ) | [inline, explicit] |
Standard Constructor initializing select string.
Definition at line 54 of file SelectStatement.h.
00055 : m_select(s),m_isActive(false), m_type(STRING) 00056 { 00057 }
| SelectStatement::SelectStatement | ( | ) | [inline, explicit] |
Standard Constructor initializing function call.
Definition at line 59 of file SelectStatement.h.
00060 : m_isActive(false), m_type(FUNCTION) 00061 { 00062 }
| virtual SelectStatement::~SelectStatement | ( | ) | [inline, virtual] |
| const std::string& SelectStatement::criteria | ( | ) | const [inline, virtual] |
Access the selection string.
Implements ISelectStatement.
Definition at line 71 of file SelectStatement.h.
00071 { 00072 return m_select; 00073 }
| bool SelectStatement::isActive | ( | ) | const [inline, virtual] |
Check if selection is active.
Implements ISelectStatement.
Definition at line 84 of file SelectStatement.h.
00084 { 00085 return m_isActive; 00086 }
| virtual bool SelectStatement::operator() | ( | void * | ) | [inline, virtual] |
Stupid default implementation.
Implements ISelectStatement.
Reimplemented in NTuple::Selector.
Definition at line 88 of file SelectStatement.h.
| void SelectStatement::setActive | ( | bool | flag = true |
) | [inline, virtual] |
Change activity flag.
Implements ISelectStatement.
Definition at line 80 of file SelectStatement.h.
00080 { 00081 m_isActive = flag; 00082 }
| void SelectStatement::setCriteria | ( | const std::string & | crit | ) | [inline, virtual] |
| long SelectStatement::type | ( | ) | const [inline, virtual] |
Access the type of the object.
Implements ISelectStatement.
Definition at line 67 of file SelectStatement.h.
00067 { 00068 return m_type; 00069 }
bool SelectStatement::m_isActive [protected] |
Activation flag.
Definition at line 95 of file SelectStatement.h.
std::string SelectStatement::m_select [protected] |
Select string.
Definition at line 93 of file SelectStatement.h.
long SelectStatement::m_type [protected] |
Type identifier.
Definition at line 97 of file SelectStatement.h.