4 #include "GaudiKernel/MsgStream.h"
5 #include "GaudiKernel/SmartIF.h"
6 #include "GaudiKernel/Incident.h"
7 #include "GaudiKernel/MsgStream.h"
8 #include "GaudiKernel/ISvcLocator.h"
9 #include "GaudiKernel/ISvcManager.h"
10 #include "GaudiKernel/IAddressCreator.h"
11 #include "GaudiKernel/PropertyMgr.h"
12 #include "GaudiKernel/EventSelectorDataStream.h"
13 #include "GaudiKernel/DataStreamTool.h"
14 #include "GaudiKernel/Service.h"
26 const std::string&
name,
78 log <<
MSG::ERROR <<
"Error connecting/creating Stream: " << input <<
endmsg;
87 for (
auto&
i : inputs ) {
111 if ( prop && isvc ) {
113 int output_level = this->outputLevel();
125 auto isvc =
make_SmartIF( Service::Factory::create(typ, nam, serviceLocator()) );
136 log <<
MSG::ERROR <<
"Failed to create IEvtSelector " << typ <<
"/" << nam <<
endmsg;
147 isvc->finalize().ignore();
233 m_streamSpecs.clear();
289 esds = previousStream;
bool isInitialized() const
Check initialization status.
Definition of the MsgStream class used to transmit messages.
string to_string(const T &value)
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.
auto begin(reverse_wrapper< T > &w)
IEvtSelector * selector() const
Retrieve event selector object.
GAUDIPS_API Logger & logger()
Return the current logger instance.
virtual StatusCode sysInitialize()=0
Initialize Service.
virtual StatusCode initialize()
Parse input criteria.
virtual void fireIncident(const Incident &incident)=0
Fire an Incident.
unsigned long addRef() override
Reference Interface instance.
auto end(reverse_wrapper< T > &w)
This class is used for returning status codes from appropriate routines.
Definition of the basic interface.
SimpleProperty< int > IntegerProperty
virtual StatusCode setProperty(const Property &p)=0
Set the property by property.
virtual StatusCode finalize()
Finalize stream and release resources.
const std::string & definition() const
Retrieve definition string.
virtual unsigned long release()=0
Release Interface instance.
Base class used to extend a class implementing other interfaces.
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.
void reset(TYPE *ptr=nullptr)
Set the internal pointer to the passed one disposing of the old one.
SmartIF< IFace > make_SmartIF(IFace *iface)
virtual void setSelector(IEvtSelector *pSelector)
Attach event selector object.
unsigned long release() override
Release Interface instance.