Geant4-11
All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
pyG4Track.cc
Go to the documentation of this file.
1//
2// ********************************************************************
3// * License and Disclaimer *
4// * *
5// * The Geant4 software is copyright of the Copyright Holders of *
6// * the Geant4 Collaboration. It is provided under the terms and *
7// * conditions of the Geant4 Software License, included in the file *
8// * LICENSE and available at http://cern.ch/geant4/license . These *
9// * include a list of copyright holders. *
10// * *
11// * Neither the authors of this software system, nor their employing *
12// * institutes,nor the agencies providing financial support for this *
13// * work make any representation or warranty, express or implied, *
14// * regarding this software system or assume any liability for its *
15// * use. Please see the license in the file LICENSE and URL above *
16// * for the full disclaimer and the limitation of liability. *
17// * *
18// * This code implementation is the result of the scientific and *
19// * technical work of the GEANT4 collaboration. *
20// * By using, copying, modifying or distributing the software (or *
21// * any work based on the software) you agree to acknowledge its *
22// * use in resulting scientific publications, and indicate your *
23// * acceptance of all terms of the Geant4 Software license. *
24// ********************************************************************
25//
26// ====================================================================
27// pyG4Track.cc
28//
29// 2005 Q
30// ====================================================================
31#include <boost/python.hpp>
32#include "G4Track.hh"
33#include "G4VProcess.hh"
34
35using namespace boost::python;
36
37// ====================================================================
38// module definition
39// ====================================================================
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
void export_G4Track()
Definition: pyG4Track.cc:40