LArSoft  v06_85_00
Liquid Argon Software toolkit - http://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 51 of file pyG4PrimaryVertex.cc.

References pyG4Element::Print().

Referenced by BOOST_PYTHON_MODULE().

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