ECCE @ EIC Software
Reference for
ECCE @ EIC
simulation and reconstruction software on GitHub
Home page
Related Pages
Modules
Namespaces
Classes
Files
External Links
File List
File Members
ECCE @ EIC Software
Deprecated List
Modules
Namespaces
Classes
Files
File List
acts
analysis
coresoftware
Doxygen_Assist
ecce-detectors
fun4all_eicdetectors
geant4
tree
geant4-10.6-release
config
environments
g4py
examples
source
boost
digits_hits
event
gdml
geometry
global
graphics_reps
intercoms
interface
materials
particles
pyG4DecayTable.cc
pyG4DynamicParticle.cc
pyG4ParticleDefinition.cc
pyG4ParticleList.cc
pyG4ParticleTable.cc
pyG4PrimaryParticle.cc
pyG4PrimaryVertex.cc
pymodG4particles.cc
physics_lists
processes
run
track
tracking
visualization
__init__.py
colortable.py
g4thread.py
g4viscp.py
hepunit.py
tests
zmq
examples
source
macros
online_distribution
tutorials
doxygen_mainpage.h
File Members
External Links
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
pyG4DynamicParticle.cc
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file pyG4DynamicParticle.cc
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
36
using namespace
boost::python;
37
38
// ====================================================================
39
// module definition
40
// ====================================================================
41
void
export_G4DynamicParticle
()
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"
,
67
&
G4DynamicParticle::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
geant4
tree
geant4-10.6-release
environments
g4py
source
particles
pyG4DynamicParticle.cc
Built by
Jin Huang
. updated:
Wed Jun 29 2022 17:24:53
using
1.8.2 with
ECCE GitHub integration