ATLAS Offline Software
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 
19  : m_id(TBElementID::Unknown)
20 {
21 }
22 
24  const Amg::Vector3D& position,
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 }
GetLCDefs::Unknown
@ Unknown
Definition: GetLCDefs.h:21
TBElementID::TBElementID
TBElementID
Definition: TBElementID.h:11
TBElement::TBElement
TBElement()
Definition: TBElement.cxx:18
xAOD::rotation
rotation
Definition: TrackSurface_v1.cxx:15
id
SG::auxid_t id
Definition: Control/AthContainers/Root/debug.cxx:194
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:195
Amg::Vector3D
Eigen::Matrix< double, 3, 1 > Vector3D
Definition: GeoPrimitives.h:47
Amg::RotationMatrix3D
Eigen::Matrix< double, 3, 3 > RotationMatrix3D
Definition: GeoPrimitives.h:49
TBElement.h
TBElementID
Definition: TBElementID.h:10