ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Tracking
TrkUtilityPackages
TrkValidationUtils
src
TransformNtupleBranch.cxx
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#include "
TrkValidationUtils/TransformNtupleBranch.h
"
6
7
#include <TTree.h>
8
9
namespace
Trk
{
10
11
void
TransformNtupleBranch::initForWrite
(TTree&
tree
, std::string_view prefix ){
12
m_rotation
.initForWrite(
tree
,
"rot"
,3,3,prefix);
13
m_translation
.initForWrite(
tree
,
"trans"
,3,prefix);
14
}
15
16
void
TransformNtupleBranch::initForRead
(TTree&
tree
, std::string_view prefix ) {
17
m_rotation
.initForRead(
tree
,
"rot"
,3,3,prefix);
18
m_translation
.initForRead(
tree
,
"trans"
,3,prefix);
19
}
20
21
22
23
void
TransformNtupleBranch::fill
(
const
Amg::Transform3D
& transform ) {
24
Amg::Vector3D
translation = transform.translation();
25
Amg::RotationMatrix3D
rotation = transform.rotation();
26
27
m_rotation
.fill(rotation);
28
m_translation
.fill(translation);
29
}
30
31
void
TransformNtupleBranch::fill
(
const
HepGeom::Transform3D& transform ) {
32
m_rotation
.fill(transform.getRotation());
33
m_translation
.fill(transform.getTranslation());
34
}
35
}
TransformNtupleBranch.h
Amg::RotationMatrix3D
Eigen::Matrix< double, 3, 3 > RotationMatrix3D
Definition
GeoPrimitives.h:50
Amg::Transform3D
Eigen::Affine3d Transform3D
Definition
GeoPrimitives.h:46
Amg::Vector3D
Eigen::Matrix< double, 3, 1 > Vector3D
Definition
GeoPrimitives.h:48
Trk
Ensure that the ATLAS eigen extensions are properly loaded.
Definition
FakeTrackBuilder.h:9
Trk::TransformNtupleBranch::initForRead
void initForRead(TTree &tree, std::string_view prefix="")
initialize class for reading
Definition
TransformNtupleBranch.cxx:16
Trk::TransformNtupleBranch::m_translation
VectorNtupleBranch m_translation
Definition
TransformNtupleBranch.h:50
Trk::TransformNtupleBranch::fill
void fill(const Amg::Transform3D &transform)
fill a transform
Definition
TransformNtupleBranch.cxx:23
Trk::TransformNtupleBranch::initForWrite
void initForWrite(TTree &tree, std::string_view prefix="")
initialize class for writing
Definition
TransformNtupleBranch.cxx:11
Trk::TransformNtupleBranch::m_rotation
MatrixNtupleBranch m_rotation
data
Definition
TransformNtupleBranch.h:49
tree
TChain * tree
Definition
tile_monitor.h:30
Generated on
for ATLAS Offline Software by
1.17.0