From f04d7fa7722256cfe27e4c0363f0571d48ce688d Mon Sep 17 00:00:00 2001 From: cms Date: Wed, 23 Oct 2024 17:09:52 +0200 Subject: [PATCH] Adding Trap converter in Geant4Converters --- .../Acts/Plugins/Geant4/Geant4Converters.hpp | 8 +------- Plugins/Geant4/src/Geant4Converters.cpp | 13 +++---------- 2 files changed, 4 insertions(+), 17 deletions(-) diff --git a/Plugins/Geant4/include/Acts/Plugins/Geant4/Geant4Converters.hpp b/Plugins/Geant4/include/Acts/Plugins/Geant4/Geant4Converters.hpp index f09829ab1bf..03043427820 100644 --- a/Plugins/Geant4/include/Acts/Plugins/Geant4/Geant4Converters.hpp +++ b/Plugins/Geant4/include/Acts/Plugins/Geant4/Geant4Converters.hpp @@ -22,10 +22,6 @@ class Hep3Vector; class HepRotation; } // namespace CLHEP -namespace HepGeom { -class Transform3D; -} - #include "/home/cms/software/geant4/install_dir/include/Geant4/G4RotationMatrix.hh" #include "/home/cms/software/geant4/install_dir/include/Geant4/G4ThreeVector.hh" #include "/home/cms/software/geant4/install_dir/include/Geant4/G4Transform3D.hh" @@ -139,15 +135,13 @@ struct Geant4ShapeConverter { std::tuple, std::array, ActsScalar> trapezoidBounds(const G4Trd& g4Trd); - // ************************************************************************************* /// @brief Convert to trapezoid bounds - from Trap /// /// @param g4Trd a Geant4 trapezoid shape /// /// @return an ACTS Trapezoid bounds object, axis orientation, and thickness std::tuple, std::array, ActsScalar> - trapezoidBounds_g4Trap(const G4Trap& g4Trap); - // ************************************************************************************* + trapezoidBounds(const G4Trap& g4Trap); /// @brief Convert to general solid into a planar shape /// diff --git a/Plugins/Geant4/src/Geant4Converters.cpp b/Plugins/Geant4/src/Geant4Converters.cpp index c1843f33926..89e32e513d4 100644 --- a/Plugins/Geant4/src/Geant4Converters.cpp +++ b/Plugins/Geant4/src/Geant4Converters.cpp @@ -6,8 +6,7 @@ // License, v. 2.0. If a copy of the MPL was not distributed with this // file, You can obtain one at https://mozilla.org/MPL/2.0/. -//#include "Acts/Plugins/Geant4/Geant4Converters.hpp" -#include "/home/cms/software/ACTS_ODD/ACTS_Source/Plugins/Geant4/include/Acts/Plugins/Geant4/Geant4Converters.hpp" +#include "Acts/Plugins/Geant4/Geant4Converters.hpp" #include "Acts/Definitions/Algebra.hpp" #include "Acts/Geometry/CylinderVolumeBounds.hpp" @@ -19,8 +18,7 @@ #include "Acts/Surfaces/DiscSurface.hpp" #include "Acts/Surfaces/LineBounds.hpp" #include "Acts/Surfaces/PlaneSurface.hpp" -//#include "RadialBounds.hpp" -#include "/home/cms/software/ACTS_ODD/ACTS_Source/Core/include/Acts/Surfaces/RadialBounds.hpp" +#include "Acts/Surfaces/RadialBounds.hpp" #include "Acts/Surfaces/RectangleBounds.hpp" #include "Acts/Surfaces/StrawSurface.hpp" #include "Acts/Surfaces/TrapezoidBounds.hpp" @@ -32,7 +30,6 @@ #include #include #include -#include #include "G4Box.hh" #include "G4LogicalVolume.hh" @@ -238,11 +235,9 @@ Acts::Geant4ShapeConverter::trapezoidBounds(const G4Trd& g4Trd) { return std::make_tuple(std::move(tBounds), rAxes, thickness); } -// ********************************************************************************************************* - std::tuple, std::array, Acts::ActsScalar> -Acts::Geant4ShapeConverter::trapezoidBounds_g4Trap(const G4Trap& g4Trap) { +Acts::Geant4ShapeConverter::trapezoidBounds(const G4Trap& g4Trap) { // primary parameters ActsScalar y1 = static_cast(g4Trap.GetYHalfLength1()); ActsScalar y2 = static_cast(g4Trap.GetYHalfLength2()); @@ -305,8 +300,6 @@ Acts::Geant4ShapeConverter::trapezoidBounds_g4Trap(const G4Trap& g4Trap) { return std::make_tuple(std::move(tBounds), rAxes, thickness); } -// ********************************************************************************************************* - std::tuple, std::array, Acts::ActsScalar> Acts::Geant4ShapeConverter::planarBounds(const G4VSolid& g4Solid) {