ATLAS Offline Software
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):
23 class TTree;
24 
25 namespace EL {
26 
32  class ITreeWorker {
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
tree
TChain * tree
Definition: tile_monitor.h:30
const
bool const RAWDATA *ch2 const
Definition: LArRodBlockPhysicsV0.cxx:562
AthenaPoolTestWrite.stream
string stream
Definition: AthenaPoolTestWrite.py:12
EL::ITreeWorker::addTree
virtual ::StatusCode addTree(const TTree &tree, const std::string &stream)=0
Add a tree to the output, into an output stream/file.
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
EL::ITreeWorker
The interface to TTree storage on the worker.
Definition: ITreeWorker.h:32
EL
This module defines the arguments passed from the BATCH driver to the BATCH worker.
Definition: AlgorithmWorkerData.h:24
StatusCode.h
Global.h
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:195
EL::ITreeWorker::getOutputTree
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.
EL::ITreeWorker::~ITreeWorker
virtual ~ITreeWorker() noexcept=default
Virtual destructor, to make vtable happy...
python.CaloScaleNoiseConfig.default
default
Definition: CaloScaleNoiseConfig.py:79