This is the AthenaRoot version of AthenaServices/AthenaOutputStreamTool.
More...
#include <RootOutputStreamTool.h>
This is the AthenaRoot version of AthenaServices/AthenaOutputStreamTool.
Definition at line 33 of file RootOutputStreamTool.h.
◆ RootOutputStreamTool()
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.
39 declareProperty(
"Store",
m_storeSvc,
"Store from which to stream out event data");
40 declareProperty(
"TreeName",
m_treeName =
"CollectionTree",
"Name of the output event tree");
41 declareProperty(
"OutputFile",
m_outputName,
"Name of the output file");
◆ ~RootOutputStreamTool()
Athena::RootOutputStreamTool::~RootOutputStreamTool |
( |
| ) |
|
|
virtual |
◆ commitOutput()
StatusCode Athena::RootOutputStreamTool::commitOutput |
( |
bool |
doCommit = false | ) |
|
|
overridevirtual |
Commit the output stream after having streamed out objects Must commitOutput AFTER streaming.
Definition at line 107 of file RootOutputStreamTool.cxx.
111 return StatusCode::FAILURE;
116 return StatusCode::FAILURE;
121 return StatusCode::SUCCESS;
◆ connectOutput()
StatusCode Athena::RootOutputStreamTool::connectOutput |
( |
const std::string & |
outputName | ) |
|
|
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.
95 return StatusCode::FAILURE;
100 return StatusCode::FAILURE;
104 return StatusCode::SUCCESS;
◆ connectServices()
StatusCode Athena::RootOutputStreamTool::connectServices |
( |
const std::string & |
dataStore, |
|
|
const std::string & |
cnvSvc, |
|
|
bool |
extendProvenenceRecord |
|
) |
| |
|
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.
76 ATH_MSG_VERBOSE(
"connectServices dataStore = " << dataStore <<
", cnvSvc = " << cnvSvc <<
", extendProv = " << extendProvenenceRecord);
86 return StatusCode::SUCCESS;
◆ finalize()
StatusCode Athena::RootOutputStreamTool::finalize |
( |
| ) |
|
|
overridevirtual |
◆ finalizeOutput()
StatusCode Athena::RootOutputStreamTool::finalizeOutput |
( |
| ) |
|
|
overridevirtual |
Finalize the output stream after the last commit, e.g.
in finalize
Definition at line 124 of file RootOutputStreamTool.cxx.
126 return StatusCode::SUCCESS;
◆ getInputItemList()
StatusCode Athena::RootOutputStreamTool::getInputItemList |
( |
SG::IFolder * |
m_p2BWrittenFromTool | ) |
|
|
overridevirtual |
◆ initialize()
StatusCode Athena::RootOutputStreamTool::initialize |
( |
| ) |
|
|
overridevirtual |
◆ streamObjects() [1/2]
Stream out a vector of objects Must convert to DataObject, e.g.
#include "AthenaKernel/StorableConversions.h" T* obj = xxx; DataObject* dataObject = SG::asStorable(obj);
◆ streamObjects() [2/2]
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.
132 std::vector<DataObject*> dataObjects;
133 dataObjects.reserve(typeKeys.size());
134 for (IAthenaOutputStreamTool::TypeKeyPairs::const_iterator
first = typeKeys.begin(), last = typeKeys.end();
136 const std::string&
type = (*first).first;
137 const std::string&
key = (*first).second;
142 return StatusCode::FAILURE;
144 DataObject* dObj = 0;
163 dataObjects.push_back(dObj);
◆ m_clidSvc
ServiceHandle< ::IClassIDSvc> Athena::RootOutputStreamTool::m_clidSvc |
|
private |
◆ m_conversionSvc
ServiceHandle< ::IConversionSvc> Athena::RootOutputStreamTool::m_conversionSvc |
|
private |
◆ m_outputName
std::string Athena::RootOutputStreamTool::m_outputName |
|
private |
◆ m_storeSvc
◆ m_treeName
std::string Athena::RootOutputStreamTool::m_treeName |
|
private |
The documentation for this class was generated from the following files: