ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
MuonSpectrometer
MuonValidation
MuonTesterTree
src
TreeTesterAlg.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3
*/
4
#pragma once
5
6
#include <
AthenaBaseComps/AthHistogramAlgorithm.h
>
7
#include <
MuonTesterTree/MuonTesterTree.h
>
8
#include <
MuonTesterTree/ArrayBranch.h
>
9
namespace
MuonVal
{
10
namespace
MuonTester
{
11
class
TreeTestAlg
:
public
AthHistogramAlgorithm
{
12
public
:
13
using
AthHistogramAlgorithm::AthHistogramAlgorithm
;
14
virtual
StatusCode
initialize
()
override
final
;
15
virtual
StatusCode
execute
(
const
EventContext& ctx)
override
final
;
16
virtual
StatusCode
finalize
()
override
final
;
17
18
private
:
19
MuonTesterTree
m_tree
{
"TestTree"
,
"TestStream"
};
20
21
MuonVal::ScalarBranch<unsigned>
&
m_scalarTest
{
m_tree
.newScalar<
unsigned
>(
"scalar"
)};
22
MuonVal::VectorBranch<unsigned>
&
m_vectorTest
{
m_tree
.newVector<
unsigned
>(
"vector"
)};
23
MuonVal::MatrixBranch<unsigned>
&
m_matrixTest
{
m_tree
.newMatrix<
unsigned
>(
"matrix"
)};
24
MuonVal::ArrayBranch<unsigned>
*
m_arrayTest
{
nullptr
};
25
};
26
}
27
}
ArrayBranch.h
AthHistogramAlgorithm.h
MuonTesterTree.h
AthHistogramAlgorithm::AthHistogramAlgorithm
AthHistogramAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor with parameters:
Definition
AthHistogramAlgorithm.cxx:31
MuonVal::ArrayBranch
Definition
ArrayBranch.h:14
MuonVal::MatrixBranch
Definition
MatrixBranch.h:12
MuonVal::MuonTesterTree
Definition
MuonTesterTree.h:38
MuonVal::MuonTester::TreeTestAlg
Definition
TreeTesterAlg.h:11
MuonVal::MuonTester::TreeTestAlg::initialize
virtual StatusCode initialize() override final
Definition
TreeTesterAlg.cxx:11
MuonVal::MuonTester::TreeTestAlg::m_tree
MuonTesterTree m_tree
Definition
TreeTesterAlg.h:19
MuonVal::MuonTester::TreeTestAlg::m_arrayTest
MuonVal::ArrayBranch< unsigned > * m_arrayTest
Definition
TreeTesterAlg.h:24
MuonVal::MuonTester::TreeTestAlg::m_vectorTest
MuonVal::VectorBranch< unsigned > & m_vectorTest
Definition
TreeTesterAlg.h:22
MuonVal::MuonTester::TreeTestAlg::finalize
virtual StatusCode finalize() override final
Definition
TreeTesterAlg.cxx:34
MuonVal::MuonTester::TreeTestAlg::m_matrixTest
MuonVal::MatrixBranch< unsigned > & m_matrixTest
Definition
TreeTesterAlg.h:23
MuonVal::MuonTester::TreeTestAlg::AthHistogramAlgorithm
AthHistogramAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor with parameters:
Definition
AthHistogramAlgorithm.cxx:31
MuonVal::MuonTester::TreeTestAlg::m_scalarTest
MuonVal::ScalarBranch< unsigned > & m_scalarTest
Definition
TreeTesterAlg.h:21
MuonVal::MuonTester::TreeTestAlg::execute
virtual StatusCode execute(const EventContext &ctx) override final
Execute method.
Definition
TreeTesterAlg.cxx:22
MuonVal::ScalarBranch
Definition
ScalarBranch.h:12
MuonVal::VectorBranch
Definition
VectorBranch.h:14
MuonVal::MuonTester
Definition
TreeTesterAlg.cxx:9
MuonVal
Class to store array like branches into the n-tuples.
Definition
HitValAlg.cxx:19
Generated on
for ATLAS Offline Software by
1.17.0