Loading [MathJax]/extensions/tex2jax.js
The Gaudi Framework  v31r0 (aeb156f0)
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
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> {
47  friend MsgStream& operator<<( MsgStream& s, const EventSelectorDataStream& obj );
50 
51 public:
53 
54 protected:
70  Properties m_properties;
72  bool m_initialized = false;
74  virtual ~EventSelectorDataStream() = default;
75 
76 public:
80  virtual void setSelector( IEvtSelector* pSelector );
82  virtual StatusCode initialize();
84  virtual StatusCode finalize();
88  const Gaudi::Property<std::string>* property( const std::string& nam ) const;
90  const Properties& properties() { return m_properties; }
92  const std::string& name() const { return m_name; }
94  const std::string& criteria() const { return m_criteria; }
96  const std::string& dbName() const { return m_dbName; }
98  const std::string& selectorType() const { return m_selectorType; }
100  const std::string& definition() const { return m_definition; }
102  IEvtSelector* selector() const { return m_pSelector.get(); }
104  bool isInitialized() const { return m_initialized; }
105 };
106 
111 
112 #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:352
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:76
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:50
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:137
string s
Definition: gaudirun.py:312
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:71
STL class.
GAUDI_API MsgStream & operator<<(MsgStream &s, const EventSelectorDataStream &obj)
Output friend for MsgStream.
const std::string & dbName() const
Retrieve stream dbName.