Geant4.10
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Functions
pymodG4track.cc File Reference
#include <boost/python.hpp>

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.

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

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

Definition at line 41 of file pyG4Step.cc.

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().

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
void export_G4StepPoint ( )

Definition at line 40 of file pyG4StepPoint.cc.

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

Referenced by BOOST_PYTHON_MODULE().

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  //.def("GetMaterial", &G4StepPoint::GetMaterial)
60  .def("GetPolarization", &G4StepPoint::GetPolarization,
61  return_value_policy<return_by_value>())
62  .def("GetStepStatus", &G4StepPoint::GetStepStatus)
63  //.def("GetProcessDefinedStep", &G4StepPoint::GetProcessDefinedStep)
64  .def("GetMass", &G4StepPoint::GetMass)
65  .def("GetCharge", &G4StepPoint::GetCharge)
66  .def("GetWeight", &G4StepPoint::GetWeight)
67  ;
68 }
G4double GetTotalEnergy() const
G4double GetWeight() const
G4StepStatus GetStepStatus() const
G4ThreeVector GetMomentum() const
G4double GetVelocity() const
G4double GetLocalTime() const
const G4ThreeVector & GetMomentumDirection() const
const G4ThreeVector & GetPosition() const
G4double GetCharge() const
G4double GetMass() const
G4double GetProperTime() const
G4double GetGlobalTime() const
G4double GetKineticEnergy() const
G4double GetGamma() const
const G4ThreeVector & GetPolarization() const
G4double GetBeta() const
void export_G4StepStatus ( )

Definition at line 40 of file pyG4StepStatus.cc.

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

Referenced by BOOST_PYTHON_MODULE().

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
void export_G4Track ( )

Definition at line 41 of file pyG4Track.cc.

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().

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
void export_G4TrackStatus ( )

Definition at line 40 of file pyG4TrackStatus.cc.

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

Referenced by BOOST_PYTHON_MODULE().

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