32 info() <<
"End of event input reached." <<
endmsg;
36 always() <<
"Reading Event record " << count + 1 <<
". Record number within stream " << iter->
ID() + 1 <<
": " 40 info() <<
"End of event input reached." <<
endmsg;
80 Context* ctxt =
nullptr;
85 iter.
set(
this, iter_id, ctxt, 0 );
97 iter.
set(
this, -1, 0, 0 );
113 Context* ctxt = iter.
context();
136 Context* ctxt =
nullptr;
141 iter.
set(
this, iter_id, ctxt, 0 );
150 iter.
set(
this, -1, 0, 0 );
165 ctxt->
set( 0, -1, 0, 0 );
169 while ( --nskip > 0 ) {
189 if ( pIt->
ID() != -1 ) {
228 if ( pIt && jump > 0 ) {
230 for (
int i = 0; i < jump && sc.
isSuccess(); ++i ) {
270 ctxt->
set( 0, -1, 0, 0 );
273 while ( --nskip > 0 ) {
299 pIt->
set( it, pAddr );
313 Context* it = pIt->context();
332 error() <<
"Error initializing base class Service!" <<
endmsg;
338 fatal() <<
"Error retrieving IncidentSvc." <<
endmsg;
342 error() <<
"EvtMax is an obsolete property of the event selector." <<
endmsg;
343 error() <<
"Please set \"ApplicationMgr.EvtMax = " <<
m_evtMax <<
";\" to process the requested number of events." 350 error() <<
" Could not locate the Tool Service! " <<
endmsg;
386 error() <<
"Cannot reinitialize: service not in state initialized" <<
endmsg;
StatusCode lastOfPreviousStream(bool shutDown, EvtSelectorContext &it) const
Retrieve last entry of the previous data stream.
SmartIF< IIncidentSvc > m_incidentSvc
Reference to the indicent service.
StatusCode createContext(Context *&refpCtxt) const override
Create a new event loop context.
bool isInitialized() const
Check initialization status.
constexpr static const auto FAILURE
StatusCode initialize() override
IEvtSelector::Context * context() const
Access "real" iterator.
const std::string & name() const override
Retrieve name of the service.
StatusCode rewind(Context &refCtxt) const override
Rewind the dataset.
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...
StatusCode finalize() override
MsgStream & info() const
shortcut for the method msgStream(MSG::INFO)
StatusCode releaseContext(Context *&refCtxt) const override
Release existing event iteration context.
The Event Selector Interface.
IDataStreamTool * m_streamtool
IEvtSelector * selector() const
Retrieve event selector object.
virtual void printEvtInfo(const EvtSelectorContext *iter) const
Progress report.
const StatusCode & setChecked(bool checked=true) const
Check/uncheck StatusCode.
StatusCode firstOfNextStream(bool shutDown, EvtSelectorContext &it) const
Retrieve first entry of the next data stream.
virtual StatusCode previous(Context &c) const =0
Fetch the previous event.
virtual int getPriority(const std::string &name) const =0
StreamSpecs m_streamSpecsLast
Input stream specifiers (last used)
#define DECLARE_COMPONENT(type)
StatusCode service(const Gaudi::Utils::TypeNameString &name, T *&svc, bool createIf=true)
Templated method to access a service by name.
MsgStream & error() const
shortcut for the method msgStream(MSG::ERROR)
Gaudi::Property< int > m_evtPrintFrequency
virtual void fireIncident(const Incident &incident)=0
Fire an Incident.
Gaudi::Property< std::string > m_streamManager
StatusCode reinitialize() override
Service override: Reinitialize service.
StatusCode last(Context &c) const override
Access last item in the iteration.
Definition of class EventIterator.
This class is used for returning status codes from appropriate routines.
Gaudi::Property< int > m_evtMax
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...
StatusCode initialize() override
IService implementation: Db event selector override.
Gaudi::Property< StreamSpecs > m_streamSpecs
Gaudi::Property< int > m_firstEvent
virtual StatusCode releaseContext(Context *&) const =0
Release the Context object.
long numStreamEvent() const
Access counter within stream.
virtual StatusCode setPriority(const std::string &name, int pri)=0
StatusCode finalize() override
IService implementation: Service finalization.
constexpr static const auto SUCCESS
SmartIF< IToolSvc > m_toolSvc
virtual unsigned long release()=0
Release Interface instance.
void set(const IEvtSelector *sel, IDataStreamTool::size_type id, IEvtSelector::Context *it, IOpaqueAddress *pA)
Set the address of the iterator.
MsgStream & debug() const
shortcut for the method msgStream(MSG::DEBUG)
Definition of class EventSelectorDataStream.
StatusCode createAddress(const Context &refCtxt, IOpaqueAddress *&refpAddr) const override
Create new Opaque address corresponding to the current record.
const StatusCode & ignore() const
Ignore/check StatusCode.
Base class for all Incidents (computing events).
StatusCode previous(Context &refCtxt) const override
Get previous iteration item from the event loop context.
virtual IDataStreamTool::size_type ID() const
Stream identifier.
Gaudi::StateMachine::State FSMState() const override
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...
IDataStreamTool::size_type increaseCounters(bool reset=false)
Increase counters.
virtual StatusCode createContext(Context *&c) const =0
Create and return a context object that will keep track of the state of selection.
Definition of class EventSelector.
void reset(TYPE *ptr=nullptr)
Set the internal pointer to the passed one disposing of the old one.
virtual StatusCode createAddress(const Context &c, IOpaqueAddress *&iop) const =0
Create an IOpaqueAddress object from the event fetched.
const std::string & criteria() const
Retrieve stream criteria.
bool m_reconfigure
Reconfigure occurred.
Opaque address interface definition.
MsgStream & fatal() const
shortcut for the method msgStream(MSG::FATAL)
long numEvent() const
Access counter.
MsgStream & always() const
shortcut for the method msgStream(MSG::ALWAYS)
SmartIF< ISvcLocator > & serviceLocator() const override
Retrieve pointer to service locator.
const std::string & dbName() const
Retrieve stream dbName.
MsgStream & endmsg(MsgStream &s)
MsgStream Modifier: endmsg. Calls the output method of the MsgStream.
StatusCode next(Context &refCtxt) const override
Get next iteration item from the event loop context.
MSG::Level msgLevel() const
get the cached level (originally extracted from the embedded MsgStream)