| # Gaudi Framework, version v25r0 |

Home |  | Generated: Mon Feb 17 2014

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes
- Files

- Class List
- Class Index
- Class Hierarchy
- Class Members

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Public Member Functions | Protected Attributes | List of all members
NTuple::Selector Class Reference

NTuple Selector class. More...

`#include <Selector.h>`

Inheritance diagram for NTuple::Selector:
[legend]
Collaboration diagram for NTuple::Selector:
[legend]

## Public Member Functions
| Selector (IInterface *svc)
| Standard constructor.
virtual | ~Selector ()
| Standard Destructor.
bool | firstCall () const
| Check for first call.
StatusCode | initResult () const
| Access initialization status.
virtual bool | operator() (void *nt)
| Default callback from interface.
virtual bool | operator() (NTuple::Tuple *nt)
| Specialized callback for NTuples.
virtual StatusCode | initialize (NTuple::Tuple *nt)
| Selector Initialization.
Public Member Functions inherited from SelectStatement
| 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.

## Protected Attributes
IInterface * | m_parent
| reference to parent interface
bool | m_firstCall
| Boolean to indicate need for initialization.
StatusCode | m_status
| StatusCode indication initialization result.
Protected Attributes inherited from SelectStatement
std::string | m_select
| Select string.
bool | m_isActive
| Activation flag.
long | m_type
| Type identifier.

## Additional Inherited Members
Public Types inherited from implements1< ISelectStatement >
typedef implements1 | base_class
| Typedef to this class.
typedef extend_interfaces1 < ISelectStatement > | extend_interfaces_base
| Typedef to the base of this class.
typedef extend_interfaces_base::ext_iids | interfaces
| MPL set of all the implemented interfaces.
Static Public Member Functions inherited from IInterface
static const InterfaceID & | interfaceID ()
| Return an instance of InterfaceID identifying the interface.

## Detailed Description

NTuple Selector class.

Definition at line 29 of file Selector.h.

## Constructor & Destructor Documentation

NTuple::Selector::Selector | ( | IInterface * | svc | ) |
| inline

Standard constructor.

Definition at line 39 of file Selector.h.

: m_parent(svc), m_firstCall(true)
{
}

virtual NTuple::Selector::~Selector | ( |  | ) |
| inline virtual

Standard Destructor.

Definition at line 43 of file Selector.h.

{
}

## Member Function Documentation

bool NTuple::Selector::firstCall | ( |  | ) | const
| inline

Check for first call.

Definition at line 46 of file Selector.h.

{
return m_firstCall;
}

StatusCode NTuple::Selector::initialize | ( | NTuple::Tuple * | nt | ) |
| virtual

Selector Initialization.

Selector Initialisation.

Definition at line 21 of file Selector.cpp.

{
return StatusCode::SUCCESS;
}

StatusCode NTuple::Selector::initResult | ( |  | ) | const
| inline

Access initialization status.

Definition at line 50 of file Selector.h.

{
return m_status;
}

bool NTuple::Selector::operator() | ( | void * | nt | ) |
| virtual

Default callback from interface.

Overloaded callback from SelectStatement.

Reimplemented from SelectStatement.

Definition at line 26 of file Selector.cpp.

{
DataObject* p = (DataObject*)nt;
bool result = false;
try {
NTuple::Tuple* tuple = dynamic_cast<NTuple::Tuple*>(p);
if ( 0 != tuple ) {
if ( m_firstCall ) {
m_status = initialize(tuple);
m_firstCall = false;
}
if ( m_status.isSuccess() ) {
result = this->operator()(tuple);
}
}
}
catch(...) {
}
return result;
}

bool NTuple::Selector::operator() | ( | NTuple::Tuple * | nt | ) |
| virtual

Specialized callback for NTuples.

Specialized overload for N-tuples.

Definition at line 47 of file Selector.cpp.

{
return true;
}

## Member Data Documentation

bool NTuple::Selector::m_firstCall
| protected

Boolean to indicate need for initialization.

Definition at line 34 of file Selector.h.

IInterface* NTuple::Selector::m_parent
| protected

reference to parent interface

Definition at line 32 of file Selector.h.

StatusCode NTuple::Selector::m_status
| protected

StatusCode indication initialization result.

Definition at line 36 of file Selector.h.

The documentation for this class was generated from the following files:

- /afs/cern.ch/sw/Gaudi/releases/GAUDI/GAUDI_v25r0/GaudiKernel/GaudiKernel/Selector.h
- /afs/cern.ch/sw/Gaudi/releases/GAUDI/GAUDI_v25r0/GaudiKernel/src/Lib/Selector.cpp