Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-08-16 09:25:06

0001 /*
0002  * SpecializedPolycone.h
0003  *
0004  *  Created on: Dec 8, 2014
0005  *      Author: swenzel
0006  */
0007 
0008 #ifndef VECGEOM_VOLUMES_SPECIALIZEDPOLYCONE_H_
0009 #define VECGEOM_VOLUMES_SPECIALIZEDPOLYCONE_H_
0010 
0011 #include "VecGeom/base/Global.h"
0012 
0013 #include "VecGeom/volumes/kernel/PolyconeImplementation.h"
0014 #include "VecGeom/volumes/PlacedPolycone.h"
0015 #include "VecGeom/volumes/SpecializedPlacedVolImplHelper.h"
0016 #include "VecGeom/volumes/UnplacedPolycone.h"
0017 
0018 #include <stdio.h>
0019 
0020 namespace vecgeom {
0021 inline namespace VECGEOM_IMPL_NAMESPACE {
0022 
0023 template <typename polyconeTypeT>
0024 using SpecializedPolycone = SpecializedVolImplHelper<PolyconeImplementation<polyconeTypeT>>;
0025 
0026 using SimplePolycone = SpecializedPolycone<ConeTypes::UniversalCone>;
0027 
0028 template <typename Type>
0029 VECCORE_ATT_DEVICE VPlacedVolume *SUnplacedPolycone<Type>::Create(LogicalVolume const *const logical_volume,
0030                                                                   Transformation3D const *const transformation,
0031 #ifdef VECCORE_CUDA
0032                                                                   const int id, const int copy_no, const int child_id,
0033 #endif
0034                                                                   VPlacedVolume *const placement)
0035 {
0036   (void)placement;
0037   return new SpecializedPolycone<Type>(logical_volume, transformation
0038 #ifdef VECCORE_CUDA
0039                                        ,
0040                                        id, copy_no, child_id
0041 #endif
0042   );
0043 }
0044 
0045 } // namespace VECGEOM_IMPL_NAMESPACE
0046 } // namespace vecgeom
0047 
0048 #endif /* VECGEOM_VOLUMES_SPECIALIZEDPOLYCONE_H_ */