4 #include "GaudiKernel/MsgStream.h"
5 #include "GaudiKernel/xtoa.h"
6 #include "GaudiKernel/SmartIF.h"
7 #include "GaudiKernel/Incident.h"
8 #include "GaudiKernel/MsgStream.h"
9 #include "GaudiKernel/IIncidentSvc.h"
10 #include "GaudiKernel/ISvcLocator.h"
11 #include "GaudiKernel/ISvcManager.h"
12 #include "GaudiKernel/IAddressCreator.h"
13 #include "GaudiKernel/PropertyMgr.h"
14 #include "GaudiKernel/EventSelectorDataStream.h"
15 #include "GaudiKernel/DataStreamTool.h"
16 #include "GaudiKernel/ToolFactory.h"
17 #include "GaudiKernel/Service.h"
31 const std::string& name,
79 std::ostringstream strname;
97 log <<
MSG::ERROR <<
"Error connecting/creating Stream: " << input <<
endmsg;
109 for ( StreamSpecs::const_iterator itr = inputs.begin(); itr != inputs.end() && status.
isSuccess(); ++itr ) {
138 for(Properties::const_iterator
i=p.begin();
i!=p.end();
i++) {
163 log <<
MSG::ERROR <<
"Failed to create IEvtSelector " << typ <<
"/" << nam <<
endmsg;
219 if ( (*i)->definition() == info ) {
227 if ( (pos >= 0) && ((
size_t)pos <
m_streams.size()) )
296 std::ostringstream nam;
335 esds = previousStream;
bool isInitialized() const
Check initialization status.
Definition of the MsgStream class used to transmit messages.
const std::string & name() const
Retrieve stream name.
MsgStream & endmsg(MsgStream &s)
MsgStream Modifier: endmsg. Calls the output method of the MsgStream.
The Event Selector Interface.
bool isSuccess() const
Test for a status code of SUCCESS.
IEvtSelector * selector() const
Retrieve event selector object.
GAUDIPS_API Logger & logger()
Return the current logger instance.
virtual StatusCode sysInitialize()=0
Initialize Service.
StatusCode service(const Gaudi::Utils::TypeNameString &name, T *&svc, bool createIf=true)
Templated method to access a service by name.
virtual StatusCode initialize()
Parse input criteria.
virtual void fireIncident(const Incident &incident)=0
Fire an Incident.
General service interface definition.
This class is used for returning status codes from appropriate routines.
Definition of the basic interface.
Base class used to extend a class implementing other interfaces.
virtual StatusCode setProperty(const Property &p)=0
Set the property by property.
virtual StatusCode finalize()
Finalize stream and release resources.
SimpleProperty< int > IntegerProperty
virtual StatusCode finalize()=0
Finalize (from INITIALIZED to CONFIGURED).
virtual unsigned long release()=0
Release Interface instance.
bool isValid() const
Allow for check if smart pointer is valid.
Definition of class EventSelectorDataStream.
const std::string & selectorType() const
Retrieve event selector type.
Base class for all Incidents (computing events).
virtual unsigned long addRef()=0
Increment the reference count of Interface instance.
const Properties & properties()
Access properties.
static const InterfaceID & interfaceID()
Return an instance of InterfaceID identifying the interface.
const std::string EndStream
Processing of the stream has finished.
virtual void setSelector(IEvtSelector *pSelector)
Attach event selector object.
virtual StatusCode queryInterface(const InterfaceID &ti, void **pp)=0
Set the void** to the pointer to the requested interface of the instance.