ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
PhysicsAnalysis
Algorithms
AsgAnalysisAlgorithms
AsgAnalysisAlgorithms
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):
12
#include "
AnaAlgorithm/AnaAlgorithm.h
"
13
#include <
AsgTools/PropertyWrapper.h
>
14
15
// Forward declaration(s):
16
class
TTree;
17
18
namespace
CP
{
19
33
34
class
TreeFillerAlg
:
public
EL::AnaAlgorithm
{
35
36
public
:
38
using
EL::AnaAlgorithm::AnaAlgorithm
;
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
AnaAlgorithm.h
PropertyWrapper.h
CP::TreeFillerAlg
Algorithm that writes events to a tree filled by preceding algorithms to fill.
Definition
TreeFillerAlg.h:34
CP::TreeFillerAlg::m_tree
TTree * m_tree
The tree being written.
Definition
TreeFillerAlg.h:61
CP::TreeFillerAlg::m_treeName
Gaudi::Property< std::string > m_treeName
The name of the output tree to write.
Definition
TreeFillerAlg.h:53
EL::AnaAlgorithm
the (new) base class for EventLoop algorithms
Definition
AnaAlgorithm.h:74
EL::AnaAlgorithm::AnaAlgorithm
AnaAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
constructor with parameters
Definition
AnaAlgorithm.cxx:40
EL::AnaAlgorithm::execute
virtual::StatusCode execute()
execute this algorithm
Definition
AnaAlgorithm.cxx:315
CP
Select isolated Photons, Electrons and Muons.
Definition
Control/xAODRootAccess/xAODRootAccess/TEvent.h:27
Generated on
for ATLAS Offline Software by
1.17.0