LArSoft  v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
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 44 of file pymodG4track.cc.

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

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

Definition at line 40 of file pyG4Step.cc.

Referenced by BOOST_PYTHON_MODULE().

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

Definition at line 40 of file pyG4StepPoint.cc.

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  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 }
void export_G4StepStatus ( )

Definition at line 39 of file pyG4StepStatus.cc.

References value.

Referenced by BOOST_PYTHON_MODULE().

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 }
double value
Definition: spectrum.C:18
void export_G4Track ( )

Definition at line 40 of file pyG4Track.cc.

Referenced by BOOST_PYTHON_MODULE().

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

Definition at line 39 of file pyG4TrackStatus.cc.

References value.

Referenced by BOOST_PYTHON_MODULE().

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 }
double value
Definition: spectrum.C:18