![]() |
ATLAS Offline Software
|
This is the AthenaRoot version of AthenaServices/AthenaOutputStreamTool. More...
#include <RootOutputStreamTool.h>
Public Member Functions | |
| RootOutputStreamTool (const std::string &type, const std::string &name, const IInterface *parent) | |
| Standard AlgTool Constructor. | |
| virtual | ~RootOutputStreamTool () |
| Destructor. | |
| virtual StatusCode | initialize () override |
| Gaudi AlgTool Interface method implementations: | |
| virtual StatusCode | finalize () override |
| virtual StatusCode | connectServices (const std::string &dataStore, const std::string &cnvSvc, bool extendProvenenceRecord) override |
| Specify which data store and conversion service to use and whether to extend provenence Only use if one wants to override jobOptions. | |
| virtual StatusCode | connectOutput (const std::string &outputName) override |
| Connect to the output stream Must connectOutput BEFORE streaming Only specify "outputName" if one wants to override jobOptions. | |
| virtual StatusCode | commitOutput (bool doCommit=false) override |
| Commit the output stream after having streamed out objects Must commitOutput AFTER streaming. | |
| virtual StatusCode | finalizeOutput () override |
| Finalize the output stream after the last commit, e.g. | |
| virtual StatusCode | streamObjects (const IAthenaOutputStreamTool::TypeKeyPairs &typeKeys, const std::string &outputName="") override |
| Stream out objects. | |
| virtual StatusCode | streamObjects (const IAthenaOutputStreamTool::DataObjectVec &dataObjects, const std::string &outputName="") override |
| Stream out a vector of objects Must convert to DataObject, e.g. | |
| virtual StatusCode | getInputItemList (SG::IFolder *m_p2BWrittenFromTool) override |
Private Attributes | |
| ServiceHandle< ::StoreGateSvc > | m_storeSvc |
| ServiceHandle to the data store service. | |
| ServiceHandle< ::IConversionSvc > | m_conversionSvc |
| ServiceHandle to the data conversion service. | |
| ServiceHandle< ::IClassIDSvc > | m_clidSvc |
| ServiceHandle to clid service. | |
| std::string | m_outputName |
| Name of the output file. | |
| std::string | m_treeName |
| Name of the output tuple. | |
This is the AthenaRoot version of AthenaServices/AthenaOutputStreamTool.
Definition at line 33 of file RootOutputStreamTool.h.
| Athena::RootOutputStreamTool::RootOutputStreamTool | ( | const std::string & | type, |
| const std::string & | name, | ||
| const IInterface * | parent ) |
Standard AlgTool Constructor.
Definition at line 33 of file RootOutputStreamTool.cxx.
|
virtual |
|
overridevirtual |
Commit the output stream after having streamed out objects Must commitOutput AFTER streaming.
Definition at line 107 of file RootOutputStreamTool.cxx.
|
overridevirtual |
Connect to the output stream Must connectOutput BEFORE streaming Only specify "outputName" if one wants to override jobOptions.
Definition at line 89 of file RootOutputStreamTool.cxx.
|
overridevirtual |
Specify which data store and conversion service to use and whether to extend provenence Only use if one wants to override jobOptions.
Definition at line 75 of file RootOutputStreamTool.cxx.
|
overridevirtual |
Definition at line 57 of file RootOutputStreamTool.cxx.
|
overridevirtual |
Finalize the output stream after the last commit, e.g.
in finalize
Definition at line 124 of file RootOutputStreamTool.cxx.
|
overridevirtual |
Definition at line 218 of file RootOutputStreamTool.cxx.
|
overridevirtual |
Gaudi AlgTool Interface method implementations:
Definition at line 47 of file RootOutputStreamTool.cxx.
|
overridevirtual |
Stream out a vector of objects Must convert to DataObject, e.g.
#include "AthenaKernel/StorableConversions.h" T* obj = xxx; DataObject* dataObject = SG::asStorable(obj);
|
overridevirtual |
Stream out objects.
Provide vector of typeName/key pairs. If key is empty, assumes only one object and this will fail if there is more than one
Definition at line 129 of file RootOutputStreamTool.cxx.
|
private |
ServiceHandle to clid service.
Definition at line 83 of file RootOutputStreamTool.h.
|
private |
ServiceHandle to the data conversion service.
Definition at line 81 of file RootOutputStreamTool.h.
|
private |
Name of the output file.
Definition at line 86 of file RootOutputStreamTool.h.
|
private |
ServiceHandle to the data store service.
Definition at line 79 of file RootOutputStreamTool.h.
|
private |
Name of the output tuple.
Definition at line 89 of file RootOutputStreamTool.h.