Geant4-11
Namespaces | Functions | Variables
pyG4VCrossSectionHandler.cc File Reference
#include <boost/python.hpp>
#include "G4VCrossSectionHandler.hh"
#include "G4VDataSetAlgorithm.hh"
#include "G4Material.hh"
#include "G4Element.hh"

Go to the source code of this file.

Namespaces

namespace  pyG4VCrossSectionHandler
 

Functions

void export_G4VCrossSectionHandler ()
 

Variables

G4double(G4VCrossSectionHandler::* pyG4VCrossSectionHandler::f1_FindValue )(G4int, G4double) const = &G4VCrossSectionHandler::FindValue
 
G4double(G4VCrossSectionHandler::* pyG4VCrossSectionHandler::f2_FindValue )(G4int, G4double, G4int) const = &G4VCrossSectionHandler::FindValue
 

Function Documentation

◆ export_G4VCrossSectionHandler()

void export_G4VCrossSectionHandler ( )

Definition at line 60 of file pyG4VCrossSectionHandler.cc.

61{
62 class_<G4VCrossSectionHandler, boost::noncopyable>
63 ("G4VCrossSectionHandler", "cross section handler", no_init)
64 // ---
65 .def("Initialise", &G4VCrossSectionHandler::Initialise,
66 f_Initialise())
67 .def("SelectRandomElement", &G4VCrossSectionHandler::SelectRandomElement,
68 return_value_policy<reference_existing_object>())
69 .def("SelectRandomShell", &G4VCrossSectionHandler::SelectRandomShell)
70 .def("FindValue", f1_FindValue)
71 .def("FindValue", f2_FindValue)
72 .def("ValueForMaterial", &G4VCrossSectionHandler::ValueForMaterial)
73 .def("LoadData", &G4VCrossSectionHandler::LoadData)
74 .def("LoadShellData", &G4VCrossSectionHandler::LoadShellData)
75 .def("PrintData", &G4VCrossSectionHandler::PrintData)
76 .def("Clear", &G4VCrossSectionHandler::Clear)
77 ;
78}
G4double ValueForMaterial(const G4Material *material, G4double e) const
void LoadShellData(const G4String &dataFile)
void LoadData(const G4String &dataFile)
G4int SelectRandomShell(G4int Z, G4double e) const
const G4Element * SelectRandomElement(const G4MaterialCutsCouple *material, G4double e) const
void Initialise(G4VDataSetAlgorithm *interpolation=nullptr, G4double minE=250 *CLHEP::eV, G4double maxE=100 *CLHEP::GeV, G4int numberOfBins=200, G4double unitE=CLHEP::MeV, G4double unitData=CLHEP::barn, G4int minZ=1, G4int maxZ=99)
G4double(G4VCrossSectionHandler::* f1_FindValue)(G4int, G4double) const
G4double(G4VCrossSectionHandler::* f2_FindValue)(G4int, G4double, G4int) const

References G4VCrossSectionHandler::Clear(), pyG4VCrossSectionHandler::f1_FindValue, pyG4VCrossSectionHandler::f2_FindValue, G4VCrossSectionHandler::Initialise(), G4VCrossSectionHandler::LoadData(), G4VCrossSectionHandler::LoadShellData(), G4VCrossSectionHandler::PrintData(), G4VCrossSectionHandler::SelectRandomElement(), G4VCrossSectionHandler::SelectRandomShell(), and G4VCrossSectionHandler::ValueForMaterial().

Referenced by BOOST_PYTHON_MODULE().