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

Go to the source code of this file.

Classes

struct  pyG4VModularPhysicsList::CB_G4VModularPhysicsList
 

Namespaces

 pyG4VModularPhysicsList
 

Functions

void export_G4VModularPhysicsList ()
 

Variables

const G4VPhysicsConstructor *(G4VModularPhysicsList::* pyG4VModularPhysicsList::f1_GetPhysics )(G4int) const = &G4VModularPhysicsList::GetPhysics
 
const G4VPhysicsConstructor *(G4VModularPhysicsList::* pyG4VModularPhysicsList::f2_GetPhysics )(const G4String &) const = &G4VModularPhysicsList::GetPhysics
 

Function Documentation

void export_G4VModularPhysicsList ( )

Definition at line 65 of file pyG4VModularPhysicsList.cc.

References pyG4VModularPhysicsList::f1_GetPhysics, and pyG4VModularPhysicsList::f2_GetPhysics.

Referenced by BOOST_PYTHON_MODULE().

66 {
67  class_<CB_G4VModularPhysicsList, bases<G4VUserPhysicsList>,
68  boost::noncopyable>
69  ("G4VModularPhysicsList", "base class of modular physics list")
70  // ---
71  .def("SetCuts", pure_virtual(&G4VModularPhysicsList::SetCuts))
72  .def("ConstructParticle", &G4VModularPhysicsList::ConstructParticle)
73  .def("ConstructProcess", &G4VModularPhysicsList::ConstructProcess)
74  // ---
75  .def("RegisterPhysics", &G4VModularPhysicsList::RegisterPhysics)
76  .def("GetPhysics", f1_GetPhysics,
77  return_value_policy<reference_existing_object>())
78  .def("GetPhysics", f2_GetPhysics,
79  return_value_policy<reference_existing_object>())
80  ;
81 }
const G4VPhysicsConstructor *(G4VModularPhysicsList::* f1_GetPhysics)(G4int) const
const G4VPhysicsConstructor *(G4VModularPhysicsList::* f2_GetPhysics)(const G4String &) const