|
Gaudi Framework, version v23r5 |
| Home | Generated: Wed Nov 28 2012 |
Definition of class EventSelector. More...
#include <EventSelector.h>


Public Types | |
| typedef std::vector < EventSelectorDataStream * > | Streams |
| typedef std::vector< std::string > | StreamSpecs |
| typedef std::vector < StringProperty > | Properties |
Public Types inherited from extends1< Service, IEvtSelector > | |
| typedef extends1 | base_class |
| Typedef to this class. | |
| typedef extend_interfaces1 < IEvtSelector > | extend_interfaces_base |
| Typedef to the base of this class. | |
| typedef extend_interfaces_base::ext_iids | interfaces |
| MPL set of all the implemented interfaces. | |
Public Types inherited from extend_interfaces1< IEvtSelector > | |
| typedef IEvtSelector::iid::iids::type | ext_iids |
| MPL set of interfaces extended by this one. | |
Public Member Functions | |
| virtual StatusCode | initialize () |
| IService implementation: Db event selector override. | |
| virtual StatusCode | finalize () |
| IService implementation: Service finalization. | |
| virtual StatusCode | reinitialize () |
| Service override: Reinitialize service. | |
| virtual StatusCode | createContext (Context *&refpCtxt) const |
| Create a new event loop context. | |
| virtual StatusCode | next (Context &refCtxt) const |
| Get next iteration item from the event loop context. | |
| virtual StatusCode | next (Context &refCtxt, int jump) const |
| Get next iteration item from the event loop context, but skip jump elements. | |
| virtual StatusCode | previous (Context &refCtxt) const |
| Get previous iteration item from the event loop context. | |
| virtual StatusCode | previous (Context &refCtxt, int jump) const |
| Get previous iteration item from the event loop context, but skip jump elements. | |
| virtual StatusCode | rewind (Context &refCtxt) const |
| Rewind the dataset. | |
| virtual StatusCode | createAddress (const Context &refCtxt, IOpaqueAddress *&refpAddr) const |
| Create new Opaque address corresponding to the current record. | |
| virtual StatusCode | releaseContext (Context *&refCtxt) const |
| Release existing event iteration context. | |
| virtual StatusCode | resetCriteria (const std::string &cr, Context &c) const |
| 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. | |
| virtual StatusCode | last (Context &c) const |
| Access last item in the iteration. | |
| StatusCode | firstOfNextStream (bool shutDown, EvtSelectorContext &it) const |
| Retrieve first entry of the next data stream. | |
| StatusCode | lastOfPreviousStream (bool shutDown, EvtSelectorContext &it) const |
| Retrieve last entry of the previous data stream. | |
| EventSelector (const std::string &name, ISvcLocator *svcloc) | |
| Standard Constructor. | |
| virtual | ~EventSelector () |
| Standard Destructor. | |
Public Member Functions inherited from extends1< Service, IEvtSelector > | |
| extends1 (A1 a1, A2 a2, A3 a3) | |
| Templated constructor with 3 arguments. | |
| extends1 (A1 a1, A2 a2) | |
| Templated constructor with 2 arguments. | |
| extends1 (A1 a1) | |
| Templated constructor with 1 argument. | |
| extends1 () | |
| Default constructor. | |
| virtual void * | i_cast (const InterfaceID &tid) const |
| Implementation of IInterface::i_cast. | |
| virtual StatusCode | queryInterface (const InterfaceID &ti, void **pp) |
| Implementation of IInterface::queryInterface. | |
| virtual std::vector< std::string > | getInterfaceNames () const |
| Implementation of IInterface::getInterfaceNames. | |
| virtual | ~extends1 () |
| Virtual destructor. | |
Public Member Functions inherited from Service | |
| virtual unsigned long | release () |
| Release Interface instance. | |
| virtual const std::string & | name () const |
| Retrieve name of the service. | |
| virtual StatusCode | configure () |
| virtual StatusCode | start () |
| virtual StatusCode | stop () |
| virtual StatusCode | terminate () |
| virtual Gaudi::StateMachine::State | FSMState () const |
| virtual Gaudi::StateMachine::State | targetFSMState () const |
| virtual StatusCode | restart () |
| virtual StatusCode | sysInitialize () |
| Initialize Service. | |
| virtual StatusCode | sysStart () |
| Initialize Service. | |
| virtual StatusCode | sysStop () |
| Initialize Service. | |
| virtual StatusCode | sysFinalize () |
| Finalize Service. | |
| virtual StatusCode | sysReinitialize () |
| Re-initialize the Service. | |
| virtual StatusCode | sysRestart () |
| Re-initialize the Service. | |
| virtual StatusCode | setProperty (const Property &p) |
| virtual StatusCode | setProperty (const std::string &s) |
| virtual StatusCode | setProperty (const std::string &n, const std::string &v) |
| virtual StatusCode | getProperty (Property *p) const |
| virtual const Property & | getProperty (const std::string &name) const |
| virtual StatusCode | getProperty (const std::string &n, std::string &v) const |
| virtual const std::vector < Property * > & | getProperties () const |
| template<class TYPE > | |
| StatusCode | setProperty (const std::string &name, const TYPE &value) |
| set the property form the value | |
| Service (const std::string &name, ISvcLocator *svcloc) | |
| Standard Constructor. | |
| SmartIF< ISvcLocator > & | serviceLocator () const |
| Retrieve pointer to service locator. | |
| StatusCode | setProperties () |
| Method for setting declared properties to the values specified for the job. | |
| template<class T > | |
| StatusCode | service (const std::string &name, const T *&psvc, bool createIf=true) const |
| Access a service by name, creating it if it doesn't already exist. | |
| template<class T > | |
| StatusCode | service (const std::string &name, T *&psvc, bool createIf=true) const |
| template<class T > | |
| StatusCode | service (const std::string &svcType, const std::string &svcName, T *&psvc) const |
| Access a service by name and type, creating it if it doesn't already exist. | |
| template<class T > | |
| Property * | declareProperty (const std::string &name, T &property, const std::string &doc="none") const |
| Declare the named property. | |
| Property * | declareRemoteProperty (const std::string &name, IProperty *rsvc, const std::string &rname="") const |
| Declare remote named properties. | |
| SmartIF< IAuditorSvc > & | auditorSvc () const |
| The standard auditor service.May not be invoked before sysInitialize() has been invoked. | |
Public Member Functions inherited from CommonMessaging< implements3< IService, IProperty, IStateful > > | |
| CommonMessaging (const A1 &a1, const A2 &a2, const A3 &a3) | |
| Templated constructor with 3 arguments. | |
| CommonMessaging (const A1 &a1, const A2 &a2) | |
| Templated constructor with 2 arguments. | |
| CommonMessaging (const A1 &a1) | |
| Templated constructor with 1 argument. | |
| CommonMessaging () | |
| Default constructor. | |
| virtual | ~CommonMessaging () |
| Virtual destructor. | |
| SmartIF< IMessageSvc > & | msgSvc () const |
| The standard message service. | |
| MsgStream & | msgStream () const |
| Return an uninitialized MsgStream. | |
| MsgStream & | msgStream (const MSG::Level level) const |
| Predefined configurable message stream for the efficient printouts. | |
| MsgStream & | always () const |
| shortcut for the method msgStream(MSG::ALWAYS) | |
| MsgStream & | fatal () const |
| shortcut for the method msgStream(MSG::FATAL) | |
| MsgStream & | err () const |
| shortcut for the method msgStream(MSG::ERROR) | |
| MsgStream & | error () const |
| shortcut for the method msgStream(MSG::ERROR) | |
| MsgStream & | warning () const |
| shortcut for the method msgStream(MSG::WARNING) | |
| MsgStream & | info () const |
| shortcut for the method msgStream(MSG::INFO) | |
| MsgStream & | debug () const |
| shortcut for the method msgStream(MSG::DEBUG) | |
| MsgStream & | verbose () const |
| shortcut for the method msgStream(MSG::VERBOSE) | |
| MsgStream & | msg () const |
| shortcut for the method msgStream(MSG::INFO) | |
| MSG::Level | msgLevel () const |
| get the output level from the embedded MsgStream | |
| bool | msgLevel (MSG::Level lvl) const |
| get the output level from the embedded MsgStream | |
Public Member Functions inherited from extend_interfaces1< IEvtSelector > | |
| virtual | ~extend_interfaces1 () |
| Virtual destructor. | |
Public Member Functions inherited from IEvtSelector | |
| DeclareInterfaceID (IEvtSelector, 2, 0) | |
| InterfaceID. | |
Public Member Functions inherited from IInterface | |
| virtual unsigned long | addRef ()=0 |
| Increment the reference count of Interface instance. | |
| virtual unsigned long | release ()=0 |
| Release Interface instance. | |
| virtual unsigned long | refCount () const =0 |
| Current reference count. | |
| virtual | ~IInterface () |
| Virtual destructor. | |
Public Attributes | |
| long int | m_streamID |
Protected Member Functions | |
| virtual void | printEvtInfo (const EvtSelectorContext *iter) const |
| Progress report. | |
Protected Attributes | |
| SmartIF< IIncidentSvc > | m_incidentSvc |
| Reference to the indicent service. | |
| SmartIF< IToolSvc > | m_toolSvc |
| IDataStreamTool * | m_streamtool |
| bool | m_reconfigure |
| Reconfigure occurred. | |
| StreamSpecs | m_streamSpecs |
| Input stream specifiers (for job options) | |
| StreamSpecs | m_streamSpecsLast |
| Input stream specifiers (last used) | |
| Streams | m_streams |
| Input streams. | |
| int | m_streamCount |
| Input stream counter (0..oo, monotonely increasing) | |
| int | m_firstEvent |
| First event to be processed. | |
| int | m_evtMax |
| Maximum number of events to be processed. | |
| int | m_evtPrintFrequency |
| Printout frequency. | |
| std::string | m_streamManager |
Additional Inherited Members | |
Static Public Member Functions inherited from IInterface | |
| static const InterfaceID & | interfaceID () |
| Return an instance of InterfaceID identifying the interface. | |
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.
Definition at line 57 of file EventSelector.h.
Definition at line 55 of file EventSelector.h.
Definition at line 56 of file EventSelector.h.
| EventSelector::EventSelector | ( | const std::string & | name, |
| ISvcLocator * | svcloc | ||
| ) |
Standard Constructor.
Definition at line 27 of file EventSelector.cpp.
|
virtual |
|
virtual |
Create new Opaque address corresponding to the current record.
| refCtxt | [IN/OUT] Reference to the context |
| refpAddr | [OUT] Reference to address pointer |
Implements IEvtSelector.
Definition at line 335 of file EventSelector.cpp.
|
virtual |
Create a new event loop context.
| refpCtxt | [IN/OUT] Reference to pointer to store the context |
Implements IEvtSelector.
Definition at line 194 of file EventSelector.cpp.
|
virtual |
IService implementation: Service finalization.
Reimplemented from Service.
Definition at line 452 of file EventSelector.cpp.
| StatusCode EventSelector::firstOfNextStream | ( | bool | shutDown, |
| EvtSelectorContext & | it | ||
| ) | const |
Retrieve first entry of the next data stream.
Definition at line 83 of file EventSelector.cpp.
|
virtual |
IService implementation: Db event selector override.
Reimplemented from Service.
Definition at line 382 of file EventSelector.cpp.
|
virtual |
Access last item in the iteration.
| c | Reference to the Context object. |
Implements IEvtSelector.
Definition at line 305 of file EventSelector.cpp.
| StatusCode EventSelector::lastOfPreviousStream | ( | bool | shutDown, |
| EvtSelectorContext & | it | ||
| ) | const |
Retrieve last entry of the previous data stream.
Definition at line 143 of file EventSelector.cpp.
|
virtual |
Get next iteration item from the event loop context.
| refCtxt | [IN/OUT] Reference to the context |
Implements IEvtSelector.
Definition at line 224 of file EventSelector.cpp.
|
virtual |
Get next iteration item from the event loop context, but skip jump elements.
| refCtxt | [IN/OUT] Reference to the context |
Implements IEvtSelector.
Definition at line 229 of file EventSelector.cpp.
|
virtual |
Get previous iteration item from the event loop context.
| refCtxt | [IN/OUT] Reference to the context |
| jump | [IN] Number of events to be skipped |
Implements IEvtSelector.
Definition at line 268 of file EventSelector.cpp.
|
virtual |
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 |
Implements IEvtSelector.
Definition at line 273 of file EventSelector.cpp.
|
protectedvirtual |
Progress report.
Definition at line 57 of file EventSelector.cpp.
|
virtual |
Service override: Reinitialize service.
Reimplemented from Service.
Definition at line 433 of file EventSelector.cpp.
|
virtual |
Release existing event iteration context.
| refCtxt | [IN/OUT] Reference to the context |
Implements IEvtSelector.
Definition at line 359 of file EventSelector.cpp.
|
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.
| cr | The new criteria string. |
| c | Reference pointer to the Context object. |
Implements IEvtSelector.
Definition at line 50 of file EventSelector.cpp.
|
virtual |
Rewind the dataset.
| refCtxt | [IN/OUT] Reference to the context |
Implements IEvtSelector.
Definition at line 313 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.