ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
PhysicsAnalysis
Algorithms
AsgAnalysisAlgorithms
AsgAnalysisAlgorithms
TreeMakerAlg.h
Go to the documentation of this file.
1
// Dear emacs, this is -*- c++ -*-
2
//
3
// Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration
4
//
5
#ifndef ASGANALYSISALGORITHMS_TREEMAKERALG_H
6
#define ASGANALYSISALGORITHMS_TREEMAKERALG_H
7
8
#include <
AnaAlgorithm/AnaAlgorithm.h
>
9
#include "
AsgTools/PropertyWrapper.h
"
10
11
namespace
CP
{
12
27
class
TreeMakerAlg
:
public
EL::AnaAlgorithm
{
28
29
public
:
31
using
EL::AnaAlgorithm::AnaAlgorithm
;
32
35
virtual
StatusCode
initialize
()
override
;
36
38
StatusCode
execute
(
const
EventContext&
/*ctx*/
)
override
{
return
StatusCode::SUCCESS; }
39
41
42
private
:
45
47
Gaudi::Property<std::string>
m_treeName
{
48
this
,
"TreeName"
,
"physics"
,
"Name of the tree to write"
};
49
50
Gaudi::Property<int>
m_treeAutoFlush
{
51
this
,
"TreeAutoFlush"
, 200,
"AutoFlush value for the output tree"
};
52
54
55
};
// class TreeMakerAlg
56
57
}
// namespace CP
58
59
#endif
// ASGANALYSISALGORITHMS_TREEMAKERALG_H
AnaAlgorithm.h
PropertyWrapper.h
CP::TreeMakerAlg
Algorithm that creates an empty tree for subsequent algorithms to fill.
Definition
TreeMakerAlg.h:27
CP::TreeMakerAlg::m_treeName
Gaudi::Property< std::string > m_treeName
The name of the output tree to write.
Definition
TreeMakerAlg.h:47
CP::TreeMakerAlg::initialize
virtual StatusCode initialize() override
Definition
TreeMakerAlg.cxx:11
CP::TreeMakerAlg::execute
StatusCode execute(const EventContext &) override
Function executed once per event.
Definition
TreeMakerAlg.h:38
CP::TreeMakerAlg::m_treeAutoFlush
Gaudi::Property< int > m_treeAutoFlush
Flush setting for the output tree.
Definition
TreeMakerAlg.h:50
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
CP
Select isolated Photons, Electrons and Muons.
Definition
Control/xAODRootAccess/xAODRootAccess/TEvent.h:27
Generated on
for ATLAS Offline Software by
1.17.0