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

Go to the source code of this file.

Functions

void export_G4Step ()
 

Function Documentation

void export_G4Step ( )

Definition at line 40 of file pyG4Step.cc.

Referenced by BOOST_PYTHON_MODULE().

41 {
42  class_<G4Step, G4Step*>("G4Step", "step class")
43  // ---
44  .def("GetTrack", &G4Step::GetTrack,
45  return_value_policy<reference_existing_object>())
46  .def("GetPreStepPoint", &G4Step::GetPreStepPoint,
47  return_internal_reference<>())
48  .def("GetPostStepPoint", &G4Step::GetPostStepPoint,
49  return_internal_reference<>())
50  .def("GetTotalEnergyDeposit", &G4Step::GetTotalEnergyDeposit)
51  .def("GetStepLength", &G4Step::GetStepLength)
52  .def("GetDeltaPosition", &G4Step::GetDeltaPosition)
53  .def("GetDeltaTime", &G4Step::GetDeltaTime)
54  .def("GetDeltaMomentum", &G4Step::GetDeltaMomentum)
55  .def("GetDeltaEnergy", &G4Step::GetDeltaEnergy)
56  ;
57 }