ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
TestBeam
TBDetDescr
src
TBElement.cxx
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
//========================================
6
// file TBElement.cxx
7
//
8
//========================================
9
10
#include "
TBDetDescr/TBElement.h
"
11
12
#include <iostream>
13
#include <sstream>
14
#include <iomanip>
15
16
#define MAKE_STRING( msg ) ( ((std::ostringstream&)(std::ostringstream() << msg)).str() )
17
18
TBElement::TBElement
()
19
:
m_id
(
TBElementID
::
Unknown
)
20
{
21
}
22
23
TBElement::TBElement
(
TBElementID::TBElementID
id
,
const
std::string&
name
,
24
const
Amg::Vector3D
&
position
,
25
const
Amg::RotationMatrix3D
&
rotation
)
26
:
m_id
(
id
)
27
,
m_name
(
name
)
28
,
m_position
(
position
)
29
,
m_rotation
(
rotation
)
30
{
31
}
32
33
TBElement::operator std::string()
const
34
{
35
std::ostringstream buf;
36
37
buf <<
"TBElement"
38
<<
" id = "
<<
m_id
39
<<
" name = "
<<
m_name
40
<<
" position = "
<<
m_position
41
<<
" Rotation = "
<<
m_rotation
;
42
43
return
buf.str();
44
}
TBElement.h
Unknown
struct TBPatternUnitContext Unknown
TBElement::id
TBElementID::TBElementID id() const
Definition
TBElement.h:33
TBElement::position
Amg::Vector3D position() const
Definition
TBElement.h:35
TBElement::m_rotation
Amg::RotationMatrix3D m_rotation
Definition
TBElement.h:47
TBElement::name
const std::string & name() const
Definition
TBElement.h:34
TBElement::m_id
TBElementID::TBElementID m_id
Definition
TBElement.h:44
TBElement::m_position
Amg::Vector3D m_position
Definition
TBElement.h:46
TBElement::TBElement
TBElement()
Definition
TBElement.cxx:18
TBElement::rotation
Amg::RotationMatrix3D rotation() const
Definition
TBElement.h:36
TBElement::m_name
std::string m_name
Definition
TBElement.h:45
Amg::RotationMatrix3D
Eigen::Matrix< double, 3, 3 > RotationMatrix3D
Definition
GeoPrimitives.h:49
Amg::Vector3D
Eigen::Matrix< double, 3, 1 > Vector3D
Definition
GeoPrimitives.h:47
TBElementID
Definition
TBElementID.h:10
TBElementID::TBElementID
TBElementID
Definition
TBElementID.h:11
Generated on
for ATLAS Offline Software by
1.17.0