The Gaudi Framework  master (37c0b60a)
EventSelectorDataStream.h
Go to the documentation of this file.
1 /***********************************************************************************\
2 * (c) Copyright 1998-2024 CERN for the benefit of the LHCb and ATLAS collaborations *
3 * *
4 * This software is distributed under the terms of the Apache version 2 licence, *
5 * copied verbatim in the file "LICENSE". *
6 * *
7 * In applying this licence, CERN does not waive the privileges and immunities *
8 * granted to it by virtue of its status as an Intergovernmental Organization *
9 * or submit itself to any jurisdiction. *
10 \***********************************************************************************/
11 //====================================================================
12 // EventSelectorDataStream.h
13 //--------------------------------------------------------------------
14 //
15 // Package : EventSelectorDataStream (LHCb Event Selector Package)
16 //
17 // Author : M.Frank
18 // Created : 4/10/00
19 // Changes : R. Lambert 2009-09-04
20 //
21 //====================================================================
22 #ifndef GAUDIKERNEL_EVENTSELECTORDATASTREAM_H
23 #define GAUDIKERNEL_EVENTSELECTORDATASTREAM_H 1
24 
25 // Include files
26 #include <Gaudi/Property.h>
28 
29 // STL include files
30 #include <iostream>
31 #include <vector>
32 
33 // Forward declarations
34 class MsgStream;
35 class ISvcLocator;
37 
55 class GAUDI_API EventSelectorDataStream : public implements<IInterface> {
57  friend MsgStream& operator<<( MsgStream& s, const EventSelectorDataStream& obj );
60 
61 public:
63 
64 protected:
82  bool m_initialized = false;
84  virtual ~EventSelectorDataStream() = default;
85 
86 public:
90  virtual void setSelector( IEvtSelector* pSelector );
92  virtual StatusCode initialize();
94  virtual StatusCode finalize();
96  Gaudi::Property<std::string>* property( const std::string& nam );
98  const Gaudi::Property<std::string>* property( const std::string& nam ) const;
100  const Properties& properties() { return m_properties; }
102  const std::string& name() const { return m_name; }
104  const std::string& criteria() const { return m_criteria; }
106  const std::string& dbName() const { return m_dbName; }
108  const std::string& selectorType() const { return m_selectorType; }
110  const std::string& definition() const { return m_definition; }
112  IEvtSelector* selector() const { return m_pSelector.get(); }
114  bool isInitialized() const { return m_initialized; }
115 };
116 
121 
122 #endif // GAUDIKERNEL_EVENTSELECTORDATASTREAM_H
EventSelectorDataStream::isInitialized
bool isInitialized() const
Check initialization status.
Definition: EventSelectorDataStream.h:114
EventSelectorDataStream::m_definition
std::string m_definition
Definition string.
Definition: EventSelectorDataStream.h:68
operator<<
GAUDI_API MsgStream & operator<<(MsgStream &s, const EventSelectorDataStream &obj)
Output friend for MsgStream.
Definition: EventSelectorDataStream.cpp:35
std::string
STL class.
EventSelectorDataStream::selectorType
const std::string & selectorType() const
Retrieve event selector type.
Definition: EventSelectorDataStream.h:108
gaudirun.s
string s
Definition: gaudirun.py:346
std::vector
STL class.
ISvcLocator
Definition: ISvcLocator.h:46
EventSelectorDataStream::definition
const std::string & definition() const
Retrieve definition string.
Definition: EventSelectorDataStream.h:110
IEvtSelector
Definition: IEvtSelector.h:28
EventSelectorDataStream::m_name
std::string m_name
Name.
Definition: EventSelectorDataStream.h:66
IEvtSelector.h
EventSelectorDataStream::m_selectorType
std::string m_selectorType
Event selector type.
Definition: EventSelectorDataStream.h:74
EventSelectorDataStream::m_pSvcLocator
ISvcLocator * m_pSvcLocator
Reference to service locator.
Definition: EventSelectorDataStream.h:78
EventSelectorDataStream::criteria
const std::string & criteria() const
Retrieve stream criteria.
Definition: EventSelectorDataStream.h:104
Properties
Definition: Properties.py:1
StatusCode
Definition: StatusCode.h:65
std::ostream
STL class.
EventSelectorDataStream::properties
const Properties & properties()
Access properties.
Definition: EventSelectorDataStream.h:100
SmartIF< IEvtSelector >
MsgStream
Definition: MsgStream.h:33
EventSelectorDataStream::m_properties
Properties m_properties
Properties vector.
Definition: EventSelectorDataStream.h:80
EventSelectorDataStream::m_criteria
std::string m_criteria
Criteria.
Definition: EventSelectorDataStream.h:70
implements
Base class used to implement the interfaces.
Definition: implements.h:19
EventSelectorDataStream::dbName
const std::string & dbName() const
Retrieve stream dbName.
Definition: EventSelectorDataStream.h:106
SmartIF::get
TYPE * get() const
Get interface pointer.
Definition: SmartIF.h:86
EventSelectorDataStream::name
const std::string & name() const
Retrieve stream name.
Definition: EventSelectorDataStream.h:102
EventSelectorDataStream::m_dbName
std::string m_dbName
String with name of the db as parsed.
Definition: EventSelectorDataStream.h:72
EventSelectorDataStream
Definition of class EventSelectorDataStream.
Definition: EventSelectorDataStream.h:55
EventSelectorDataStream::m_pSelector
SmartIF< IEvtSelector > m_pSelector
Pointer to valid selector.
Definition: EventSelectorDataStream.h:76
EventSelectorDataStream::Properties
std::vector< Gaudi::Property< std::string > > Properties
Definition: EventSelectorDataStream.h:62
EventSelectorDataStream::~EventSelectorDataStream
virtual ~EventSelectorDataStream()=default
Standard Destructor.
GAUDI_API
#define GAUDI_API
Definition: Kernel.h:81
Gaudi::Property< std::string >
Property.h
EventSelectorDataStream::selector
IEvtSelector * selector() const
Retrieve event selector object.
Definition: EventSelectorDataStream.h:112