LArSoft  v06_85_00
Liquid Argon Software toolkit - http://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 66 of file pyG4VModularPhysicsList.cc.

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

Referenced by BOOST_PYTHON_MODULE().

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