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 
27 protected:
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
StatusCode initialize() override
Initialize EvtCollectionStream.
The ISvcLocator is the interface implemented by the Service Factory in the Application Manager to loc...
Definition: ISvcLocator.h:25
SmartIF< INTupleSvc > m_pTupleSvc
Reference to Tuple service for event collection (may or may not be NTuple service) ...
~EvtCollectionStream() override=default
Standard Destructor.
const std::string & name() const override
The identifying name of the algorithm object.
Definition: Algorithm.cpp:919
std::vector< std::string > m_itemNames
Vector of item names.
This class is used for returning status codes from appropriate routines.
Definition: StatusCode.h:26
std::vector< std::unique_ptr< DataStoreItem > > m_itemList
Vector of items to be saved to this stream.
Base class from which all concrete algorithm classes should be derived.
Definition: Algorithm.h:77
std::string m_storeName
Name of the service managing the data store.
void clearItems()
Clear item list.
void addItem(const std::string &descriptor)
Add item to output streamer list.
StatusCode finalize() override
Terminate EvtCollectionStream.
EvtCollectionStream(const std::string &name, ISvcLocator *pSvcLocator)
Standard algorithm Constructor.
StatusCode execute() override
Working entry point.
A small to stream Data I/O.