LArSoft  v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
pymodG4tracking.cc File Reference
#include <boost/python.hpp>

Go to the source code of this file.

Functions

void export_G4TrackingManager ()
 
void export_G4UserSteppingAction ()
 
void export_G4UserTrackingAction ()
 
 BOOST_PYTHON_MODULE (G4tracking)
 

Function Documentation

BOOST_PYTHON_MODULE ( G4tracking  )

Definition at line 42 of file pymodG4tracking.cc.

References export_G4TrackingManager(), export_G4UserSteppingAction(), and export_G4UserTrackingAction().

43 {
47 }
void export_G4UserSteppingAction()
void export_G4TrackingManager()
void export_G4UserTrackingAction()
void export_G4TrackingManager ( )

Definition at line 39 of file pyG4TrackingManager.cc.

Referenced by BOOST_PYTHON_MODULE().

40 {
41  class_<G4TrackingManager>
42  ("G4TrackingManager", "tracking manager class")
43  // ---
44  // Note that exposed items are limited, because this class object
45  // is mainly for internal uses.
46  .def("GetStoreTrajectory", &G4TrackingManager::GetStoreTrajectory)
47  .def("SetStoreTrajectory", &G4TrackingManager::SetStoreTrajectory)
48  .def("SetVerboseLevel", &G4TrackingManager::SetVerboseLevel)
49  .def("GetVerboseLevel", &G4TrackingManager::GetVerboseLevel)
50  .def("SetUserTrackInformation",
51  &G4TrackingManager::SetUserTrackInformation)
52  ;
53 }
void export_G4UserSteppingAction ( )

Definition at line 56 of file pyG4UserSteppingAction.cc.

References CB_G4UserSteppingAction::UserSteppingAction().

Referenced by BOOST_PYTHON_MODULE().

57 {
58  class_<CB_G4UserSteppingAction, CB_G4UserSteppingAction*, boost::noncopyable>
59  ("G4UserSteppingAction", "stepping action class")
60 
61  .def("UserSteppingAction", &G4UserSteppingAction::UserSteppingAction,
63  ;
64 }
void UserSteppingAction(const G4Step *astep)
void export_G4UserTrackingAction ( )

Definition at line 67 of file pyG4UserTrackingAction.cc.

References CB_G4UserTrackingAction::PostUserTrackingAction(), and CB_G4UserTrackingAction::PreUserTrackingAction().

Referenced by BOOST_PYTHON_MODULE().

68 {
69  class_<CB_G4UserTrackingAction, CB_G4UserTrackingAction*, boost::noncopyable>
70  ("G4UserTrackingAction", "tracking action class")
71  // ---
72  .def("PreUserTrackingAction",
73  &G4UserTrackingAction::PreUserTrackingAction,
75  .def("PostUserTrackingAction",
76  &G4UserTrackingAction::PostUserTrackingAction,
78  ;
79 }
void PreUserTrackingAction(const G4Track *atrack)
void PostUserTrackingAction(const G4Track *atrack)