LArSoft  v06_85_00
Liquid Argon Software toolkit - http://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 45 of file pymodG4track.cc.

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

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

Definition at line 41 of file pyG4Step.cc.

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

Definition at line 41 of file pyG4StepPoint.cc.

Referenced by BOOST_PYTHON_MODULE().

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

Definition at line 40 of file pyG4StepStatus.cc.

References fhicl::detail::atom::value().

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 }
std::string value(boost::any const &)
void export_G4Track ( )

Definition at line 41 of file pyG4Track.cc.

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

Definition at line 40 of file pyG4TrackStatus.cc.

References fhicl::detail::atom::value().

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 }
std::string value(boost::any const &)