ATLAS Offline Software
GeoShapeConverter.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3 */
4 
6 // GeoShapeConverter.h, (c) ATLAS Detector software
8 
9 #ifndef TRKDETDESCRGEOMODELCNV_GEOSHAPRECONVERTER_H
10 #define TRKDETDESCRGEOMODELCNV_GEOSHAPRECONVERTER_H
11 // Trk
14 // Eigen
16 
17 // STL
18 
19 class GeoTubs;
20 class GeoTube;
21 class GeoPcon;
22 class GeoBox;
23 class GeoShape;
24 
25 namespace Trk {
26 
27 class CylinderVolumeBounds;
28 class CuboidVolumeBounds;
29 class Volume;
30 
43 
44  public:
47  static std::unique_ptr<CylinderVolumeBounds> convert(const GeoTubs* gtub);
48 
50  static std::unique_ptr<CylinderVolumeBounds> convert(const GeoTube* gtub);
51 
53  static std::unique_ptr<CylinderVolumeBounds> convert(
54  const GeoPcon* gtub, std::vector<double>& zbounds);
55 
57  static std::unique_ptr<CuboidVolumeBounds> convert(const GeoBox* gbox);
58 
60  std::unique_ptr<Volume> translateGeoShape(
61  const GeoShape* shape, const Amg::Transform3D& trf) const;
62 
64  void decodeShape(const GeoShape*) const;
65 
66  private:
67 };
68 
69 } // end of namespace Trk
70 
71 #endif
MaterialProperties.h
Trk::GeoShapeConverter::GeoShapeConverter
GeoShapeConverter()
Definition: GeoShapeConverter.cxx:55
GeoPrimitives.h
Trk::GeoShapeConverter
Definition: GeoShapeConverter.h:42
Amg::Transform3D
Eigen::Affine3d Transform3D
Definition: GeoPrimitives.h:46
AthMessaging
Class to provide easy MsgStream access and capabilities.
Definition: AthMessaging.h:55
Trk::GeoShapeConverter::decodeShape
void decodeShape(const GeoShape *) const
Decode and dump arbitrary GeoShape for visual inspection.
Definition: GeoShapeConverter.cxx:516
Trk
Ensure that the ATLAS eigen extensions are properly loaded.
Definition: FakeTrackBuilder.h:9
Trk::GeoShapeConverter::translateGeoShape
std::unique_ptr< Volume > translateGeoShape(const GeoShape *shape, const Amg::Transform3D &trf) const
Convert an arbitrary GeoShape into Trk::Volume.
Definition: GeoShapeConverter.cxx:102
Trk::GeoShapeConverter::convert
static std::unique_ptr< CylinderVolumeBounds > convert(const GeoTubs *gtub)
Convert a tubs.
Definition: GeoShapeConverter.cxx:57
AthMessaging.h
CaloLCW_tf.trf
trf
Definition: CaloLCW_tf.py:20