LArSoft  v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
pyG4ParticleTable.cc File Reference
#include <boost/python.hpp>
#include "G4Version.hh"
#include "G4ParticleTable.hh"

Go to the source code of this file.

Namespaces

 pyG4ParticleTable
 

Functions

list pyG4ParticleTable::GetParticleList (G4ParticleTable *particleTable)
 
void export_G4ParticleTable ()
 

Variables

G4bool(G4ParticleTable::* pyG4ParticleTable::f1_contains )(const G4ParticleDefinition *) const = &G4ParticleTable::contains
 
G4bool(G4ParticleTable::* pyG4ParticleTable::f2_contains )(const G4String &) const = &G4ParticleTable::contains
 
G4ParticleDefinition *(G4ParticleTable::* pyG4ParticleTable::f1_FindParticle )(G4int) = &G4ParticleTable::FindParticle
 
G4ParticleDefinition *(G4ParticleTable::* pyG4ParticleTable::f2_FindParticle )(const G4String &) = &G4ParticleTable::FindParticle
 
G4ParticleDefinition *(G4ParticleTable::* pyG4ParticleTable::f3_FindParticle )(const G4ParticleDefinition *) = &G4ParticleTable::FindParticle
 
G4ParticleDefinition *(G4ParticleTable::* pyG4ParticleTable::f1_FindAntiParticle )(G4int) = &G4ParticleTable::FindAntiParticle
 
G4ParticleDefinition *(G4ParticleTable::* pyG4ParticleTable::f2_FindAntiParticle )(const G4String &) = &G4ParticleTable::FindAntiParticle
 
G4ParticleDefinition *(G4ParticleTable::* pyG4ParticleTable::f3_FindAntiParticle )(const G4ParticleDefinition *) = &G4ParticleTable::FindAntiParticle
 

Function Documentation

void export_G4ParticleTable ( )

Definition at line 97 of file pyG4ParticleTable.cc.

References pyG4ParticleTable::f1_contains, pyG4ParticleTable::f1_FindAntiParticle, pyG4ParticleTable::f1_FindParticle, pyG4ParticleTable::f2_contains, pyG4ParticleTable::f2_FindAntiParticle, pyG4ParticleTable::f2_FindParticle, pyG4ParticleTable::f3_FindAntiParticle, pyG4ParticleTable::f3_FindParticle, pyG4ParticleTable::GetParticleList(), and util::size().

Referenced by BOOST_PYTHON_MODULE().

98 {
99  class_<G4ParticleTable, G4ParticleTable*, boost::noncopyable>
100  ("G4ParticleTable", "particle table", no_init)
101  // ---
102  .def("GetParticleTable", &G4ParticleTable::GetParticleTable,
103  return_value_policy<reference_existing_object>())
104  .staticmethod("GetParticleTable")
105  .def("contains", f1_contains)
106  .def("contains", f2_contains)
107  .def("entries", &G4ParticleTable::entries)
108  .def("size", &G4ParticleTable::size)
109  // ---
110  .def("GetParticle", &G4ParticleTable::GetParticle,
111  return_value_policy<reference_existing_object>())
112  .def("GetParticleName", &G4ParticleTable::GetParticleName,
113  return_value_policy<return_by_value>())
114  .def("FindParticle", f1_FindParticle,
115  return_value_policy<reference_existing_object>())
116  .def("FindParticle", f2_FindParticle,
117  return_value_policy<reference_existing_object>())
118  .def("FindParticle", f3_FindParticle,
119  return_value_policy<reference_existing_object>())
120  .def("FindAntiParticle", f1_FindAntiParticle,
121  return_value_policy<reference_existing_object>())
122  .def("FindAntiParticle", f2_FindAntiParticle,
123  return_value_policy<reference_existing_object>())
124  .def("FindAntiParticle", f3_FindAntiParticle,
125  return_value_policy<reference_existing_object>())
126  .def("DumpTable", &G4ParticleTable::DumpTable, f_DumpTable())
127  //.def("GetIonTable", &G4ParticleTable::GetIonTable,
128  //...)
129  //.def("GetShortLivedTable", &G4ParticleTable::GetShortLivedTable,
130  //...)
131  .def("SetVerboseLevel", &G4ParticleTable::SetVerboseLevel)
132  .def("GetVerboseLevel", &G4ParticleTable::GetVerboseLevel)
133  .def("SetReadiness", &G4ParticleTable::SetReadiness)
134  .def("GetReadiness", &G4ParticleTable::GetReadiness)
135  // ---
136  // additionals
137  .def("GetParticleList", GetParticleList)
138  ;
139 }
G4bool(G4ParticleTable::* f1_contains)(const G4ParticleDefinition *) const
decltype(auto) constexpr size(T &&obj)
ADL-aware version of std::size.
Definition: StdUtils.h:101
G4ParticleDefinition *(G4ParticleTable::* f3_FindParticle)(const G4ParticleDefinition *)
G4ParticleDefinition *(G4ParticleTable::* f2_FindAntiParticle)(const G4String &)
G4ParticleDefinition *(G4ParticleTable::* f1_FindParticle)(G4int)
G4ParticleDefinition *(G4ParticleTable::* f2_FindParticle)(const G4String &)
G4ParticleDefinition *(G4ParticleTable::* f3_FindAntiParticle)(const G4ParticleDefinition *)
G4ParticleDefinition *(G4ParticleTable::* f1_FindAntiParticle)(G4int)
G4bool(G4ParticleTable::* f2_contains)(const G4String &) const
list GetParticleList(G4ParticleTable *particleTable)