File indexing completed on 2025-03-13 09:29:27
0001 #ifndef VECGEOM_VOLUMES_PLACEDTORUS2_H_
0002 #define VECGEOM_VOLUMES_PLACEDTORUS2_H_
0003
0004 #include "VecGeom/base/Global.h"
0005 #include "VecGeom/volumes/PlacedVolume.h"
0006 #include "VecGeom/volumes/UnplacedVolume.h"
0007 #include "VecGeom/volumes/PlacedVolImplHelper.h"
0008 #include "VecGeom/volumes/UnplacedTorus2.h"
0009
0010 namespace vecgeom {
0011
0012 VECGEOM_DEVICE_FORWARD_DECLARE(class PlacedTorus2;);
0013 VECGEOM_DEVICE_DECLARE_CONV(class, PlacedTorus2);
0014
0015 inline namespace VECGEOM_IMPL_NAMESPACE {
0016
0017 class PlacedTorus2 : public PlacedVolumeImplHelper<UnplacedTorus2, VPlacedVolume> {
0018
0019 using Base = PlacedVolumeImplHelper<UnplacedTorus2, VPlacedVolume>;
0020
0021 public:
0022
0023 using Base::Base;
0024
0025 #ifndef VECCORE_CUDA
0026 PlacedTorus2(char const *const label, LogicalVolume const *const logical_volume,
0027 Transformation3D const *const transformation)
0028 : Base(label, logical_volume, transformation)
0029 {
0030 }
0031
0032 PlacedTorus2(LogicalVolume const *const logical_volume, Transformation3D const *const transformation)
0033 : PlacedTorus2("", logical_volume, transformation)
0034 {
0035 }
0036 #else
0037 VECCORE_ATT_DEVICE
0038 PlacedTorus2(LogicalVolume const *const logical_volume, Transformation3D const *const transformation, const int id,
0039 const int copy_no, const int child_id)
0040 : Base(logical_volume, transformation, id, copy_no, child_id)
0041 {
0042 }
0043 #endif
0044 VECCORE_ATT_HOST_DEVICE
0045 virtual ~PlacedTorus2() {}
0046
0047 VECCORE_ATT_HOST_DEVICE
0048 virtual void PrintType() const override;
0049 virtual void PrintType(std::ostream &s) const override;
0050
0051 #ifndef VECCORE_CUDA
0052 virtual VPlacedVolume const *ConvertToUnspecialized() const override;
0053
0054 #ifdef VECGEOM_ROOT
0055 virtual TGeoShape const *ConvertToRoot() const override;
0056 #endif
0057
0058 #ifdef VECGEOM_GEANT4
0059 virtual G4VSolid const *ConvertToGeant4() const override;
0060 #endif
0061 #endif
0062 };
0063
0064
0065
0066
0067
0068
0069
0070
0071
0072
0073
0074
0075 }
0076 }
0077
0078 #endif