Import Geant4 11.0.0 source tree

This commit is contained in:
Gabriele Cosmo
2021-12-10 14:46:44 +01:00
committed by Ben Morgan
parent 6399a014b6
commit 80e2389dd8
3932 changed files with 202519 additions and 246221 deletions
-4
View File
@@ -121,10 +121,8 @@ if G4VisManager.GetConcreteInstance() == None:
if _q_raytracer_x:
_raytracer_x = G4RayTracerX()
_vrml1 = G4VRML1File()
_vrml2 = G4VRML2File()
_dawn = G4DAWNFILE()
_heprep_xml = G4HepRep()
_heprep_file = G4HepRepFile()
_atree = G4ASCIITree()
_raytracer = G4RayTracer()
@@ -140,10 +138,8 @@ if G4VisManager.GetConcreteInstance() == None:
if _q_raytracer_x:
gVisManager.RegisterGraphicsSystem(_raytracer_x)
gVisManager.RegisterGraphicsSystem(_vrml1)
gVisManager.RegisterGraphicsSystem(_vrml2)
gVisManager.RegisterGraphicsSystem(_dawn)
gVisManager.RegisterGraphicsSystem(_heprep_xml)
gVisManager.RegisterGraphicsSystem(_heprep_file)
gVisManager.RegisterGraphicsSystem(_atree)
gVisManager.RegisterGraphicsSystem(_raytracer)
@@ -38,7 +38,7 @@ using namespace boost::python;
// ====================================================================
namespace pyG4Sphere {
G4Sphere* CreateSphere(const G4String& name,
G4Sphere* CreateSphere(const G4String& name,
G4double pRmin, G4double pRmax,
G4double pSPhi, G4double pDPhi,
G4double pSTheta, G4double pDTheta)
@@ -61,13 +61,11 @@ void export_G4Sphere()
.def(init<const G4String&, G4double, G4double, G4double,
G4double, G4double, G4double>())
// ---
.def("GetInsideRadius", &G4Sphere::GetInsideRadius)
.def("GetOuterRadius", &G4Sphere::GetOuterRadius)
.def("GetStartPhiAngle", &G4Sphere::GetStartPhiAngle)
.def("GetDeltaPhiAngle", &G4Sphere::GetDeltaPhiAngle)
.def("GetStartThetaAngle", &G4Sphere::GetStartThetaAngle)
.def("GetDeltaThetaAngle", &G4Sphere::GetDeltaThetaAngle)
.def("SetInsideRadius", &G4Sphere::SetInsideRadius)
.def("SetOuterRadius", &G4Sphere::SetOuterRadius)
.def("SetStartPhiAngle", &G4Sphere::SetStartPhiAngle)
.def("SetDeltaPhiAngle", &G4Sphere::SetDeltaPhiAngle)
@@ -69,11 +69,6 @@ void export_G4Tubs()
.def("SetZHalfLength", &G4Tubs::SetZHalfLength)
.def("SetStartPhiAngle", &G4Tubs::SetStartPhiAngle)
.def("SetDeltaPhiAngle", &G4Tubs::SetDeltaPhiAngle)
.def("GetRMin", &G4Tubs::GetRMin)
.def("GetRMax", &G4Tubs::GetRMax)
.def("GetDz", &G4Tubs::GetDz)
.def("GetSPhi", &G4Tubs::GetSPhi)
.def("GetDPhi", &G4Tubs::GetDPhi)
// operators
.def(self_ns::str(self))
;
@@ -30,6 +30,7 @@
// ====================================================================
#include <boost/python.hpp>
#include <boost/python/suite/indexing/vector_indexing_suite.hpp>
#include "G4Element.hh"
#include "G4ElementVector.hh"
using namespace boost::python;
@@ -39,7 +39,7 @@ void export_G4Material();
void export_G4MaterialTable();
void export_G4Element();
void export_G4ElementTable();
//void export_G4ElementVector();
void export_G4ElementVector();
void export_G4Isotope();
void export_G4NistManager();
void export_G4AtomicShells();
@@ -50,7 +50,7 @@ BOOST_PYTHON_MODULE(G4materials)
export_G4MaterialTable();
export_G4Element();
export_G4ElementTable();
//export_G4ElementVector();
export_G4ElementVector();
export_G4Isotope();
export_G4NistManager();
export_G4AtomicShells();
@@ -16,7 +16,6 @@ endif()
geant4_add_pymodule(pyG4visualization
pyG4ASCIITree.cc
pyG4DAWNFILE.cc
pyG4HepRep.cc
pyG4HepRepFile.cc
pyG4OpenGLImmediateX.cc
pyG4OpenGLImmediateXm.cc
@@ -25,7 +24,6 @@ geant4_add_pymodule(pyG4visualization
pyG4RayTracer.cc
pyG4RayTracerX.cc
pyG4VGraphicsSystem.cc
pyG4VRML1File.cc
pyG4VRML2File.cc
pyG4VisManager.cc
pymodG4visualization.cc
@@ -37,7 +35,7 @@ target_link_libraries(pyG4visualization PRIVATE
G4RayTracer
G4VRML
G4visHepRep
G4vis_management
G4vis_management
)
if(GEANT4_USE_OPENGL_X11 OR GEANT4_USE_XM)
@@ -1,45 +0,0 @@
//
// ********************************************************************
// * License and Disclaimer *
// * *
// * The Geant4 software is copyright of the Copyright Holders of *
// * the Geant4 Collaboration. It is provided under the terms and *
// * conditions of the Geant4 Software License, included in the file *
// * LICENSE and available at http://cern.ch/geant4/license . These *
// * include a list of copyright holders. *
// * *
// * Neither the authors of this software system, nor their employing *
// * institutes,nor the agencies providing financial support for this *
// * work make any representation or warranty, express or implied, *
// * regarding this software system or assume any liability for its *
// * use. Please see the license in the file LICENSE and URL above *
// * for the full disclaimer and the limitation of liability. *
// * *
// * This code implementation is the result of the scientific and *
// * technical work of the GEANT4 collaboration. *
// * By using, copying, modifying or distributing the software (or *
// * any work based on the software) you agree to acknowledge its *
// * use in resulting scientific publications, and indicate your *
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
// ====================================================================
// pyG4HepRep.cc
//
// 2005 Q
// ====================================================================
#include <boost/python.hpp>
#include "G4HepRep.hh"
using namespace boost::python;
// ====================================================================
// module definition
// ====================================================================
void export_G4HepRep()
{
class_<G4HepRep, G4HepRep*, bases<G4VGraphicsSystem> >
("G4HepRep", "HepRep visualization module")
;
}
@@ -1,45 +0,0 @@
//
// ********************************************************************
// * License and Disclaimer *
// * *
// * The Geant4 software is copyright of the Copyright Holders of *
// * the Geant4 Collaboration. It is provided under the terms and *
// * conditions of the Geant4 Software License, included in the file *
// * LICENSE and available at http://cern.ch/geant4/license . These *
// * include a list of copyright holders. *
// * *
// * Neither the authors of this software system, nor their employing *
// * institutes,nor the agencies providing financial support for this *
// * work make any representation or warranty, express or implied, *
// * regarding this software system or assume any liability for its *
// * use. Please see the license in the file LICENSE and URL above *
// * for the full disclaimer and the limitation of liability. *
// * *
// * This code implementation is the result of the scientific and *
// * technical work of the GEANT4 collaboration. *
// * By using, copying, modifying or distributing the software (or *
// * any work based on the software) you agree to acknowledge its *
// * use in resulting scientific publications, and indicate your *
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
// ====================================================================
// pyG4VRML1File.cc
//
// 2005 Q
// ====================================================================
#include <boost/python.hpp>
#include "G4VRML1File.hh"
using namespace boost::python;
// ====================================================================
// module definition
// ====================================================================
void export_G4VRML1File()
{
class_<G4VRML1File, G4VRML1File*, bases<G4VGraphicsSystem> >
("G4VRML1File", "VRML-1(file) visualization module")
;
}
@@ -38,10 +38,8 @@ using namespace boost::python;
void export_G4VisManager();
void export_G4VGraphicsSystem();
void export_G4VRML1File();
void export_G4VRML2File();
void export_G4DAWNFILE();
void export_G4HepRep();
void export_G4HepRepFile();
void export_G4ASCIITree();
void export_G4RayTracer();
@@ -60,14 +58,12 @@ void export_G4OpenGLImmediateXm();
void export_G4RayTracerX();
#endif
BOOST_PYTHON_MODULE(G4visualization)
BOOST_PYTHON_MODULE(G4visualization)
{
export_G4VisManager();
export_G4VGraphicsSystem();
export_G4VRML1File();
export_G4VRML2File();
export_G4DAWNFILE();
export_G4HepRep();
export_G4HepRepFile();
export_G4ASCIITree();
export_G4RayTracer();