ATLAS Offline Software
Public Member Functions | List of all members
EL::ITreeWorker Class Referenceabstract

The interface to TTree storage on the worker. More...

#include <ITreeWorker.h>

Inheritance diagram for EL::ITreeWorker:
Collaboration diagram for EL::ITreeWorker:

Public Member Functions

virtual ~ITreeWorker () noexcept=default
 Virtual destructor, to make vtable happy... More...
 
virtual ::StatusCode addTree (const TTree &tree, const std::string &stream)=0
 Add a tree to the output, into an output stream/file. More...
 
virtual TTree * getOutputTree (const std::string &name, const std::string &stream) const =0
 Get the pointer to an output tree with a given name/stream. More...
 

Detailed Description

The interface to TTree storage on the worker.

This interface summarizes the subset of Worker that is needed for handling TTree outputs.

Definition at line 32 of file ITreeWorker.h.

Constructor & Destructor Documentation

◆ ~ITreeWorker()

virtual EL::ITreeWorker::~ITreeWorker ( )
virtualdefaultnoexcept

Virtual destructor, to make vtable happy...

Member Function Documentation

◆ addTree()

virtual ::StatusCode EL::ITreeWorker::addTree ( const TTree &  tree,
const std::string &  stream 
)
pure virtual

Add a tree to the output, into an output stream/file.

Parameters
treeThe tree to put into the output stream/file
streamThe name of the stream/file to put the tree into.

Implemented in EL::Worker.

◆ getOutputTree()

virtual TTree* EL::ITreeWorker::getOutputTree ( const std::string &  name,
const std::string &  stream 
) const
pure virtual

Get the pointer to an output tree with a given name/stream.

Parameters
nameThe name of the tree to find
streamThe stream/file to find the tree in
Returns
A pointer to the tree if successful, or nullptr if not

Implemented in EL::Worker.


The documentation for this class was generated from the following file: