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
#include <
SelectionHelpers/SysReadSelectionHandle.h
>
15
#include <
SystematicsHandles/SysListHandle.h
>
16
#include <
SystematicsHandles/SysReadHandle.h
>
17
#include <
xAODEventInfo/EventInfo.h
>
18
19
// Forward declaration(s):
20
class
TTree;
21
22
namespace
CP
{
23
37
38
class
TreeFillerAlg
:
public
EL::AnaAlgorithm
{
39
40
public
:
42
using
EL::AnaAlgorithm::AnaAlgorithm
;
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
62
SysListHandle
m_systematicsList
{
this
};
64
SysReadHandle<xAOD::EventInfo>
m_eventInfoHandle
{
65
this
,
"eventInfo"
,
"EventInfo"
,
"the EventInfo container to read"
};
66
67
SysReadSelectionHandle
m_eventSelection
{
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
AnaAlgorithm.h
PropertyWrapper.h
SysListHandle.h
SysReadHandle.h
SysReadSelectionHandle.h
CP::SysListHandle
a class managing the property to configure the list of systematics to process
Definition
SysListHandle.h:33
CP::SysReadHandle
a data handle for reading systematics varied input data
Definition
SysReadHandle.h:33
CP::SysReadSelectionHandle
a data handle for reading systematically varied selection properties from objects
Definition
SysReadSelectionHandle.h:32
CP::TreeFillerAlg
Algorithm that writes events to a tree filled by preceding algorithms to fill.
Definition
TreeFillerAlg.h:38
CP::TreeFillerAlg::m_eventInfoHandle
SysReadHandle< xAOD::EventInfo > m_eventInfoHandle
The EventInfo to read the event selection from.
Definition
TreeFillerAlg.h:64
CP::TreeFillerAlg::initialize
StatusCode initialize() override
Function initialising the algorithm.
Definition
TreeFillerAlg.cxx:11
CP::TreeFillerAlg::m_tree
TTree * m_tree
The tree being written.
Definition
TreeFillerAlg.h:76
CP::TreeFillerAlg::m_eventSelection
SysReadSelectionHandle m_eventSelection
Only fill events passing this selection for at least one systematic.
Definition
TreeFillerAlg.h:67
CP::TreeFillerAlg::m_systematicsList
SysListHandle m_systematicsList
The systematics list we run.
Definition
TreeFillerAlg.h:62
CP::TreeFillerAlg::m_treeName
Gaudi::Property< std::string > m_treeName
The name of the output tree to write.
Definition
TreeFillerAlg.h:59
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
EventInfo.h
Generated on
for ATLAS Offline Software by
1.17.0