ATLAS Offline Software
Loading...
Searching...
No Matches
ITreeWorker.h
Go to the documentation of this file.
1// Dear emacs, this is -*- c++ -*-
2//
3// Copyright (C) 2002-2018 CERN for the benefit of the ATLAS collaboration
4//
5#ifndef ANAALGORITHM_ITREEWORKER_H
6#define ANAALGORITHM_ITREEWORKER_H
7
8// Bail right away if somebody tries to use this from the wrong environment:
9#ifndef XAOD_STANDALONE
10# error only include this header in AnalysisBase
11#endif
12
13// System include(s):
14#include <string>
15
16// Framework include(s):
18
19// Local include(s):
20#include "AnaAlgorithm/Global.h"
21
22// Forward declaration(s):
23class TTree;
24
25namespace EL {
26
33
34 public:
36 virtual ~ITreeWorker () noexcept = default;
37
43 virtual ::StatusCode addTree( const TTree& tree,
44 const std::string& stream ) = 0;
45
52 virtual TTree* getOutputTree( const std::string& name,
53 const std::string& stream ) const = 0;
54
55 }; // class ITreeWorker
56
57} // namespace EL
58
59#endif // ANAALGORITHM_ITREEWORKER_H
The interface to TTree storage on the worker.
Definition ITreeWorker.h:32
virtual::StatusCode addTree(const TTree &tree, const std::string &stream)=0
Add a tree to the output, into an output stream/file.
virtual ~ITreeWorker() noexcept=default
Virtual destructor, to make vtable happy...
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.
This module defines the arguments passed from the BATCH driver to the BATCH worker.
::StatusCode StatusCode
StatusCode definition for legacy code.
STL namespace.
TChain * tree