ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
MuonSpectrometer
MuonValidation
MuonTesterTree
MuonTesterTree
CoordTransformBranch.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
3
*/
4
#ifndef MUONTESTER_MUONCOORDTRANSFORMBRANCH_H
5
#define MUONTESTER_MUONCOORDTRANSFORMBRANCH_H
6
7
#include "
GeoPrimitives/GeoPrimitivesHelpers.h
"
8
#include "
MuonTesterTree/MuonTesterTree.h
"
9
#include "
MuonTesterTree/ThreeVectorBranch.h
"
10
11
namespace
MuonVal
{
12
15
class
CoordTransformBranch
:
public
MuonTesterBranch
{
16
public
:
17
CoordTransformBranch
(
MuonTesterTree
&
tree
,
const
std::string& vec_name);
18
void
operator=
(
const
Amg::Transform3D
&
vec
);
19
void
set
(
const
Amg::Transform3D
&
vec
);
20
21
bool
fill
(
const
EventContext&)
override
final
;
22
bool
init
()
override
final
;
23
24
private
:
25
ThreeVectorBranch
m_transform
{
parent
(),
name
()};
26
};
27
28
class
CoordSystemsBranch
:
public
MuonTesterBranch
{
29
public
:
30
CoordSystemsBranch
(
MuonTesterTree
&
tree
,
const
std::string& vec_name);
31
void
operator+=
(
const
Amg::Transform3D
& trans);
32
void
push_back
(
const
Amg::Transform3D
& trans);
33
void
set
(
const
Amg::Transform3D
& trans,
size_t
pos);
34
35
size_t
size
()
const
;
36
bool
fill
(
const
EventContext&)
override
final
;
37
bool
init
()
override
final
;
38
private
:
39
MuonVal::ThreeVectorBranch
m_translation
{
parent
(),
name
() +
"Translation"
};
40
MuonVal::UnitThreeVectorBranch
m_linearCol1
{
parent
(),
name
() +
"LinearCol0"
};
41
MuonVal::UnitThreeVectorBranch
m_linearCol2
{
parent
(),
name
() +
"LinearCol1"
};
42
MuonVal::UnitThreeVectorBranch
m_linearCol3
{
parent
(),
name
() +
"LinearCol2"
};
43
};
44
45
46
}
47
#endif
vec
std::vector< size_t > vec
Definition
CombinationsGeneratorTest.cxx:9
GeoPrimitivesHelpers.h
MuonTesterTree.h
ThreeVectorBranch.h
MuonVal::CoordSystemsBranch::m_linearCol1
MuonVal::UnitThreeVectorBranch m_linearCol1
Definition
CoordTransformBranch.h:40
MuonVal::CoordSystemsBranch::init
bool init() override final
The init method checks whether the branch name has already registered to the MuonTree and tries then ...
Definition
CoordTransformBranch.cxx:25
MuonVal::CoordSystemsBranch::push_back
void push_back(const Amg::Transform3D &trans)
Definition
CoordTransformBranch.cxx:28
MuonVal::CoordSystemsBranch::operator+=
void operator+=(const Amg::Transform3D &trans)
Definition
CoordTransformBranch.cxx:27
MuonVal::CoordSystemsBranch::m_translation
MuonVal::ThreeVectorBranch m_translation
Definition
CoordTransformBranch.h:39
MuonVal::CoordSystemsBranch::CoordSystemsBranch
CoordSystemsBranch(MuonTesterTree &tree, const std::string &vec_name)
Definition
CoordTransformBranch.cxx:21
MuonVal::CoordSystemsBranch::fill
bool fill(const EventContext &) override final
The fill method checks if enough information is provided such that the branch is cleared from the inf...
Definition
CoordTransformBranch.cxx:24
MuonVal::CoordSystemsBranch::m_linearCol3
MuonVal::UnitThreeVectorBranch m_linearCol3
Definition
CoordTransformBranch.h:42
MuonVal::CoordSystemsBranch::m_linearCol2
MuonVal::UnitThreeVectorBranch m_linearCol2
Definition
CoordTransformBranch.h:41
MuonVal::CoordSystemsBranch::size
size_t size() const
Definition
CoordTransformBranch.cxx:26
MuonVal::CoordSystemsBranch::set
void set(const Amg::Transform3D &trans, size_t pos)
Definition
CoordTransformBranch.cxx:30
MuonVal::CoordTransformBranch::fill
bool fill(const EventContext &) override final
The fill method checks if enough information is provided such that the branch is cleared from the inf...
Definition
CoordTransformBranch.cxx:10
MuonVal::CoordTransformBranch::init
bool init() override final
The init method checks whether the branch name has already registered to the MuonTree and tries then ...
Definition
CoordTransformBranch.cxx:11
MuonVal::CoordTransformBranch::m_transform
ThreeVectorBranch m_transform
Definition
CoordTransformBranch.h:25
MuonVal::CoordTransformBranch::operator=
void operator=(const Amg::Transform3D &vec)
Definition
CoordTransformBranch.cxx:12
MuonVal::CoordTransformBranch::CoordTransformBranch
CoordTransformBranch(MuonTesterTree &tree, const std::string &vec_name)
Definition
CoordTransformBranch.cxx:7
MuonVal::CoordTransformBranch::set
void set(const Amg::Transform3D &vec)
Definition
CoordTransformBranch.cxx:14
MuonVal::MuonTesterBranch::MuonTesterBranch
MuonTesterBranch(MuonTesterTree &tree, const std::string &br_name)
Definition
MuonTesterBranch.cxx:33
MuonVal::MuonTesterBranch::parent
MuonTesterTree & parent()
Returns the reference to the MuonTesterTree parent.
Definition
MuonTesterBranch.cxx:38
MuonVal::MuonTesterBranch::name
std::string name() const override final
Returns the name of the branch.
Definition
MuonTesterBranch.cxx:51
MuonVal::MuonTesterBranch::tree
TTree * tree() override final
Returns the underlying TTree object.
Definition
MuonTesterBranch.cxx:53
MuonVal::MuonTesterTree
Definition
MuonTesterTree.h:38
MuonVal::ThreeVectorBranch
Definition
ThreeVectorBranch.h:14
MuonVal::UnitThreeVectorBranch
Definition
ThreeVectorBranch.h:41
Amg::Transform3D
Eigen::Affine3d Transform3D
Definition
GeoPrimitives.h:46
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