ATLAS Offline Software
Loading...
Searching...
No Matches
TBElement.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3*/
4
5//==============================================
6// File TBElement.h
7// define the position of one detector
8//=============================================
9#ifndef TBElement_H
10#define TBElement_H
11
12//#include <CLHEP/Geometry/Vector3D.h>
13//#include <CLHEP/Vector/Rotation.h>
16#include <string>
17
18
20{
21 friend class TBDetDescrManager;
22
23public:
24
25 TBElement();
26 TBElement ( TBElementID::TBElementID id, const std::string& name,
29
30 virtual ~TBElement() {}
31
32 // accessor
33 TBElementID::TBElementID id() const { return m_id; }
34 const std::string& name() const { return m_name; }
35 Amg::Vector3D position() const { return m_position; }
37
38 // Convertion operator to a std::string
39 // Can be used in a cast operation : (std::string) TBElement
40 virtual operator std::string() const;
41
42private:
43
45 std::string m_name;
48
49};
50
51#endif
friend class TBDetDescrManager
Definition TBElement.h:21
TBElementID::TBElementID id() const
Definition TBElement.h:33
Amg::Vector3D position() const
Definition TBElement.h:35
Amg::RotationMatrix3D m_rotation
Definition TBElement.h:47
virtual ~TBElement()
Definition TBElement.h:30
const std::string & name() const
Definition TBElement.h:34
TBElementID::TBElementID m_id
Definition TBElement.h:44
Amg::Vector3D m_position
Definition TBElement.h:46
Amg::RotationMatrix3D rotation() const
Definition TBElement.h:36
std::string m_name
Definition TBElement.h:45
Eigen::Matrix< double, 3, 3 > RotationMatrix3D
Eigen::Matrix< double, 3, 1 > Vector3D