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. More... | |
virtual | ~RootOutputStreamTool () |
Destructor. More... | |
StatusCode | initialize () |
Gaudi AlgTool Interface method implementations: More... | |
StatusCode | finalize () |
StatusCode | connectServices (const std::string &dataStore, const std::string &cnvSvc, bool extendProvenenceRecord) |
Specify which data store and conversion service to use and whether to extend provenence Only use if one wants to override jobOptions. More... | |
StatusCode | connectOutput (const std::string &outputName) |
Connect to the output stream Must connectOutput BEFORE streaming Only specify "outputName" if one wants to override jobOptions. More... | |
StatusCode | commitOutput (bool doCommit=false) |
Commit the output stream after having streamed out objects Must commitOutput AFTER streaming. More... | |
StatusCode | finalizeOutput () |
Finalize the output stream after the last commit, e.g. More... | |
StatusCode | streamObjects (const IAthenaOutputStreamTool::TypeKeyPairs &typeKeys, const std::string &outputName="") |
Stream out objects. More... | |
StatusCode | streamObjects (const IAthenaOutputStreamTool::DataObjectVec &dataObjects, const std::string &outputName="") |
Stream out a vector of objects Must convert to DataObject, e.g. More... | |
StatusCode | fillObjectRefs (const IAthenaOutputStreamTool::DataObjectVec &dataObjects) |
Fill refs of an object - done as second iteration over objects, after streamObject. More... | |
StatusCode | getInputItemList (SG::IFolder *m_p2BWrittenFromTool) |
Private Member Functions | |
RootOutputStreamTool () | |
Default constructor: More... | |
RootOutputStreamTool (const RootOutputStreamTool &) | |
RootOutputStreamTool & | operator= (const RootOutputStreamTool &) |
Private Attributes | |
ServiceHandle< ::StoreGateSvc > | m_storeSvc |
ServiceHandle to the data store service. More... | |
ServiceHandle< ::IConversionSvc > | m_conversionSvc |
ServiceHandle to the data conversion service. More... | |
ServiceHandle< ::IClassIDSvc > | m_clidSvc |
ServiceHandle to clid service. More... | |
std::string | m_outputName |
Name of the output file. More... | |
std::string | m_treeName |
Name of the output tuple. More... | |
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 | ||
) |
|
virtual |
|
private |
Default constructor:
|
private |
StatusCode Athena::RootOutputStreamTool::commitOutput | ( | bool | doCommit = false | ) |
Commit the output stream after having streamed out objects Must commitOutput AFTER streaming.
Definition at line 112 of file RootOutputStreamTool.cxx.
StatusCode Athena::RootOutputStreamTool::connectOutput | ( | const std::string & | outputName | ) |
Connect to the output stream Must connectOutput BEFORE streaming Only specify "outputName" if one wants to override jobOptions.
Definition at line 94 of file RootOutputStreamTool.cxx.
StatusCode Athena::RootOutputStreamTool::connectServices | ( | const std::string & | dataStore, |
const std::string & | cnvSvc, | ||
bool | extendProvenenceRecord | ||
) |
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 80 of file RootOutputStreamTool.cxx.
StatusCode Athena::RootOutputStreamTool::fillObjectRefs | ( | const IAthenaOutputStreamTool::DataObjectVec & | dataObjects | ) |
Fill refs of an object - done as second iteration over objects, after streamObject.
Definition at line 223 of file RootOutputStreamTool.cxx.
StatusCode Athena::RootOutputStreamTool::finalize | ( | ) |
Definition at line 62 of file RootOutputStreamTool.cxx.
StatusCode Athena::RootOutputStreamTool::finalizeOutput | ( | ) |
Finalize the output stream after the last commit, e.g.
in finalize
Definition at line 129 of file RootOutputStreamTool.cxx.
StatusCode Athena::RootOutputStreamTool::getInputItemList | ( | SG::IFolder * | m_p2BWrittenFromTool | ) |
Definition at line 228 of file RootOutputStreamTool.cxx.
StatusCode Athena::RootOutputStreamTool::initialize | ( | ) |
Gaudi AlgTool Interface method implementations:
Definition at line 49 of file RootOutputStreamTool.cxx.
|
private |
StatusCode Athena::RootOutputStreamTool::streamObjects | ( | const IAthenaOutputStreamTool::DataObjectVec & | dataObjects, |
const std::string & | outputName = "" |
||
) |
Stream out a vector of objects Must convert to DataObject, e.g.
#include "AthenaKernel/StorableConversions.h" T* obj = xxx; DataObject* dataObject = SG::asStorable(obj);
StatusCode Athena::RootOutputStreamTool::streamObjects | ( | const IAthenaOutputStreamTool::TypeKeyPairs & | typeKeys, |
const std::string & | outputName = "" |
||
) |
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 134 of file RootOutputStreamTool.cxx.
|
private |
ServiceHandle to clid service.
Definition at line 93 of file RootOutputStreamTool.h.
|
private |
ServiceHandle to the data conversion service.
Definition at line 91 of file RootOutputStreamTool.h.
|
private |
Name of the output file.
Definition at line 96 of file RootOutputStreamTool.h.
|
private |
ServiceHandle to the data store service.
Definition at line 89 of file RootOutputStreamTool.h.
|
private |
Name of the output tuple.
Definition at line 99 of file RootOutputStreamTool.h.