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

Go to the source code of this file.

Namespaces

 pyG4PrimaryVertex
 

Functions

void export_G4PrimaryVertex ()
 

Function Documentation

void export_G4PrimaryVertex ( )

Definition at line 50 of file pyG4PrimaryVertex.cc.

References pyG4Element::Print().

Referenced by BOOST_PYTHON_MODULE().

51 {
52  class_<G4PrimaryVertex, G4PrimaryVertex*>
53  ("G4PrimaryVertex", "primary vertex")
54  .def(init<>())
55  .def(init<G4double, G4double, G4double, G4double>())
56  .def(init<G4ThreeVector, G4double>())
57  // ---
58  .add_property("X0", &G4PrimaryVertex::GetX0)
59  .add_property("Y0", &G4PrimaryVertex::GetY0)
60  .add_property("Z0", &G4PrimaryVertex::GetZ0)
61  .add_property("T0", &G4PrimaryVertex::GetT0)
62  // ---
63  .def("GetPosition", &G4PrimaryVertex::GetPosition,
64  return_value_policy<return_by_value>())
65  .def("GetX0", &G4PrimaryVertex::GetX0)
66  .def("GetY0", &G4PrimaryVertex::GetY0)
67  .def("GetZ0", &G4PrimaryVertex::GetZ0)
68  .def("GetT0", &G4PrimaryVertex::GetT0)
69  .def("GetNumberOfParticle", &G4PrimaryVertex::GetNumberOfParticle)
70  .def("GetPrimary", &G4PrimaryVertex::GetPrimary,
71  return_internal_reference<>(), f_GetPrimary())
72  .def("SetPrimary", &G4PrimaryVertex::SetPrimary)
73  .def("GetWeight", &G4PrimaryVertex::GetWeight)
74  .def("SetWeight", &G4PrimaryVertex::SetWeight)
75  .def("Print", &G4PrimaryVertex::Print)
76  ;
77 }
void Print(G4Element &ele)
Definition: pyG4Element.cc:55