![]() |
The Gaudi Framework
v27r0
|
Definition of class EventSelector. More...
#include <src/EventSelector/EventSelector.h>
Public Types | |
typedef std::vector< EventSelectorDataStream * > | Streams |
typedef std::vector< std::string > | StreamSpecs |
typedef std::vector< StringProperty > | Properties |
![]() | |
using | base_class = extends |
Typedef to this class. More... | |
using | extend_interfaces_base = extend_interfaces< Interfaces...> |
Typedef to the base of this class. More... | |
using | base_class = extends |
Typedef to this class. More... | |
using | extend_interfaces_base = extend_interfaces< Interfaces...> |
Typedef to the base of this class. More... | |
![]() | |
using | ext_iids = typename Gaudi::interface_list_cat< typename Interfaces::ext_iids...>::type |
take union of the ext_iids of all Interfaces... More... | |
using | ext_iids = typename Gaudi::interface_list_cat< typename Interfaces::ext_iids...>::type |
take union of the ext_iids of all Interfaces... More... | |
Public Member Functions | |
StatusCode | initialize () override |
IService implementation: Db event selector override. More... | |
StatusCode | finalize () override |
IService implementation: Service finalization. More... | |
StatusCode | reinitialize () override |
Service override: Reinitialize service. More... | |
StatusCode | createContext (Context *&refpCtxt) const override |
Create a new event loop context. More... | |
StatusCode | next (Context &refCtxt) const override |
Get next iteration item from the event loop context. More... | |
StatusCode | next (Context &refCtxt, int jump) const override |
Get next iteration item from the event loop context, but skip jump elements. More... | |
StatusCode | previous (Context &refCtxt) const override |
Get previous iteration item from the event loop context. More... | |
StatusCode | previous (Context &refCtxt, int jump) const override |
Get previous iteration item from the event loop context, but skip jump elements. More... | |
StatusCode | rewind (Context &refCtxt) const override |
Rewind the dataset. More... | |
StatusCode | createAddress (const Context &refCtxt, IOpaqueAddress *&refpAddr) const override |
Create new Opaque address corresponding to the current record. More... | |
StatusCode | releaseContext (Context *&refCtxt) const override |
Release existing event iteration context. More... | |
StatusCode | resetCriteria (const std::string &cr, Context &c) const override |
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. More... | |
StatusCode | last (Context &c) const override |
Access last item in the iteration. More... | |
StatusCode | firstOfNextStream (bool shutDown, EvtSelectorContext &it) const |
Retrieve first entry of the next data stream. More... | |
StatusCode | lastOfPreviousStream (bool shutDown, EvtSelectorContext &it) const |
Retrieve last entry of the previous data stream. More... | |
EventSelector (const std::string &name, ISvcLocator *svcloc) | |
Standard Constructor. More... | |
~EventSelector () override=default | |
Standard Destructor. More... | |
![]() | |
void * | i_cast (const InterfaceID &tid) const override |
Implementation of IInterface::i_cast. More... | |
StatusCode | queryInterface (const InterfaceID &ti, void **pp) override |
Implementation of IInterface::queryInterface. More... | |
std::vector< std::string > | getInterfaceNames () const override |
Implementation of IInterface::getInterfaceNames. More... | |
~extends () override=default | |
Virtual destructor. More... | |
void * | i_cast (const InterfaceID &tid) const override |
Implementation of IInterface::i_cast. More... | |
StatusCode | queryInterface (const InterfaceID &ti, void **pp) override |
Implementation of IInterface::queryInterface. More... | |
std::vector< std::string > | getInterfaceNames () const override |
Implementation of IInterface::getInterfaceNames. More... | |
~extends () override=default | |
Virtual destructor. More... | |
![]() | |
~extend_interfaces () override=default | |
Virtual destructor. More... | |
~extend_interfaces () override=default | |
Virtual destructor. More... | |
Public Attributes | |
long int | m_streamID |
Protected Member Functions | |
virtual void | printEvtInfo (const EvtSelectorContext *iter) const |
Progress report. More... | |
Protected Attributes | |
SmartIF< IIncidentSvc > | m_incidentSvc = nullptr |
Reference to the indicent service. More... | |
SmartIF< IToolSvc > | m_toolSvc = nullptr |
IDataStreamTool * | m_streamtool = nullptr |
bool | m_reconfigure = false |
Reconfigure occurred. More... | |
StreamSpecs | m_streamSpecs |
Input stream specifiers (for job options) More... | |
StreamSpecs | m_streamSpecsLast |
Input stream specifiers (last used) More... | |
Streams | m_streams |
Input streams. More... | |
int | m_streamCount = 0 |
Input stream counter (0..oo, monotonely increasing) More... | |
int | m_firstEvent = 0 |
First event to be processed. More... | |
int | m_evtMax = INT_MAX |
Maximum number of events to be processed. More... | |
int | m_evtPrintFrequency = 10 |
Printout frequency. More... | |
std::string | m_streamManager ="DataStreamTool" |
Definition of class EventSelector.
Basic event selector service. The event selector service itself is able to connect other services to attached streams.
History: +------—+-------------------------------------------—+---------—+ | Date | Comment | Who | +------—+-------------------------------------------—+---------—+ | 3/10/00 | Initial version | M.Frank | +------—+-------------------------------------------—+---------—+ | 4/09/09 | Added firing incident on opening/ending file | R. Lambert | +------—+-------------------------------------------—+---------—+
Definition at line 53 of file EventSelector.h.
typedef std::vector<StringProperty> EventSelector::Properties |
Definition at line 57 of file EventSelector.h.
typedef std::vector<EventSelectorDataStream*> EventSelector::Streams |
Definition at line 55 of file EventSelector.h.
typedef std::vector<std::string> EventSelector::StreamSpecs |
Definition at line 56 of file EventSelector.h.
EventSelector::EventSelector | ( | const std::string & | name, |
ISvcLocator * | svcloc | ||
) |
Standard Constructor.
Definition at line 21 of file EventSelector.cpp.
|
overridedefault |
Standard Destructor.
|
override |
Create new Opaque address corresponding to the current record.
refCtxt | [IN/OUT] Reference to the context |
refpAddr | [OUT] Reference to address pointer |
Definition at line 317 of file EventSelector.cpp.
|
override |
Create a new event loop context.
refpCtxt | [IN/OUT] Reference to pointer to store the context |
Definition at line 176 of file EventSelector.cpp.
|
override |
IService implementation: Service finalization.
Definition at line 434 of file EventSelector.cpp.
StatusCode EventSelector::firstOfNextStream | ( | bool | shutDown, |
EvtSelectorContext & | it | ||
) | const |
Retrieve first entry of the next data stream.
Definition at line 65 of file EventSelector.cpp.
|
override |
IService implementation: Db event selector override.
Definition at line 358 of file EventSelector.cpp.
|
override |
Access last item in the iteration.
c | Reference to the Context object. |
Definition at line 287 of file EventSelector.cpp.
StatusCode EventSelector::lastOfPreviousStream | ( | bool | shutDown, |
EvtSelectorContext & | it | ||
) | const |
Retrieve last entry of the previous data stream.
Definition at line 125 of file EventSelector.cpp.
|
override |
Get next iteration item from the event loop context.
refCtxt | [IN/OUT] Reference to the context |
Definition at line 206 of file EventSelector.cpp.
|
override |
Get next iteration item from the event loop context, but skip jump elements.
refCtxt | [IN/OUT] Reference to the context |
Definition at line 211 of file EventSelector.cpp.
|
override |
Get previous iteration item from the event loop context.
refCtxt | [IN/OUT] Reference to the context |
jump | [IN] Number of events to be skipped |
Definition at line 250 of file EventSelector.cpp.
|
override |
Get previous iteration item from the event loop context, but skip jump elements.
refCtxt | [IN/OUT] Reference to the context |
jump | [IN] Number of events to be skipped |
Definition at line 255 of file EventSelector.cpp.
|
protectedvirtual |
Progress report.
Definition at line 39 of file EventSelector.cpp.
|
override |
Service override: Reinitialize service.
Definition at line 415 of file EventSelector.cpp.
|
override |
Release existing event iteration context.
refCtxt | [IN/OUT] Reference to the context |
Definition at line 339 of file EventSelector.cpp.
|
override |
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.
cr | The new criteria string. |
c | Reference pointer to the Context object. |
Definition at line 32 of file EventSelector.cpp.
|
override |
Rewind the dataset.
refCtxt | [IN/OUT] Reference to the context |
Definition at line 295 of file EventSelector.cpp.
|
protected |
Maximum number of events to be processed.
Definition at line 82 of file EventSelector.h.
|
protected |
Printout frequency.
Definition at line 84 of file EventSelector.h.
|
protected |
First event to be processed.
Definition at line 80 of file EventSelector.h.
|
protected |
Reference to the indicent service.
Definition at line 63 of file EventSelector.h.
|
protected |
Reconfigure occurred.
Definition at line 70 of file EventSelector.h.
|
protected |
Input stream counter (0..oo, monotonely increasing)
Definition at line 78 of file EventSelector.h.
long int EventSelector::m_streamID |
Definition at line 59 of file EventSelector.h.
|
protected |
Definition at line 86 of file EventSelector.h.
|
protected |
Input streams.
Definition at line 76 of file EventSelector.h.
|
protected |
Input stream specifiers (for job options)
Definition at line 72 of file EventSelector.h.
|
protected |
Input stream specifiers (last used)
Definition at line 74 of file EventSelector.h.
|
protected |
Definition at line 67 of file EventSelector.h.
Definition at line 65 of file EventSelector.h.