ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
MuonSpectrometer
MuonValidation
MuonTesterTree
MuonTesterTree
MuonTesterBranch.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3
*/
4
#ifndef MUONTESTER_MUONTESTERBRANCH_H
5
#define MUONTESTER_MUONTESTERBRANCH_H
6
7
#include <
MuonTesterTree/IMuonTesterBranch.h
>
8
#include <
AthenaBaseComps/AthMessaging.h
>
9
//
10
#include <string>
11
#include <vector>
12
//
13
class
TTree;
14
19
namespace
MuonVal
{
20
class
MuonTesterTree
;
21
class
MuonTesterBranch
:
public
AthMessaging
,
virtual
public
IMuonTesterBranch
{
22
public
:
23
MuonTesterBranch
(
MuonTesterTree
&
tree
,
const
std::string& br_name);
25
MuonTesterBranch
(TTree*
tree
,
const
std::string& br_name);
26
27
MuonTesterBranch
(
const
MuonTesterBranch
&) =
delete
;
28
MuonTesterBranch
&
operator=
(
const
MuonTesterBranch
&) =
delete
;
29
virtual
~MuonTesterBranch
();
30
31
std::string
name
()
const
override final;
35
bool
initialized
()
const
;
37
TTree*
tree
() override final;
38
const
TTree*
tree
()
const
override final;
40
std
::
vector
<
DataDependency
>
data_dependencies
() override final;
41
42
static
std
::
string
eraseWhiteSpaces
(
const
std
::
string
& In);
43
44
protected
:
46
template <class T>
bool
addToTree
(T& variable);
48
template<class Key>
bool
declare_dependency
(Key& key);
49
51
// Does not work if the TTree pointer is given during construction
52
MuonTesterTree
&
parent
();
53
54
55
56
57
private
:
58
TTree*
m_tree
{
nullptr
};
59
MuonTesterTree
*
m_parent
{
nullptr
};
60
std::string
m_name
{};
61
bool
m_init
{
false
};
62
std::vector<DataDependency>
m_dependencies
{};
63
};
64
}
65
#include <
MuonTesterTree/MuonTesterBranch.icc
>
66
#endif
AthMessaging.h
IMuonTesterBranch.h
MuonTesterBranch.icc
AthMessaging::AthMessaging
AthMessaging(IMessageSvc *msgSvc, const std::string &name)
Constructor.
Definition
AthMessaging.cxx:13
MuonVal::IMuonTesterBranch
Most basic interface class used by the MuonTester tree.
Definition
IMuonTesterBranch.h:20
MuonVal::IMuonTesterBranch::DataDependency
SG::VarHandleKey * DataDependency
Definition
IMuonTesterBranch.h:39
MuonVal::MuonTesterBranch::addToTree
bool addToTree(T &variable)
Connects the Memory buffer with the TTree.
MuonVal::MuonTesterBranch::m_init
bool m_init
Definition
MuonTesterBranch.h:61
MuonVal::MuonTesterBranch::m_name
std::string m_name
Definition
MuonTesterBranch.h:60
MuonVal::MuonTesterBranch::MuonTesterBranch
MuonTesterBranch(const MuonTesterBranch &)=delete
MuonVal::MuonTesterBranch::initialized
bool initialized() const
Returns whether the object has been initialized or not The outcome of the variable is bound to a succ...
Definition
MuonTesterBranch.cxx:52
MuonVal::MuonTesterBranch::m_parent
MuonTesterTree * m_parent
Definition
MuonTesterBranch.h:59
MuonVal::MuonTesterBranch::~MuonTesterBranch
virtual ~MuonTesterBranch()
Definition
MuonTesterBranch.cxx:44
MuonVal::MuonTesterBranch::MuonTesterBranch
MuonTesterBranch(MuonTesterTree &tree, const std::string &br_name)
Definition
MuonTesterBranch.cxx:33
MuonVal::MuonTesterBranch::m_tree
TTree * m_tree
Definition
MuonTesterBranch.h:58
MuonVal::MuonTesterBranch::eraseWhiteSpaces
static std::string eraseWhiteSpaces(const std::string &In)
Definition
MuonTesterBranch.cxx:56
MuonVal::MuonTesterBranch::parent
MuonTesterTree & parent()
Returns the reference to the MuonTesterTree parent.
Definition
MuonTesterBranch.cxx:38
MuonVal::MuonTesterBranch::m_dependencies
std::vector< DataDependency > m_dependencies
Definition
MuonTesterBranch.h:62
MuonVal::MuonTesterBranch::declare_dependency
bool declare_dependency(Key &key)
Declares the ReadHandle/ ReadCondHandleKey as data dependency of the algorithm.
MuonVal::MuonTesterBranch::name
std::string name() const override final
Returns the name of the branch.
Definition
MuonTesterBranch.cxx:51
MuonVal::MuonTesterBranch::data_dependencies
std::vector< DataDependency > data_dependencies() override final
Returns the data dependencies needed by the MuonTesterBranch.
Definition
MuonTesterBranch.cxx:61
MuonVal::MuonTesterBranch::tree
TTree * tree() override final
Returns the underlying TTree object.
Definition
MuonTesterBranch.cxx:53
MuonVal::MuonTesterBranch::operator=
MuonTesterBranch & operator=(const MuonTesterBranch &)=delete
MuonVal::MuonTesterTree
Definition
MuonTesterTree.h:38
vector
Definition
MultiHisto.h:13
const
MuonVal
Class to store array like branches into the n-tuples.
Definition
HitValAlg.cxx:19
std
STL namespace.
protected
#define protected
Definition
testRead.cxx:26
private
#define private
Definition
testRead.cxx:27
Generated on
for ATLAS Offline Software by
1.17.0