31 m_evtPrintFrequency = 10;
38 m_reconfigure =
false;
67 log <<
MSG::ALWAYS <<
"Reading Event record " << count+1
68 <<
". Record number within stream " << iter->
ID()+1
120 iter.
set(
this, iter_id, ctxt, 0);
132 iter.
set(
this, -1, 0, 0);
177 iter.
set(
this, iter_id, ctxt, 0);
186 iter.
set(
this, -1, 0, 0);
202 ctxt->
set(0, -1, 0, 0);
206 while( --nskip > 0 ) {
210 log <<
MSG::ERROR <<
" createContext() failed to start with event number "
222 return next(refCtxt, 1);
229 if ( pIt->
ID() != -1 ) {
272 if ( pIt && jump > 0 ) {
313 ctxt->
set(0, -1, 0, 0);
316 while( --nskip > 0 ) {
320 log <<
MSG::ERROR <<
"rewind() failed to start with event number "
394 logger <<
MSG::ERROR <<
"EvtMax is an obsolete property of the event selector." <<
endmsg;
396 <<
";\" to process the requested number of events." <<
endmsg;
433 logger <<
MSG::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.
bool isInitialized() const
Check initialization status.
Definition of the MsgStream class used to transmit messages.
IEvtSelector::Context * context() const
Access "real" iterator.
int m_evtPrintFrequency
Printout frequency.
The ISvcLocator is the interface implemented by the Service Factory in the Application Manager to loc...
int m_firstEvent
First event to be processed.
int m_evtMax
Maximum number of events to be processed.
SmartIF< IMessageSvc > & msgSvc() const
The standard message service.
The Event Selector Interface.
bool isSuccess() const
Test for a status code of SUCCESS.
IDataStreamTool * m_streamtool
IEvtSelector * selector() const
Retrieve event selector object.
virtual StatusCode createAddress(const Context &refCtxt, IOpaqueAddress *&refpAddr) const
Create new Opaque address corresponding to the current record.
virtual void printEvtInfo(const EvtSelectorContext *iter) const
Progress report.
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 firstOfNextStream(bool shutDown, EvtSelectorContext &it) const
Retrieve first entry of the next data stream.
const std::string FailInputFile
could not open or read from this file
virtual StatusCode rewind(Context &refCtxt) const
Rewind the dataset.
bool isFailure() const
Test for a status code of FAILURE.
virtual StatusCode createContext(Context *&refpCtxt) const
Create a new event loop context.
GAUDIPS_API Logger & logger()
Return the current logger instance.
#define DECLARE_COMPONENT(type)
StreamSpecs m_streamSpecsLast
Input stream specifiers (last used)
bool isValid() const
Allow for check if smart pointer is valid.
virtual StatusCode finalize()
IService implementation: Service finalization.
Definition of class EventIterator.
This class is used for returning status codes from appropriate routines.
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...
const std::string EndInputFile
an input file has been finished
virtual StatusCode createContext(Context *&c) const =0
Create and return a context object that will keep track of the state of selection.
virtual StatusCode last(Context &c) const
Access last item in the iteration.
virtual StatusCode releaseContext(Context *&) const =0
Release the Context object.
StreamSpecs m_streamSpecs
Input stream specifiers (for job options)
long numStreamEvent() const
Access counter within stream.
virtual ~EventSelector()
Standard Destructor.
virtual Gaudi::StateMachine::State FSMState() const
Get the current state.
virtual StatusCode next(Context &refCtxt) const
Get next iteration item from the event loop context.
virtual StatusCode releaseContext(Context *&refCtxt) const
Release existing event iteration context.
virtual const std::string & name() const
Retrieve name of the service.
SmartIF< IToolSvc > m_toolSvc
virtual unsigned long release()=0
Release Interface instance.
virtual StatusCode initialize()
Initialization (from CONFIGURED to INITIALIZED).
void set(const IEvtSelector *sel, IDataStreamTool::size_type id, IEvtSelector::Context *it, IOpaqueAddress *pA)
Set the address of the iterator.
Definition of class EventSelectorDataStream.
Base class for all Incidents (computing events).
virtual IDataStreamTool::size_type ID() const
Stream identifier.
virtual StatusCode initialize()
IService implementation: Db event selector override.
Templated class to add the standard messaging functionalities.
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...
IDataStreamTool::size_type increaseCounters(bool reset=false)
Increase counters.
virtual StatusCode previous(Context &c) const =0
Fetch the previous event.
Definition of class EventSelector.
virtual StatusCode previous(Context &refCtxt) const
Get previous iteration item from the event loop context.
const std::string & criteria() const
Retrieve stream criteria.
bool m_reconfigure
Reconfigure occurred.
Opaque address interface definition.
Property * declareProperty(const std::string &name, T &property, const std::string &doc="none") const
Declare the named property.
virtual StatusCode reinitialize()
Service override: Reinitialize service.
std::string m_streamManager
virtual StatusCode createAddress(const Context &c, IOpaqueAddress *&iop) const =0
Create an IOpaqueAddress object from the event fetched.
long numEvent() const
Access counter.
virtual StatusCode finalize()
Finalize (from INITIALIZED to CONFIGURED).
const std::string & dbName() const
Retrieve stream dbName.
MsgStream & endmsg(MsgStream &s)
MsgStream Modifier: endmsg. Calls the output method of the MsgStream.
void setChecked() const
Ignore the checking code;.
const std::string BeginInputFile
a new input file has been started
SmartIF< ISvcLocator > & serviceLocator() const
Retrieve pointer to service locator.
MSG::Level msgLevel() const
get the output level from the embedded MsgStream