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):
18
19// Forward declaration(s):
20class TTree;
21
22namespace CP {
23
37
39
40 public:
43
46
48 StatusCode initialize() override;
50 StatusCode execute(const EventContext& ctx) override;
51
53
54 private:
57
59 Gaudi::Property<std::string> m_treeName {this, "TreeName", "physics", "Name of the tree to write"};
60
65 this, "eventInfo", "EventInfo", "the EventInfo container to read"};
66
68 this, "EventSelection", "", "the event selection to require (empty: fill all events)"};
69
71
74
76 TTree* m_tree = nullptr;
77
79
80 }; // class TreeFillerAlg
81
82} // namespace CP
83
84#endif // ASGANALYSISALGORITHMS_TREEFILLERALG_H
a class managing the property to configure the list of systematics to process
a data handle for reading systematics varied input data
a data handle for reading systematically varied selection properties from objects
Algorithm that writes events to a tree filled by preceding algorithms to fill.
SysReadHandle< xAOD::EventInfo > m_eventInfoHandle
The EventInfo to read the event selection from.
StatusCode initialize() override
Function initialising the algorithm.
TTree * m_tree
The tree being written.
SysReadSelectionHandle m_eventSelection
Only fill events passing this selection for at least one systematic.
SysListHandle m_systematicsList
The systematics list we run.
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.