TagCollectionStream.h
Go to the documentation of this file.
1 // $Id: TagCollectionStream.h,v 1.1 2006/08/18 14:50:24 hmd Exp $
2 #ifndef GAUDISVC_PERSISTENCYSVC_TAGCOLLECTIONSTREAM_H
3 #define GAUDISVC_PERSISTENCYSVC_TAGCOLLECTIONSTREAM_H
4 
5 // Required for inheritance
6 #include "OutputStream.h"
7 #include "GaudiKernel/NTuple.h"
8 
9 // forward declarations
10 class GenericAddress;
11 
12 
64 protected:
65 
67  std::string m_addrLeaf;
69  std::string m_addrColName;
71  std::string m_tagName;
73  std::string m_collSvcName;
79  std::string m_topLeafName;
89  virtual StatusCode writeObjects();
91  virtual StatusCode connectAddress();
98 
99 public:
101  TagCollectionStream(const std::string& name, ISvcLocator* pSvcLocator);
103  virtual ~TagCollectionStream();
105  virtual StatusCode initialize();
107  virtual StatusCode finalize();
108 };
109 
110 #endif // GAUDISVC_PERSISTENCYSVC_TAGCOLLECTIONSTREAM_H
std::string m_addrColName
Property: Name of the address column of the tag collection.
std::string m_tagName
Property: Name of the tag collection in the transient store.
virtual StatusCode connectAddress()
Connect address column, if not already connected.
TagCollectionStream(const std::string &name, ISvcLocator *pSvcLocator)
Standard algorithm Constructor.
The ISvcLocator is the interface implemented by the Service Factory in the Application Manager to loc...
Definition: ISvcLocator.h:26
Specialized output stream class for event tag collections, where the basic Event entry point should b...
virtual StatusCode writeObjects()
OutputStream override: Select the different objects and write them to file.
StatusCode writeData()
Write data objects.
INTupleItem * m_addrColumn
NTuple column to hold the opaque address of the address leaf.
Generic Transient Address.
StatusCode writeTuple()
Write tuple data.
bool m_objectsFirst
Property: Flag to indicate that the objects should be written first.
A small to stream Data I/O.
Definition: OutputStream.h:27
std::string m_addrLeaf
Property: Name of the address leaf in the transient event store.
StatusCode writeRecord()
Write full event record.
NTuple interface class definition.
Definition: INTuple.h:27
virtual StatusCode finalize()
Terminate TagCollectionStream.
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
std::string m_collSvcName
Property: Name of the collection service.
virtual StatusCode initialize()
Initialize TagCollectionStream.
virtual ~TagCollectionStream()
Standard Destructor.
INTupleSvc * m_collectionSvc
Keep reference to the tuple service.
NTuple::Item< IOpaqueAddress * > m_item
Address item buffer.
GenericAddress * m_addr
Address buffer.
bool m_isTopLeaf
Short cut flag to indicate if the address leaf is the top leaf (performace cache) ...
std::string m_topLeafName
Name of the top leaf (performance cache)