ATLAS Offline Software
Loading...
Searching...
No Matches
TreeFillerAlg.h
Go to the documentation of this file.
1// Dear emacs, this is -*- c++ -*-
2//
3// Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
4//
5#ifndef ASGANALYSISALGORITHMS_TREEFILLERALG_H
6#define ASGANALYSISALGORITHMS_TREEFILLERALG_H
7
8// System include(s):
9#include <string>
10
11// Framework include(s):
14
15// Forward declaration(s):
16class TTree;
17
18namespace CP {
19
33
35
36 public:
39
42
44 StatusCode execute(const EventContext& ctx) override;
45
47
48 private:
51
53 Gaudi::Property<std::string> m_treeName {this, "TreeName", "physics", "Name of the tree to write"};
54
56
59
61 TTree* m_tree = nullptr;
62
64
65 }; // class TreeFillerAlg
66
67} // namespace CP
68
69#endif // ASGANALYSISALGORITHMS_TREEFILLERALG_H
Algorithm that writes events to a tree filled by preceding algorithms to fill.
TTree * m_tree
The tree being written.
Gaudi::Property< std::string > m_treeName
The name of the output tree to write.
the (new) base class for EventLoop algorithms
AnaAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
constructor with parameters
virtual::StatusCode execute()
execute this algorithm
Select isolated Photons, Electrons and Muons.