Geant4  10.03.p03
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
pyG4PrimaryVertex.cc File Reference
#include <boost/python.hpp>
#include "G4PrimaryVertex.hh"
Include dependency graph for pyG4PrimaryVertex.cc:

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.

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 }
G4double GetX0() const
G4int GetNumberOfParticle() const
G4ThreeVector GetPosition() const
void SetWeight(G4double w)
void Print() const
G4double GetT0() const
G4double GetWeight() const
G4PrimaryParticle * GetPrimary(G4int i=0) const
G4double GetZ0() const
G4double GetY0() const
void SetPrimary(G4PrimaryParticle *pp)

Here is the call graph for this function:

Here is the caller graph for this function: