Commit b274b1b9 authored by Sandro Christian Wenzel's avatar Sandro Christian Wenzel
Browse files

Make conversion function to Geant4 non-pure virtual

It is better not to ask every sub-class to implement it
if not needed.
parent 89ffb0d6
......@@ -139,6 +139,16 @@ void VPlacedVolume::Extent(Vector3D<Precision> & /* min */, Vector3D<Precision>
#endif
}
#ifdef VECGEOM_GEANT4
/// A conversion function to a Geant4 G4VSolid (when G4 support is available)
G4VSolid const *VPlacedVolume::ConvertToGeant4() const
{
#ifndef VECCORE_CUDA
throw std::runtime_error("ConvertToGeant4() not implemented for this shape type.");
#endif
}
#endif
} // namespace VECGEOM_IMPL_NAMESPACE
#ifdef VECCORE_CUDA
......
......@@ -466,7 +466,7 @@ public:
#endif
#ifdef VECGEOM_GEANT4
/// A conversion function to a Geant4 G4VSolid (when G4 support is available)
virtual G4VSolid const *ConvertToGeant4() const = 0;
virtual G4VSolid const *ConvertToGeant4() const;
#endif
#endif // VECCORE_CUDA
};
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment