ATLAS Offline Software
TBElement.h
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.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>
15 #include "TBDetDescr/TBElementID.h"
16 #include <string>
17 
18 
19 class TBElement
20 {
21  friend class TBDetDescrManager;
22 
23 public:
24 
25  TBElement();
26  TBElement ( TBElementID::TBElementID id, const std::string& name,
27  const Amg::Vector3D& position,
29 
30  virtual ~TBElement() {}
31 
32  // accessor
33  TBElementID::TBElementID id() const { return m_id; }
34  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 
42 private:
43 
45  std::string m_name;
48 
49 };
50 
51 #endif
TBElementID::TBElementID
TBElementID
Definition: TBElementID.h:11
TBElement::m_name
std::string m_name
Definition: TBElement.h:45
TBElement::TBElement
TBElement()
Definition: TBElement.cxx:18
GeoPrimitives.h
TBElement::m_rotation
Amg::RotationMatrix3D m_rotation
Definition: TBElement.h:47
TBElement::~TBElement
virtual ~TBElement()
Definition: TBElement.h:30
TBElement::position
Amg::Vector3D position() const
Definition: TBElement.h:35
TBElement::rotation
Amg::RotationMatrix3D rotation() const
Definition: TBElement.h:36
Amg::Vector3D
Eigen::Matrix< double, 3, 1 > Vector3D
Definition: GeoPrimitives.h:47
TBDetDescrManager
Definition: TBDetDescrManager.h:21
Amg::RotationMatrix3D
Eigen::Matrix< double, 3, 3 > RotationMatrix3D
Definition: GeoPrimitives.h:49
TBElement::name
std::string name() const
Definition: TBElement.h:34
TBElement
Definition: TBElement.h:20
TBElementID.h
TBElement::m_id
TBElementID::TBElementID m_id
Definition: TBElement.h:44
TBElement::id
TBElementID::TBElementID id() const
Definition: TBElement.h:33
TBElement::m_position
Amg::Vector3D m_position
Definition: TBElement.h:46