Message: missing GDML GetVolume in g4py Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Question missing GDML GetVolume in g4py 

Forum: Persistency
Date: 20 Jun, 2018
From: Balint Radics <Balint Radics>


I have been using g4py and works great. I mainly use it to read various volumes from GDML geometries and rearrange them for various experiment design scenarios. However, it seems that for the pyG4GDMLParser object in g4py/source/gdml/ there is a (in my opinion very useful) function wrapper, which is missing. I have just checked that even in the recent Geant4 version 10.4.p02 the BOOST wrapper is not generated for GetVolume(...) function. This I find very useful to directly pick up various Logical Volumes from a GDML file.

I could easily fix it by adding this line:

 .def("GetVolume",     &G4GDMLParser::GetVolume,

in export_G4GDMLParser() function, and rebuild g4py. It would be great if you could add this in the git so that it is generated by default - unless I am missing some obvious functionality that would already do the same.

Cheers, Balint

 Add Message Add Message
to: "missing GDML GetVolume in g4py"

 Subscribe Subscribe

This site runs SLAC HyperNews version 1.11-slac-98, derived from the original HyperNews

[ Geant 4 Home | Geant 4 HyperNews | Search | Request New Forum | Feedback ]