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

Referenced by BOOST_PYTHON_MODULE().

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