ATLAS Offline Software
GeoBorderSurface.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3 */
4 
6 
7 #include <exception>
8 
10  GeoOpticalPhysVol* pv1,
11  GeoOpticalPhysVol* pv2,
12  GeoOpticalSurface* opticalSurface):
13  m_name(name),
14  m_pv1(pv1),
15  m_pv2(pv2),
16  m_opticalSurface(opticalSurface){
17  if(pv1->isShared() || pv2->isShared())
18  throw std::runtime_error("Attempt to create a surface with shared physical volumes");
19 
20  }
21 
22 
GeoOpticalPhysVol
Ensure that the extensions for the Vector3D are properly loaded.
Definition: GeoOpticalPhysVol.h:14
GeoBorderSurface.h
GeoOpticalSurface
Ensure that the extensions for the Vector3D are properly loaded.
Definition: GeoOpticalSurface.h:19
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:195
GeoBorderSurface::GeoBorderSurface
GeoBorderSurface(const std::string &name, GeoOpticalPhysVol *pv1, GeoOpticalPhysVol *pv2, GeoOpticalSurface *opticalSurface)
Definition: GeoBorderSurface.cxx:9