All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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  typedef std::vector<std::string> ItemNames;
28  typedef std::vector<DataStoreItem*> Items;
29 protected:
33  std::string m_storeName;
38 public:
40  EvtCollectionStream(const std::string& name, ISvcLocator* pSvcLocator);
41 protected:
43  virtual ~EvtCollectionStream();
45  void clearItems();
47  void addItem(const std::string& descriptor);
48 public:
50  virtual StatusCode initialize();
52  virtual StatusCode finalize();
54  virtual StatusCode execute();
55 };
56 
57 #endif // GAUDISVC_PERSISTENCYSVC_EVTCOLLECTIONSTREAM_H
virtual StatusCode finalize()
Terminate EvtCollectionStream.
The ISvcLocator is the interface implemented by the Service Factory in the Application Manager to loc...
Definition: ISvcLocator.h:26
virtual ~EvtCollectionStream()
Standard Destructor.
SmartIF< INTupleSvc > m_pTupleSvc
Reference to Tuple service for event collection (may or may not be NTuple service) ...
virtual StatusCode initialize()
Initialize EvtCollectionStream.
virtual StatusCode execute()
Working entry point.
std::vector< std::string > ItemNames
This class is used for returning status codes from appropriate routines.
Definition: StatusCode.h:30
virtual const std::string & name() const
The identifying name of the algorithm object.
Definition: Algorithm.cpp:837
ItemNames m_itemNames
Vector of item names.
Base class from which all concrete algorithm classes should be derived.
Definition: Algorithm.h:61
std::string m_storeName
Name of the service managing the data store.
void clearItems()
Clear item list.
std::vector< DataStoreItem * > Items
void addItem(const std::string &descriptor)
Add item to output streamer list.
EvtCollectionStream(const std::string &name, ISvcLocator *pSvcLocator)
Standard algorithm Constructor.
Items m_itemList
Vector of items to be saved to this stream.
A small to stream Data I/O.