LArSoft  v07_13_02
Liquid Argon Software toolkit - http://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 41 of file pyG4UserLimits.cc.

Referenced by BOOST_PYTHON_MODULE().

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