LArSoft  v06_85_00
Liquid Argon Software toolkit - http://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 61 of file pyG4VCrossSectionHandler.cc.

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

Referenced by BOOST_PYTHON_MODULE().

62 {
63  class_<G4VCrossSectionHandler, boost::noncopyable>
64  ("G4VCrossSectionHandler", "cross section handler", no_init)
65  // ---
66  .def("Initialise", &G4VCrossSectionHandler::Initialise,
67  f_Initialise())
68  .def("SelectRandomElement", &G4VCrossSectionHandler::SelectRandomElement,
69  return_value_policy<reference_existing_object>())
70  .def("SelectRandomShell", &G4VCrossSectionHandler::SelectRandomShell)
71  .def("FindValue", f1_FindValue)
72  .def("FindValue", f2_FindValue)
73  .def("ValueForMaterial", &G4VCrossSectionHandler::ValueForMaterial)
74  .def("LoadData", &G4VCrossSectionHandler::LoadData)
75  .def("LoadShellData", &G4VCrossSectionHandler::LoadShellData)
76  .def("PrintData", &G4VCrossSectionHandler::PrintData)
77  .def("Clear", &G4VCrossSectionHandler::Clear)
78  ;
79 }
G4double(G4VCrossSectionHandler::* f2_FindValue)(G4int, G4double, G4int) const
G4double(G4VCrossSectionHandler::* f1_FindValue)(G4int, G4double) const