The Gaudi Framework  master (ff829712)
Loading...
Searching...
No Matches
IEvtSelector Class Referenceabstract

The Event Selector Interface. More...

#include <GaudiKernel/IEvtSelector.h>

Inheritance diagram for IEvtSelector:
Collaboration diagram for IEvtSelector:

Classes

class  Context
 

Public Member Functions

 DeclareInterfaceID (IEvtSelector, 2, 0)
 InterfaceID.
 
virtual StatusCode createContext (Context *&c) const =0
 Create and return a context object that will keep track of the state of selection.
 
virtual StatusCode next (Context &c) const =0
 Fetch the next event or the first event if it will be use soon after the creation of the context.
 
virtual StatusCode next (Context &c, int jump) const =0
 Same of next(const Context&) plus the possibility to jump the next n-1 events.
 
virtual StatusCode previous (Context &c) const =0
 Fetch the previous event.
 
virtual StatusCode previous (Context &c, int jump) const =0
 Same of previous(Context& c) the possibility to jump the previous n-1 events.
 
virtual StatusCode last (Context &refContext) const =0
 Access last item in the iteration.
 
virtual StatusCode rewind (Context &c) const =0
 Will set the state of the context in a way that the next event read is the first of the list.
 
virtual StatusCode createAddress (const Context &c, IOpaqueAddress *&iop) const =0
 Create an IOpaqueAddress object from the event fetched.
 
virtual StatusCode releaseContext (Context *&) const =0
 Release the Context object.
 
virtual StatusCode resetCriteria (const std::string &cr, Context &c) const =0
 Will set a new criteria for the selection of the next list of events and will change the state of the context in a way to point to the new list.
 
- Public Member Functions inherited from IInterface
template<Gaudi::IsInterface TARGET>
TARGET * cast ()
 
template<Gaudi::IsInterface TARGET>
TARGET const * cast () const
 
template<typename TARGET>
requires ( !Gaudi::IsInterface<TARGET> )
TARGET * cast ()
 
template<typename TARGET>
requires ( !Gaudi::IsInterface<TARGET> )
TARGET const * cast () const
 
virtual std::vector< std::string > getInterfaceNames () const =0
 Returns a vector of strings containing the names of all the implemented interfaces.
 
virtual unsigned long addRef () const =0
 Increment the reference count of Interface instance.
 
virtual unsigned long release () const =0
 Release Interface instance.
 
virtual unsigned long refCount () const =0
 Current reference count.
 
virtual StatusCode queryInterface (const InterfaceID &ti, void **pp)=0
 Set the void** to the pointer to the requested interface of the instance.
 
virtual ~IInterface ()=default
 Virtual destructor.
 
virtual void const * i_cast (const InterfaceID &) const =0
 
void * i_cast (const InterfaceID &iid)
 

Additional Inherited Members

- Public Types inherited from IInterface
enum class  Status : StatusCode::code_t {
  FAILURE = 0 , SUCCESS = 1 , NO_INTERFACE , VERSMISMATCH ,
  LAST_ERROR
}
 Return status. More...
 
using iid = Gaudi::InterfaceId<IInterface, 0, 0>
 Interface ID.
 
using ext_iids = Gaudi::interface_list<iid>
 Extra interfaces.
 
- Static Public Member Functions inherited from IInterface
static const InterfaceIDinterfaceID ()
 Return an instance of InterfaceID identifying the interface.
 
- Protected Member Functions inherited from IInterface
virtual unsigned long decRef () const =0
 Decrement reference count and return the new reference count.
 

Detailed Description

The Event Selector Interface.

The EventSelector component is able to produce a list of event given a set of stream specifications.

Author
C. Cioffi
Date
14/11/2003

Definition at line 26 of file IEvtSelector.h.

Member Function Documentation

◆ createAddress()

virtual StatusCode IEvtSelector::createAddress ( const Context & c,
IOpaqueAddress *& iop ) const
pure virtual

Create an IOpaqueAddress object from the event fetched.

Parameters
cReference to the Context object.
iopRefernce pointer to a IOpaqueAddress object

◆ createContext()

virtual StatusCode IEvtSelector::createContext ( Context *& c) const
pure virtual

Create and return a context object that will keep track of the state of selection.

Parameters
cReference of a pointer to a Context object.

◆ DeclareInterfaceID()

IEvtSelector::DeclareInterfaceID ( IEvtSelector ,
2 ,
0  )

◆ last()

virtual StatusCode IEvtSelector::last ( Context & refContext) const
pure virtual

Access last item in the iteration.

Parameters
refContext[IN/OUT] Reference to the Context object.

◆ next() [1/2]

virtual StatusCode IEvtSelector::next ( Context & c) const
pure virtual

Fetch the next event or the first event if it will be use soon after the creation of the context.

It will return StatusCode::FAILURE if there have been problem in the fetching or it has been reached the end of the list of events.

Parameters
cReference to the Context object.

◆ next() [2/2]

virtual StatusCode IEvtSelector::next ( Context & c,
int jump ) const
pure virtual

Same of next(const Context&) plus the possibility to jump the next n-1 events.

Parameters
cReference to the Context object.
jumpThe event to jump to from the current event.

◆ previous() [1/2]

virtual StatusCode IEvtSelector::previous ( Context & c) const
pure virtual

Fetch the previous event.

It will return StatusCode::FAILURE if there have been problem in the fetching or it has been reached the begin of the list of events.

Parameters
cReference to the Context object.

◆ previous() [2/2]

virtual StatusCode IEvtSelector::previous ( Context & c,
int jump ) const
pure virtual

Same of previous(Context& c) the possibility to jump the previous n-1 events.

Parameters
cReference to the Context object.
jumpThe event to jump to from the current event.

◆ releaseContext()

virtual StatusCode IEvtSelector::releaseContext ( Context *& ) const
pure virtual

Release the Context object.

Parameters
cReference pointer to the Context object.

◆ resetCriteria()

virtual StatusCode IEvtSelector::resetCriteria ( const std::string & cr,
Context & c ) const
pure virtual

Will set a new criteria for the selection of the next list of events and will change the state of the context in a way to point to the new list.

Parameters
crThe new criteria string.
cReference pointer to the Context object.

◆ rewind()

virtual StatusCode IEvtSelector::rewind ( Context & c) const
pure virtual

Will set the state of the context in a way that the next event read is the first of the list.

Parameters
cReference to the Context object.

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