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

Go to the source code of this file.

Functions

void export_G4DynamicParticle ()
 

Function Documentation

void export_G4DynamicParticle ( )

Definition at line 41 of file pyG4DynamicParticle.cc.

Referenced by BOOST_PYTHON_MODULE().

42 {
43  class_<G4DynamicParticle, G4DynamicParticle*>
44  ("G4DynamicParticle", "dynamic particle")
45  // ---
46  .def("GetMomentumDirection", &G4DynamicParticle::GetMomentumDirection,
47  return_value_policy<return_by_value>())
48  .def("GetMomentum", &G4DynamicParticle::GetMomentum,
49  return_value_policy<return_by_value>())
50  //.def("Get4Momentum", &G4DynamicParticle::Get4Momentum,
51  //return_value_policy<return_by_value>())
52  .def("GetTotalMomentum", &G4DynamicParticle::GetTotalMomentum)
53  .def("GetTotalEnergy", &G4DynamicParticle::GetTotalEnergy)
54  .def("GetKineticEnergy", &G4DynamicParticle::GetKineticEnergy)
55  .def("GetProperTime", &G4DynamicParticle::GetProperTime)
56  .def("GetPolarization", &G4DynamicParticle::GetPolarization,
57  return_value_policy<return_by_value>())
58  .def("GetMass", &G4DynamicParticle::GetMass)
59  .def("GetCharge", &G4DynamicParticle::GetCharge)
60  //.def("GetElectronOccupancy", &G4DynamicParticle::GetElectronOccupancy,
61  //return_internal_reference<>())
62  .def("GetTotalOccupancy", &G4DynamicParticle::GetTotalOccupancy)
63  .def("GetOccupancy", &G4DynamicParticle::GetOccupancy)
64  .def("GetDefinition", &G4DynamicParticle::GetDefinition,
65  return_internal_reference<>())
66  .def("GetPreAssignedDecayProperTime",
67  &G4DynamicParticle::GetPreAssignedDecayProperTime)
68  .def("DumpInfo", &G4DynamicParticle::DumpInfo)
69  .def("SetVerboseLevel", &G4DynamicParticle::SetVerboseLevel)
70  .def("GetVerboseLevel", &G4DynamicParticle::GetVerboseLevel)
71  .def("GetPrimaryParticle", &G4DynamicParticle::GetPrimaryParticle,
72  return_internal_reference<>())
73  .def("GetPDGcode", &G4DynamicParticle::GetPDGcode)
74  ;
75 }