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

Go to the source code of this file.

Functions

void export_G4UserLimits ()
 

Function Documentation

void export_G4UserLimits ( )

Definition at line 40 of file pyG4UserLimits.cc.

Referenced by BOOST_PYTHON_MODULE().

41 {
42  class_<G4UserLimits, G4UserLimits*>
43  ("G4UserLimits", "user step limitations")
44  // ---
45  .def(init<G4double>())
46  .def(init<G4double, G4double>())
47  .def(init<G4double, G4double, G4double>())
48  .def(init<G4double, G4double, G4double, G4double>())
49  .def(init<G4double, G4double, G4double, G4double, G4double>())
50  // ---
51  .def(init<const G4String&>())
52  .def(init<const G4String&, G4double>())
53  .def(init<const G4String&, G4double, G4double>())
54  .def(init<const G4String&, G4double, G4double, G4double>())
55  .def(init<const G4String&, G4double, G4double, G4double, G4double>())
56  .def(init<const G4String&, G4double, G4double, G4double,
57  G4double, G4double>())
58  // ---
59  .def("GetUserMaxTrackLength", &G4UserLimits::GetUserMaxTrackLength)
60  .def("GetUserMaxTime", &G4UserLimits::GetUserMaxTime)
61  .def("GetUserMinEkine", &G4UserLimits::GetUserMinEkine)
62  .def("GetUserMinRange", &G4UserLimits::GetUserMinRange)
63  // ---
64  .def("SetMaxAllowedStep", &G4UserLimits::SetMaxAllowedStep)
65  .def("SetUserMaxTrackLength", &G4UserLimits::SetUserMaxTrackLength)
66  .def("SetUserMaxTime", &G4UserLimits::SetUserMaxTime)
67  .def("SetUserMinEkine", &G4UserLimits::SetUserMinEkine)
68  .def("SetUserMinRange", &G4UserLimits::SetUserMinRange)
69  // ---
70  .def("GetType", &G4UserLimits::GetType,
71  return_internal_reference<>())
72  .def("SetType", &G4UserLimits::SetType)
73  ;
74 }