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

Go to the source code of this file.

Functions

void export_G4Track ()
 
void export_G4TrackStatus ()
 
void export_G4Step ()
 
void export_G4StepPoint ()
 
void export_G4StepStatus ()
 
 BOOST_PYTHON_MODULE (G4track)
 

Function Documentation

BOOST_PYTHON_MODULE ( G4track  )

Definition at line 45 of file pymodG4track.cc.

46 {
49  export_G4Step();
52 }
void export_G4TrackStatus()
void export_G4Step()
Definition: pyG4Step.cc:41
void export_G4Track()
Definition: pyG4Track.cc:41
void export_G4StepStatus()
void export_G4StepPoint()

Here is the call graph for this function:

void export_G4Step ( )

Definition at line 41 of file pyG4Step.cc.

42 {
43  class_<G4Step, G4Step*>("G4Step", "step class")
44  // ---
45  .def("GetTrack", &G4Step::GetTrack,
46  return_value_policy<reference_existing_object>())
47  .def("GetPreStepPoint", &G4Step::GetPreStepPoint,
48  return_internal_reference<>())
49  .def("GetPostStepPoint", &G4Step::GetPostStepPoint,
50  return_internal_reference<>())
51  .def("GetTotalEnergyDeposit", &G4Step::GetTotalEnergyDeposit)
52  .def("GetStepLength", &G4Step::GetStepLength)
53  .def("GetDeltaPosition", &G4Step::GetDeltaPosition)
54  .def("GetDeltaTime", &G4Step::GetDeltaTime)
55  .def("GetDeltaMomentum", &G4Step::GetDeltaMomentum)
56  .def("GetDeltaEnergy", &G4Step::GetDeltaEnergy)
57  ;
58 }
G4double GetDeltaEnergy() const
Definition: G4Step.cc:176
G4double GetStepLength() const
G4StepPoint * GetPreStepPoint() const
G4ThreeVector GetDeltaMomentum() const
Definition: G4Step.cc:159
G4double GetDeltaTime() const
G4double GetTotalEnergyDeposit() const
G4StepPoint * GetPostStepPoint() const
G4Track * GetTrack() const
G4ThreeVector GetDeltaPosition() const

Here is the call graph for this function:

Here is the caller graph for this function:

void export_G4StepPoint ( )

Definition at line 41 of file pyG4StepPoint.cc.

42 {
43  class_<G4StepPoint, G4StepPoint*>("G4StepPoint", "step point class")
44  // ---
45  .def("GetPosition", &G4StepPoint::GetPosition,
46  return_value_policy<return_by_value>())
47  .def("GetLocalTime", &G4StepPoint::GetLocalTime)
48  .def("GetGlobalTime", &G4StepPoint::GetGlobalTime)
49  .def("GetProperTime", &G4StepPoint::GetProperTime)
50  .def("GetMomentumDirection", &G4StepPoint::GetMomentumDirection,
51  return_value_policy<return_by_value>())
52  .def("GetMomentum", &G4StepPoint::GetMomentum,
53  return_value_policy<return_by_value>())
54  .def("GetTotalEnergy", &G4StepPoint::GetTotalEnergy)
55  .def("GetKineticEnergy", &G4StepPoint::GetKineticEnergy)
56  .def("GetVelocity", &G4StepPoint::GetVelocity)
57  .def("GetBeta", &G4StepPoint::GetBeta)
58  .def("GetGamma", &G4StepPoint::GetGamma)
59  .def("GetTouchable", &G4StepPoint::GetTouchable,
60  return_value_policy<reference_existing_object>())
61  .def("GetMaterial", &G4StepPoint::GetMaterial,
62  return_value_policy<reference_existing_object>())
63  .def("GetPolarization", &G4StepPoint::GetPolarization,
64  return_value_policy<return_by_value>())
65  .def("GetStepStatus", &G4StepPoint::GetStepStatus)
66  .def("GetProcessDefinedStep", &G4StepPoint::GetProcessDefinedStep,
67  return_value_policy<reference_existing_object>())
68  .def("GetMass", &G4StepPoint::GetMass)
69  .def("GetCharge", &G4StepPoint::GetCharge)
70  .def("GetWeight", &G4StepPoint::GetWeight)
71  ;
72 }
G4double GetTotalEnergy() const
G4double GetWeight() const
G4StepStatus GetStepStatus() const
G4Material * GetMaterial() const
G4ThreeVector GetMomentum() const
G4double GetVelocity() const
const G4VTouchable * GetTouchable() const
G4double GetLocalTime() const
const G4ThreeVector & GetMomentumDirection() const
const G4ThreeVector & GetPosition() const
G4double GetCharge() const
G4double GetMass() const
const G4VProcess * GetProcessDefinedStep() const
G4double GetProperTime() const
G4double GetGlobalTime() const
G4double GetKineticEnergy() const
G4double GetGamma() const
const G4ThreeVector & GetPolarization() const
G4double GetBeta() const

Here is the call graph for this function:

Here is the caller graph for this function:

void export_G4StepStatus ( )

Definition at line 40 of file pyG4StepStatus.cc.

