| The Gaudi Framework v29r0 (ff2e7097)

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