| The Gaudi Framework v27r1

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes
- Files

- File List
- File Members

EvtCollectionStream.h
Go to the documentation of this file.
1 // ====================================================================
2 // EvtCollectionStream.h
3 // --------------------------------------------------------------------
4 //
5 // Package : GaudiSvc/PersistencySvc
6 //
7 // Author : Markus Frank
8 //
9 // ====================================================================
10 #ifndef GAUDISVC_PERSISTENCYSVC_EVTCOLLECTIONSTREAM_H
11 #define GAUDISVC_PERSISTENCYSVC_EVTCOLLECTIONSTREAM_H
12
13 // STL include files
14 #include <memory>
15 #include <vector>
16 #include <string>
17
18 // Required for inheritance
19 #include "GaudiKernel/Algorithm.h"
20
21
26 class EvtCollectionStream : public Algorithm {
27 protected:
29 SmartIF<INTupleSvc> m_pTupleSvc;
31 std::string m_storeName;
33 std::vector<std::string> m_itemNames;
35 std::vector<std::unique_ptr<DataStoreItem>> m_itemList;
36 public:
38 EvtCollectionStream(const std::string& name, ISvcLocator* pSvcLocator);
39 protected:
41 ~EvtCollectionStream() override = default;
43 void clearItems();
45 void addItem(const std::string& descriptor);
46 public:
48 StatusCode initialize() override;
50 StatusCode finalize() override;
52 StatusCode execute() override;
53 };
54
55 #endif // GAUDISVC_PERSISTENCYSVC_EVTCOLLECTIONSTREAM_H
Algorithm.h
EvtCollectionStream::initialize
StatusCode initialize() override
Initialize EvtCollectionStream.
Definition: EvtCollectionStream.cpp:33
SmartIF< INTupleSvc >
ISvcLocator
The ISvcLocator is the interface implemented by the Service Factory in the Application Manager to loc...
Definition: ISvcLocator.h:25
EvtCollectionStream::m_pTupleSvc
SmartIF< INTupleSvc > m_pTupleSvc
Reference to Tuple service for event collection (may or may not be NTuple service) ...
Definition: EvtCollectionStream.h:29
EvtCollectionStream::~EvtCollectionStream
~EvtCollectionStream() override=default
Standard Destructor.
std::string
STL class.
Algorithm::name
const std::string & name() const override
The identifying name of the algorithm object.
Definition: Algorithm.cpp:820
EvtCollectionStream::m_itemNames
std::vector< std::string > m_itemNames
Vector of item names.
Definition: EvtCollectionStream.h:33
StatusCode
This class is used for returning status codes from appropriate routines.
Definition: StatusCode.h:26
EvtCollectionStream::m_itemList
std::vector< std::unique_ptr< DataStoreItem > > m_itemList
Vector of items to be saved to this stream.
Definition: EvtCollectionStream.h:35
Algorithm
Base class from which all concrete algorithm classes should be derived.
Definition: Algorithm.h:74
std::vector< std::string >
EvtCollectionStream::m_storeName
std::string m_storeName
Name of the service managing the data store.
Definition: EvtCollectionStream.h:31
EvtCollectionStream::clearItems
void clearItems()
Clear item list.
Definition: EvtCollectionStream.cpp:70
EvtCollectionStream::addItem
void addItem(const std::string &descriptor)
Add item to output streamer list.
Definition: EvtCollectionStream.cpp:75
EvtCollectionStream::finalize
StatusCode finalize() override
Terminate EvtCollectionStream.
Definition: EvtCollectionStream.cpp:51
EvtCollectionStream::EvtCollectionStream
EvtCollectionStream(const std::string &name, ISvcLocator *pSvcLocator)
Standard algorithm Constructor.
Definition: EvtCollectionStream.cpp:24
EvtCollectionStream::execute
StatusCode execute() override
Working entry point.
Definition: EvtCollectionStream.cpp:58
EvtCollectionStream
A small to stream Data I/O.
Definition: EvtCollectionStream.h:26