41 {
42  enum_<G4StepStatus>("G4StepStatus")
43  .value("fWorldBoundary", fWorldBoundary)
44  .value("fGeomBoundary", fGeomBoundary)
45  .value("fAtRestDoItProc", fAtRestDoItProc)
46  .value("fAlongStepDoItProc", fAlongStepDoItProc)
47  .value("fPostStepDoItProc", fPostStepDoItProc)
48  .value("fUserDefinedLimit", fUserDefinedLimit)
49  .value("fExclusivelyForcedProc", fExclusivelyForcedProc)
50  .value("fUndefined", fUndefined)
51  ;
52 }
const XML_Char int const XML_Char * value
Definition: expat.h:331

Here is the caller graph for this function:

void export_G4Track ( )

Definition at line 41 of file pyG4Track.cc.

42 {
43  class_<G4Track, G4Track*>("G4Track", "track class")
44  // ---
45  .def("GetTrackID", &G4Track::GetTrackID)
46  .def("GetParentID", &G4Track::GetParentID)
47  .def("GetDynamicParticle", &G4Track::GetDynamicParticle,
48  return_internal_reference<>())
49  .def("GetDefinition", &G4Track::GetDefinition,
50  return_internal_reference<>())
51  .def("GetPosition", &G4Track::GetPosition,
52  return_value_policy<return_by_value>())
53  .def("GetGlobalTime", &G4Track::GetGlobalTime)
54  .def("GetLocalTime", &G4Track::GetLocalTime)
55  .def("GetProperTime", &G4Track::GetProperTime)
56  .def("GetVolume", &G4Track::GetVolume,
57  return_value_policy<reference_existing_object>())
58  .def("GetMaterial", &G4Track::GetMaterial,
59  return_value_policy<reference_existing_object>())
60  .def("GetTouchable", &G4Track::GetTouchable,
61  return_value_policy<reference_existing_object>())
62  .def("GetKineticEnergy", &G4Track::GetKineticEnergy)
63  .def("GetTotalEnergy", &G4Track::GetTotalEnergy)
64  .def("GetMomentumDirection", &G4Track::GetMomentumDirection,
65  return_value_policy<return_by_value>())
66  .def("GetMomentum", &G4Track::GetMomentum,
67  return_value_policy<return_by_value>())
68  .def("GetVelocity", &G4Track::GetVelocity)
69  .def("GetPolarization", &G4Track::GetPolarization,
70  return_value_policy<return_by_value>())
71  .def("GetTrackStatus", &G4Track::GetTrackStatus)
72  .def("GetTrackLength", &G4Track::GetTrackLength)
73  .def("GetStep", &G4Track::GetStep,
74  return_value_policy<reference_existing_object>())
75  .def("GetCurrentStepNumber", &G4Track::GetCurrentStepNumber)
76  .def("GetStepLength", &G4Track::GetStepLength)
77  .def("GetVertexPosition", &G4Track::GetVertexPosition,
78  return_value_policy<return_by_value>())
79  .def("GetVertexMomentumDirection", &G4Track::GetVertexMomentumDirection,
80  return_value_policy<return_by_value>())
81  .def("GetVertexKineticEnergy", &G4Track::GetVertexKineticEnergy)
82  .def("GetLogicalVolumeAtVertex", &G4Track::GetLogicalVolumeAtVertex,
83  return_value_policy<reference_existing_object>())
84  .def("GetCreatorProcess", &G4Track::GetCreatorProcess,
85  return_value_policy<reference_existing_object>())
86  .def("GetWeight", &G4Track::GetWeight)
87  .def("SetWeight", &G4Track::SetWeight)
88  ;
89 }
G4ParticleDefinition * GetDefinition() const
G4int GetParentID() const
const G4ThreeVector & GetPolarization() const
G4double GetLocalTime() const
G4double GetProperTime() const
G4double GetVelocity() const
const G4LogicalVolume * GetLogicalVolumeAtVertex() const
const G4DynamicParticle * GetDynamicParticle() const
const G4ThreeVector & GetPosition() const
G4TrackStatus GetTrackStatus() const
const G4Step * GetStep() const
void SetWeight(G4double aValue)
const G4VProcess * GetCreatorProcess() const
G4double GetKineticEnergy() const
G4int GetCurrentStepNumber() const
G4double GetVertexKineticEnergy() const
G4int GetTrackID() const
G4double GetGlobalTime() const
const G4ThreeVector & GetVertexPosition() const
G4double GetTrackLength() const
G4Material * GetMaterial() const
G4ThreeVector GetMomentum() const
const G4ThreeVector & GetMomentumDirection() const
const G4VTouchable * GetTouchable() const
G4VPhysicalVolume * GetVolume() const
G4double GetWeight() const
G4double GetTotalEnergy() const
const G4ThreeVector & GetVertexMomentumDirection() const
G4double GetStepLength() const

Here is the call graph for this function:

Here is the caller graph for this function:

void export_G4TrackStatus ( )

Definition at line 40 of file pyG4TrackStatus.cc.

41 {
42  enum_<G4TrackStatus>("G4TrackStatus")
43  .value("fAlive", fAlive)
44  .value("fStopButAlive", fStopButAlive)
45  .value("fStopAndKill", fStopAndKill)
46  .value("fKillTrackAndSecondaries", fKillTrackAndSecondaries)
47  .value("fSuspend", fSuspend)
48  .value("fPostponeToNextEvent", fPostponeToNextEvent)
49  ;
50 }
const XML_Char int const XML_Char * value
Definition: expat.h:331

Here is the caller graph for this function: