ATLAS Offline Software
TreeMakerAlg.h
Go to the documentation of this file.
1 // Dear emacs, this is -*- c++ -*-
2 //
3 // Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration
4 //
5 #ifndef ASGANALYSISALGORITHMS_TREEMAKERALG_H
6 #define ASGANALYSISALGORITHMS_TREEMAKERALG_H
7 
10 
11 namespace CP {
12 
27  class TreeMakerAlg : public EL::AnaAlgorithm {
28 
29  public:
32 
35  virtual StatusCode initialize() override;
36 
38  StatusCode execute() override { return StatusCode::SUCCESS; }
39 
41 
42  private:
45 
47  Gaudi::Property<std::string> m_treeName{
48  this, "TreeName", "physics", "Name of the tree to write"};
50  Gaudi::Property<int> m_treeAutoFlush{
51  this, "TreeAutoFlush", 200, "AutoFlush value for the output tree"};
52 
54 
55  }; // class TreeMakerAlg
56 
57 } // namespace CP
58 
59 #endif // ASGANALYSISALGORITHMS_TREEMAKERALG_H
PropertyWrapper.h
CP
Select isolated Photons, Electrons and Muons.
Definition: Control/xAODRootAccess/xAODRootAccess/TEvent.h:48
EL::AnaAlgorithm::AnaAlgorithm
AnaAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
constructor with parameters
Definition: AnaAlgorithm.cxx:40
AnaAlgorithm.h
EL::AnaAlgorithm
the (new) base class for EventLoop algorithms
Definition: AnaAlgorithm.h:73
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
CP::TreeMakerAlg::m_treeName
Gaudi::Property< std::string > m_treeName
The name of the output tree to write.
Definition: TreeMakerAlg.h:47
CP::TreeMakerAlg::execute
StatusCode execute() override
Function executed once per event.
Definition: TreeMakerAlg.h:38
CP::TreeMakerAlg::initialize
virtual StatusCode initialize() override
Definition: TreeMakerAlg.cxx:11
CP::TreeMakerAlg::m_treeAutoFlush
Gaudi::Property< int > m_treeAutoFlush
Flush setting for the output tree.
Definition: TreeMakerAlg.h:50
CP::TreeMakerAlg
Algorithm that creates an empty tree for subsequent algorithms to fill.
Definition: TreeMakerAlg.h:27