#include <OutputTool.h>
Public Member Functions | |
OutputTool (const std::string &name, const std::string &contBaseName="") | |
Standard constructor. | |
virtual StatusCode | initialize () override |
Initialize the tool. | |
virtual StatusCode | write (xAOD::TEvent *outputStore, const std::string &suffix="") override |
Protected Attributes | |
std::string | m_contBaseName |
Name of the container to write out. |
Templated tool class for writing a container and its aux container to the persistent event store in ROOT. The first template parameter specifies the xAOD container type. The second template parameter specifies the auxilliary store type. The default aux type is ShallowAuxContainer.
For now, I'll just inherit from AsgTool. I could change this later.
Note: this won't compile in Athena due to the dependence on xAODRootAccess via TEvent.
THIS TOOL IS DEPRECATED. Please use the OutputToolXAOD and MasterOutputToolXAOD instead.
StatusCode ana::OutputTool< ContainerType, AuxType >::write | ( | xAOD::TEvent * | outputStore, | |
const std::string & | suffix = "" | |||
) | [inline, override, virtual] |
Write the container and its aux container to the provided persistent store. The container name is "basename_suffix". Returns FAILURE if the templated types do not match those in the store.
Implements ana::IOutputToolOld.