ATLAS Offline Software
Loading...
Searching...
No Matches
AsgxAODNTupleMakerAlg.h
Go to the documentation of this file.
1// Dear emacs, this is -*- c++ -*-
2//
3// Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
4//
5#ifndef ASGANALYSISALGORITHMS_ASGXAODNTUPLEMAKERALG_H
6#define ASGANALYSISALGORITHMS_ASGXAODNTUPLEMAKERALG_H
7
8// System include(s):
9#include <string>
10#include <vector>
11
12// Framework include(s):
18
19// local include(s):
21
22// Forward declaration(s):
23class TTree;
24
25namespace CP {
26
49
50 public:
53
56
58 StatusCode initialize() override;
59
61 StatusCode execute(const EventContext& ctx) override;
62
64 StatusCode finalize() override;
65
67
68 private:
69
72
74 Gaudi::Property<std::string> m_treeName {this, "TreeName", "physics", "Name of the tree to write"};
76 Gaudi::Property<std::vector<std::string>> m_branches {this, "Branches", {}, "Branches to write to the output tree"};
77 Gaudi::Property<std::vector<std::string>> m_nonContainers {this, "NonContainers", {"EventInfo"}, "List of objects that are single elements, not containers"};
78 Gaudi::Property<int> m_defaultBasketSize {this, "DefaultBasketSize", 0, "Default basket size for tree branches (0 means ROOT default)"};
79
81
84
86
88 TTree* m_tree = nullptr;
89
91 ServiceHandle<ISystematicsSvc> m_systematicsService {this, "systematicsService", "SystematicsSvc", "systematics service"};
92
94
95 }; // class AsgxAODNTupleMakerAlg
96
97} // namespace CP
98
99#endif // ASGANALYSISALGORITHMS_ASGXAODNTUPLEMAKERALG_H
Define macros for attributes used to control the static checker.
Algorithm that can write a simple ntuple from xAOD objects/variables.
Gaudi::Property< int > m_defaultBasketSize
ServiceHandle< ISystematicsSvc > m_systematicsService
the handle for the systematics service
TreeBranchHelpers::ProcessorList m_processorList
Gaudi::Property< std::vector< std::string > > m_nonContainers
StatusCode finalize() override
Function executed as part of the job finalisation.
StatusCode execute(const EventContext &ctx) override
Function executed once per event.
Gaudi::Property< std::string > m_treeName
The name of the output tree to write.
TTree * m_tree
The tree being written.
Gaudi::Property< std::vector< std::string > > m_branches
The branches to write into this output tree.
the (new) base class for EventLoop algorithms
AnaAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
constructor with parameters
Select isolated Photons, Electrons and Muons.
void ErrorHandler ATLAS_NOT_THREAD_SAFE(Int_t level, Bool_t abort, const char *location, const char *message)
Function filtering the warnings coming from ROOT.
Definition Init.cxx:105
void initialize()