LArSoft  v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
pyG4NistManager.cc File Reference
#include <boost/python.hpp>
#include "G4Version.hh"

Go to the source code of this file.

Functions

void export_G4NistManager ()
 

Function Documentation

void export_G4NistManager ( )

Definition at line 91 of file pyG4NistManager.cc.

Referenced by BOOST_PYTHON_MODULE().

92 {
93 #if G4VERSION_NUMBER >= 710
94 
95  class_<G4NistManager, boost::noncopyable>
96  ("G4NistManager", "manager class for NIST materials", no_init)
97  // ---
98  .def("Instance", &G4NistManager::Instance,
99  return_value_policy<reference_existing_object>())
100  .staticmethod("Instance")
101  // ---
102  .def("SetVerbose", &G4NistManager::SetVerbose)
103  .def("GetVerbose", &G4NistManager::GetVerbose)
104  // ---
105 #if G4VERSION_NUMBER < 910
106  .def("RegisterElement", &G4NistManager::RegisterElement)
107  .def("DeRegisterElement", &G4NistManager::DeRegisterElement)
108 #endif
109  .def("GetElement", &G4NistManager::GetElement,
110  return_internal_reference<>())
111  .def("FindOrBuildElement", f1_FindOrBuildElement,
112  f_FindOrBuildElement()
113  [return_value_policy<reference_existing_object>()])
114  .def("FindOrBuildElement", f2_FindOrBuildElement,
115  f_FindOrBuildElement()
116  [return_value_policy<reference_existing_object>()])
117  .def("GetNumberOfElements", &G4NistManager::GetNumberOfElements)
118  .def("GetZ", &G4NistManager::GetZ)
119  .def("GetIsotopeMass", &G4NistManager::GetIsotopeMass)
120  .def("PrintElement", f1_PrintElement)
121  .def("PrintElement", f2_PrintElement)
122  .def("PrintG4Element", &G4NistManager::PrintG4Element)
123  // ---
124 #if G4VERSION_NUMBER < 910
125  .def("RegisterMaterial", &G4NistManager::RegisterMaterial)
126  .def("DeRegisterMaterial", &G4NistManager::DeRegisterMaterial)
127 #endif
128  .def("GetMaterial", &G4NistManager::GetMaterial,
129  return_value_policy<reference_existing_object>())
130  .def("FindOrBuildMaterial", &G4NistManager::FindOrBuildMaterial,
131  f_FindOrBuildMaterial()
132  [return_value_policy<reference_existing_object>()])
133  .def("ConstructNewMaterial", f1_ConstructNewMaterial,
134  f_ConstructNewMaterial()
135  [return_value_policy<reference_existing_object>()])
136  .def("ConstructNewMaterial", f2_ConstructNewMaterial,
137  f_ConstructNewMaterial()
138  [return_value_policy<reference_existing_object>()])
139 #if G4VERSION_NUMBER >= 910
140  .def("ConstructNewGasMaterial", &G4NistManager::ConstructNewGasMaterial,
141  f_ConstructNewGasMaterial()
142  [return_value_policy<reference_existing_object>()])
143 #endif
144  .def("GetNumberOfMaterials", &G4NistManager::GetNumberOfMaterials)
145  .def("ListMaterials", &G4NistManager::ListMaterials)
146  .def("PrintG4Material", &G4NistManager::PrintG4Material)
147  ;
148 #endif
149 }