The Gaudi Framework  v29r0 (ff2e7097)
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 <string>
16 #include <vector>
17 
18 // Required for inheritance
19 #include "GaudiKernel/Algorithm.h"
20 
26 {
27 protected:
28  Gaudi::Property<std::vector<std::string>> m_itemNames{this, "ItemList", {}, "vector of item names"};
29  Gaudi::Property<std::string> m_storeName{this, "EvtDataSvc", "TagCollectionSvc",
30  "name of the service managing the data store"};
31 
36 
37 protected:
39  void clearItems();
41  void addItem( const std::string& descriptor );
42 
43 public:
47  ~EvtCollectionStream() override = default;
49  StatusCode initialize() override;
51  StatusCode finalize() override;
53  StatusCode execute() override;
54 };
55 
56 #endif // GAUDISVC_PERSISTENCYSVC_EVTCOLLECTIONSTREAM_H
StatusCode initialize() override
Initialize EvtCollectionStream.
Gaudi::Property< std::vector< std::string > > m_itemNames
Implementation of property with value of concrete type.
Definition: Property.h:319
SmartIF< INTupleSvc > m_pTupleSvc
Reference to Tuple service for event collection (may or may not be NTuple service) ...
Gaudi::Property< std::string > m_storeName
~EvtCollectionStream() override=default
Standard Destructor.
STL class.
This class is used for returning status codes from appropriate routines.
Definition: StatusCode.h:28
std::vector< std::unique_ptr< DataStoreItem > > m_itemList
Vector of items to be saved to this stream.
Algorithm(const std::string &name, ISvcLocator *svcloc, const std::string &version=PACKAGE_VERSION)
Constructor.
Definition: Algorithm.cpp:47
Base class from which all concrete algorithm classes should be derived.
Definition: Algorithm.h:78
STL class.
void clearItems()
Clear item list.
void addItem(const std::string &descriptor)
Add item to output streamer list.
StatusCode finalize() override
Terminate EvtCollectionStream.
StatusCode execute() override
Working entry point.
A small to stream Data I/O.