The Gaudi Framework  v30r3 (a5ef0a68)
EventSelectorDataStream.h
Go to the documentation of this file.
1 //====================================================================
2 // EventSelectorDataStream.h
3 //--------------------------------------------------------------------
4 //
5 // Package : EventSelectorDataStream (LHCb Event Selector Package)
6 //
7 // Author : M.Frank
8 // Created : 4/10/00
9 // Changes : R. Lambert 2009-09-04
10 //
11 //====================================================================
12 #ifndef GAUDIKERNEL_EVENTSELECTORDATASTREAM_H
13 #define GAUDIKERNEL_EVENTSELECTORDATASTREAM_H 1
14 
15 // Include files
17 #include "GaudiKernel/Property.h"
18 
19 // STL include files
20 #include <iostream>
21 #include <vector>
22 
23 // Forward declarations
24 class MsgStream;
25 class ISvcLocator;
27 
45 class GAUDI_API EventSelectorDataStream : public implements<IInterface>
46 {
48  friend MsgStream& operator<<( MsgStream& s, const EventSelectorDataStream& obj );
51 
52 public:
54 
55 protected:
71  Properties m_properties;
73  bool m_initialized = false;
75  virtual ~EventSelectorDataStream() = default;
76 
77 public:
81  virtual void setSelector( IEvtSelector* pSelector );
83  virtual StatusCode initialize();
85  virtual StatusCode finalize();
89  const Gaudi::Property<std::string>* property( const std::string& nam ) const;
91  const Properties& properties() { return m_properties; }
93  const std::string& name() const { return m_name; }
95  const std::string& criteria() const { return m_criteria; }
97  const std::string& dbName() const { return m_dbName; }
99  const std::string& selectorType() const { return m_selectorType; }
101  const std::string& definition() const { return m_definition; }
103  IEvtSelector* selector() const { return m_pSelector.get(); }
105  bool isInitialized() const { return m_initialized; }
106 };
107 
112 
113 #endif // GAUDIKERNEL_EVENTSELECTORDATASTREAM_H
bool isInitialized() const
Check initialization status.
Definition of the MsgStream class used to transmit messages.
Definition: MsgStream.h:24
const std::string & name() const
Retrieve stream name.
Base class used to implement the interfaces.
Definition: implements.h:9
The ISvcLocator is the interface implemented by the Service Factory in the Application Manager to loc...
Definition: ISvcLocator.h:25
Implementation of property with value of concrete type.
Definition: Property.h:381
The Event Selector Interface.
Definition: IEvtSelector.h:18
IEvtSelector * selector() const
Retrieve event selector object.
Gaudi::Details::PropertyBase * property(const std::string &name) const
std::string m_criteria
Criteria.
std::string m_selectorType
Event selector type.
STL class.
SmartIF< IEvtSelector > m_pSelector
Pointer to valid selector.
TYPE * get() const
Get interface pointer.
Definition: SmartIF.h:82
ISvcLocator * m_pSvcLocator
Reference to service locator.
std::vector< Gaudi::Property< std::string > > Properties
This class is used for returning status codes from appropriate routines.
Definition: StatusCode.h:51
std::string m_definition
Definition string.
const std::string & definition() const
Retrieve definition string.
STL class.
Properties m_properties
Properties vector.
Definition of class EventSelectorDataStream.
const std::string & selectorType() const
Retrieve event selector type.
Properties m_properties
Collection of all declared properties.
Definition: PropertyMgr.h:138
string s
Definition: gaudirun.py:253
const Properties & properties()
Access properties.
std::string m_dbName
String with name of the db as parsed.
const std::string & criteria() const
Retrieve stream criteria.
#define GAUDI_API
Definition: Kernel.h:104
STL class.
GAUDI_API MsgStream & operator<<(MsgStream &s, const EventSelectorDataStream &obj)
Output friend for MsgStream.
const std::string & dbName() const
Retrieve stream dbName.