Geant4-11
pyG4DynamicParticle.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// pyG4DynamicParticle.cc
28//
29// 2005 Q
30// ====================================================================
31#include <boost/python.hpp>
32#include "G4Version.hh"
33#include "G4DynamicParticle.hh"
34#include "G4PrimaryParticle.hh"
35
36using namespace boost::python;
37
38// ====================================================================
39// module definition
40// ====================================================================
42{
43 class_<G4DynamicParticle, G4DynamicParticle*>
44 ("G4DynamicParticle", "dynamic particle")
45 // ---
46 .def("GetMomentumDirection", &G4DynamicParticle::GetMomentumDirection,
47 return_value_policy<return_by_value>())
48 .def("GetMomentum", &G4DynamicParticle::GetMomentum,
49 return_value_policy<return_by_value>())
50 //.def("Get4Momentum", &G4DynamicParticle::Get4Momentum,
51 //return_value_policy<return_by_value>())
52 .def("GetTotalMomentum", &G4DynamicParticle::GetTotalMomentum)
53 .def("GetTotalEnergy", &G4DynamicParticle::GetTotalEnergy)
54 .def("GetKineticEnergy", &G4DynamicParticle::GetKineticEnergy)
55 .def("GetProperTime", &G4DynamicParticle::GetProperTime)
56 .def("GetPolarization", &G4DynamicParticle::GetPolarization,
57 return_value_policy<return_by_value>())
58 .def("GetMass", &G4DynamicParticle::GetMass)
59 .def("GetCharge", &G4DynamicParticle::GetCharge)
60 //.def("GetElectronOccupancy", &G4DynamicParticle::GetElectronOccupancy,
61 //return_internal_reference<>())
62 .def("GetTotalOccupancy", &G4DynamicParticle::GetTotalOccupancy)
63 .def("GetOccupancy", &G4DynamicParticle::GetOccupancy)
64 .def("GetDefinition", &G4DynamicParticle::GetDefinition,
65 return_internal_reference<>())
66 .def("GetPreAssignedDecayProperTime",
68 .def("DumpInfo", &G4DynamicParticle::DumpInfo)
69 .def("SetVerboseLevel", &G4DynamicParticle::SetVerboseLevel)
70 .def("GetVerboseLevel", &G4DynamicParticle::GetVerboseLevel)
71 .def("GetPrimaryParticle", &G4DynamicParticle::GetPrimaryParticle,
72 return_internal_reference<>())
73 .def("GetPDGcode", &G4DynamicParticle::GetPDGcode)
74 ;
75}
76
G4int GetTotalOccupancy() const
G4double GetMass() const
void DumpInfo(G4int mode=0) const
G4int GetOccupancy(G4int orbit) const
const G4ThreeVector & GetMomentumDirection() const
G4PrimaryParticle * GetPrimaryParticle() const
G4double GetCharge() const
G4ParticleDefinition * GetDefinition() const
G4double GetKineticEnergy() const
G4double GetTotalEnergy() const
G4int GetVerboseLevel() const
G4double GetProperTime() const
G4ThreeVector GetMomentum() const
G4double GetPreAssignedDecayProperTime() const
G4double GetTotalMomentum() const
const G4ThreeVector & GetPolarization() const
G4int GetPDGcode() const
void SetVerboseLevel(G4int value)
void export_G4DynamicParticle()