Geant4-11
Functions
pyG4PrimaryParticle.cc File Reference
#include <boost/python.hpp>
#include "G4PrimaryParticle.hh"
#include "G4ParticleDefinition.hh"

Go to the source code of this file.

Functions

void export_G4PrimaryParticle ()
 

Function Documentation

◆ export_G4PrimaryParticle()

void export_G4PrimaryParticle ( )

Definition at line 40 of file pyG4PrimaryParticle.cc.

41{
42 class_<G4PrimaryParticle, G4PrimaryParticle*>
43 ("G4PrimaryParticle", "primary particle")
44 .def(init<G4int>())
45 // ---
46 .add_property("Px", &G4PrimaryParticle::GetPx)
47 .add_property("Py", &G4PrimaryParticle::GetPy)
48 .add_property("Pz", &G4PrimaryParticle::GetPz)
49 // ---
50 .def("Print", &G4PrimaryParticle::Print)
51 .def("GetPDGcode", &G4PrimaryParticle::GetPDGcode)
52 .def("GetG4code", &G4PrimaryParticle::GetG4code,
53 return_internal_reference<>())
54 .def("GetMomentun", &G4PrimaryParticle::GetMomentum,
55 return_value_policy<return_by_value>())
56 .def("GetPx", &G4PrimaryParticle::GetPx)
57 .def("GetPy", &G4PrimaryParticle::GetPy)
58 .def("GetPz", &G4PrimaryParticle::GetPz)
59 .def("Set4Momentum", &G4PrimaryParticle::Set4Momentum)
60 .def("SetMomentumDirection", &G4PrimaryParticle::SetMomentumDirection)
61
62 .def("GetNext", &G4PrimaryParticle::GetNext,
63 return_internal_reference<>())
64 .def("GetDaughter", &G4PrimaryParticle::GetNext,
65 return_internal_reference<>())
66 .def("GetTrackID", &G4PrimaryParticle::GetTrackID)
67 .def("GetMass", &G4PrimaryParticle::GetMass)
68 .def("SetMass", &G4PrimaryParticle::SetMass)
69 .def("GetCharge", &G4PrimaryParticle::GetCharge)
70 .def("SetCharge", &G4PrimaryParticle::SetCharge)
71 .def("GetPolarization", &G4PrimaryParticle::GetPolarization,
72 return_value_policy<return_by_value>())
73 .def("GetPolX", &G4PrimaryParticle::GetPolX)
74 .def("GetPolY", &G4PrimaryParticle::GetPolY)
75 .def("GetPolZ", &G4PrimaryParticle::GetPolZ)
76 .def("GetWeight", &G4PrimaryParticle::GetWeight)
77 .def("SetWeight", &G4PrimaryParticle::SetWeight)
78 .def("GetProperTime", &G4PrimaryParticle::GetProperTime)
79 ;
80}
G4double GetWeight() const
G4double GetCharge() const
void SetCharge(G4double chg)
G4double GetProperTime() const
G4double GetPolY() const
G4ThreeVector GetPolarization() const
G4PrimaryParticle * GetNext() const
void SetWeight(G4double w)
void Set4Momentum(G4double px, G4double py, G4double pz, G4double E)
G4double GetPy() const
G4int GetTrackID() const
G4double GetMass() const
void SetMomentumDirection(const G4ThreeVector &p)
G4ThreeVector GetMomentum() const
G4int GetPDGcode() const
void SetMass(G4double mas)
G4double GetPz() const
G4double GetPx() const
G4double GetPolZ() const
G4double GetPolX() const
G4ParticleDefinition * GetG4code() const

References G4PrimaryParticle::GetCharge(), G4PrimaryParticle::GetG4code(), G4PrimaryParticle::GetMass(), G4PrimaryParticle::GetMomentum(), G4PrimaryParticle::GetNext(), G4PrimaryParticle::GetPDGcode(), G4PrimaryParticle::GetPolarization(), G4PrimaryParticle::GetPolX(), G4PrimaryParticle::GetPolY(), G4PrimaryParticle::GetPolZ(), G4PrimaryParticle::GetProperTime(), G4PrimaryParticle::GetPx(), G4PrimaryParticle::GetPy(), G4PrimaryParticle::GetPz(), G4PrimaryParticle::GetTrackID(), G4PrimaryParticle::GetWeight(), G4PrimaryParticle::Print(), G4PrimaryParticle::Set4Momentum(), G4PrimaryParticle::SetCharge(), G4PrimaryParticle::SetMass(), G4PrimaryParticle::SetMomentumDirection(), and G4PrimaryParticle::SetWeight().

Referenced by BOOST_PYTHON_MODULE().