Geant4-11
Functions
pyPhysListFactory.cc File Reference
#include <boost/python.hpp>
#include "G4PhysListFactory.hh"

Go to the source code of this file.

Functions

void export_PhysListFactory ()
 

Function Documentation

◆ export_PhysListFactory()

void export_PhysListFactory ( )

Definition at line 39 of file pyPhysListFactory.cc.

40{
41 class_<G4PhysListFactory, G4PhysListFactory*>
42 ("G4PhysListFactory", "phys list factory")
43 .def("GetReferencePhysList", &G4PhysListFactory::GetReferencePhysList,
44 return_internal_reference<>())
45 .def("ReferencePhysList", &G4PhysListFactory::ReferencePhysList,
46 return_internal_reference<>())
47 .def("IsReferencePhysList", &G4PhysListFactory::IsReferencePhysList)
48 .def("AvailablePhysLists", &G4PhysListFactory::AvailablePhysLists,
49 return_value_policy<reference_existing_object>())
50 .def("AvailablePhysListsEM", &G4PhysListFactory::AvailablePhysListsEM,
51 return_value_policy<reference_existing_object>())
52 ;
53}
const std::vector< G4String > & AvailablePhysListsEM() const
G4bool IsReferencePhysList(const G4String &) const
G4VModularPhysicsList * ReferencePhysList()
G4VModularPhysicsList * GetReferencePhysList(const G4String &)
const std::vector< G4String > & AvailablePhysLists() const

References G4PhysListFactory::AvailablePhysLists(), G4PhysListFactory::AvailablePhysListsEM(), G4PhysListFactory::GetReferencePhysList(), G4PhysListFactory::IsReferencePhysList(), and G4PhysListFactory::ReferencePhysList().

Referenced by BOOST_PYTHON_MODULE().