LArSoft  v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
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

 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

void export_G4VCrossSectionHandler ( )

Definition at line 60 of file pyG4VCrossSectionHandler.cc.

References pyG4VCrossSectionHandler::f1_FindValue, and pyG4VCrossSectionHandler::f2_FindValue.

Referenced by BOOST_PYTHON_MODULE().

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(G4VCrossSectionHandler::* f2_FindValue)(G4int, G4double, G4int) const
G4double(G4VCrossSectionHandler::* f1_FindValue)(G4int, G4double) const