Geant4-11
Functions
pymodG4track.cc File Reference
#include <boost/python.hpp>

Go to the source code of this file.

Functions

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

Function Documentation

◆ BOOST_PYTHON_MODULE()

BOOST_PYTHON_MODULE ( G4track  )

Definition at line 44 of file pymodG4track.cc.

45{
51}
void export_G4Track()
Definition: pyG4Track.cc:40
void export_G4StepPoint()
void export_G4StepStatus()
void export_G4Step()
Definition: pyG4Step.cc:40
void export_G4TrackStatus()

References export_G4Step(), export_G4StepPoint(), export_G4StepStatus(), export_G4Track(), and export_G4TrackStatus().

◆ export_G4Step()

void export_G4Step ( )

Definition at line 40 of file pyG4Step.cc.

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

References G4Step::GetDeltaEnergy(), G4Step::GetDeltaMomentum(), G4Step::GetDeltaPosition(), G4Step::GetDeltaTime(), G4Step::GetPostStepPoint(), G4Step::GetPreStepPoint(), G4Step::GetStepLength(), G4Step::GetTotalEnergyDeposit(), and G4Step::GetTrack().

Referenced by BOOST_PYTHON_MODULE().

◆ export_G4StepPoint()

void export_G4StepPoint ( )

Definition at line 40 of file pyG4StepPoint.cc.

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

References G4StepPoint::GetBeta(), G4StepPoint::GetCharge(), G4StepPoint::GetGamma(), G4StepPoint::GetGlobalTime(), G4StepPoint::GetKineticEnergy(), G4StepPoint::GetLocalTime(), G4StepPoint::GetMass(), G4StepPoint::GetMaterial(), G4StepPoint::GetMomentum(), G4StepPoint::GetMomentumDirection(), G4StepPoint::GetPolarization(), G4StepPoint::GetPosition(), G4StepPoint::GetProcessDefinedStep(), G4StepPoint::GetProperTime(), G4StepPoint::GetStepStatus(), G4StepPoint::GetTotalEnergy(), G4StepPoint::GetTouchable(), G4StepPoint::GetVelocity(), and G4StepPoint::GetWeight().

Referenced by BOOST_PYTHON_MODULE().

◆ export_G4StepStatus()

void export_G4StepStatus ( )

Definition at line 39 of file pyG4StepStatus.cc.

40{
41 enum_<G4StepStatus>("G4StepStatus")
42 .value("fWorldBoundary", fWorldBoundary)
43 .value("fGeomBoundary", fGeomBoundary)
44 .value("fAtRestDoItProc", fAtRestDoItProc)
45 .value("fAlongStepDoItProc", fAlongStepDoItProc)
46 .value("fPostStepDoItProc", fPostStepDoItProc)
47 .value("fUserDefinedLimit", fUserDefinedLimit)
48 .value("fExclusivelyForcedProc", fExclusivelyForcedProc)
49 .value("fUndefined", fUndefined)
50 ;
51}
@ fGeomBoundary
Definition: G4StepStatus.hh:43
@ fWorldBoundary
Definition: G4StepStatus.hh:41
@ fUserDefinedLimit
Definition: G4StepStatus.hh:51
@ fUndefined
Definition: G4StepStatus.hh:55
@ fPostStepDoItProc
Definition: G4StepStatus.hh:49
@ fAtRestDoItProc
Definition: G4StepStatus.hh:45
@ fAlongStepDoItProc
Definition: G4StepStatus.hh:47
@ fExclusivelyForcedProc
Definition: G4StepStatus.hh:53

References fAlongStepDoItProc, fAtRestDoItProc, fExclusivelyForcedProc, fGeomBoundary, fPostStepDoItProc, fUndefined, fUserDefinedLimit, and fWorldBoundary.

Referenced by BOOST_PYTHON_MODULE().

◆ export_G4Track()

void export_G4Track ( )

Definition at line 40 of file pyG4Track.cc.

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

References G4Track::GetCreatorProcess(), G4Track::GetCurrentStepNumber(), G4Track::GetDefinition(), G4Track::GetDynamicParticle(), G4Track::GetGlobalTime(), G4Track::GetKineticEnergy(), G4Track::GetLocalTime(), G4Track::GetLogicalVolumeAtVertex(), G4Track::GetMaterial(), G4Track::GetMomentum(), G4Track::GetMomentumDirection(), G4Track::GetParentID(), G4Track::GetPolarization(), G4Track::GetPosition(), G4Track::GetProperTime(), G4Track::GetStep(), G4Track::GetStepLength(), G4Track::GetTotalEnergy(), G4Track::GetTouchable(), G4Track::GetTrackID(), G4Track::GetTrackLength(), G4Track::GetTrackStatus(), G4Track::GetVelocity(), G4Track::GetVertexKineticEnergy(), G4Track::GetVertexMomentumDirection(), G4Track::GetVertexPosition(), G4Track::GetVolume(), G4Track::GetWeight(), and G4Track::SetWeight().

Referenced by BOOST_PYTHON_MODULE().

◆ export_G4TrackStatus()

void export_G4TrackStatus ( )

Definition at line 39 of file pyG4TrackStatus.cc.

40{
41 enum_<G4TrackStatus>("G4TrackStatus")
42 .value("fAlive", fAlive)
43 .value("fStopButAlive", fStopButAlive)
44 .value("fStopAndKill", fStopAndKill)
45 .value("fKillTrackAndSecondaries", fKillTrackAndSecondaries)
46 .value("fSuspend", fSuspend)
47 .value("fPostponeToNextEvent", fPostponeToNextEvent)
48 ;
49}
@ fKillTrackAndSecondaries
@ fSuspend
@ fAlive
@ fStopAndKill
@ fStopButAlive
@ fPostponeToNextEvent

References fAlive, fKillTrackAndSecondaries, fPostponeToNextEvent, fStopAndKill, fStopButAlive, and fSuspend.

Referenced by BOOST_PYTHON_MODULE().