LArSoft  v07_13_02
Liquid Argon Software toolkit - http://larsoft.org/
pyG4VUserPhysicsList.cc File Reference
#include <boost/python.hpp>
#include "G4VUserPhysicsList.hh"

Go to the source code of this file.

Classes

struct  pyG4VUserPhysicsList::CB_G4VUserPhysicsList
 

Namespaces

 pyG4VUserPhysicsList
 

Functions

 pyG4VUserPhysicsList::BOOST_PYTHON_MEMBER_FUNCTION_OVERLOADS (f_StorePhysicsTable, StorePhysicsTable, 0, 1) BOOST_PYTHON_MEMBER_FUNCTION_OVERLOADS(f_SetParticleCuts
 
void export_G4VUserPhysicsList ()
 

Variables

void(G4VUserPhysicsList::* pyG4VUserPhysicsList::f1_SetCutValue )(G4double, const G4String &) = &G4VUserPhysicsList::SetCutValue
 
void(G4VUserPhysicsList::* pyG4VUserPhysicsList::f2_SetCutValue )(G4double, const G4String &, const G4String &) = &G4VUserPhysicsList::SetCutValue
 
void(G4VUserPhysicsList::* pyG4VUserPhysicsList::f1_SetParticleCuts )(G4double, G4ParticleDefinition *, G4Region *) = &G4VUserPhysicsList::SetParticleCuts
 
void(G4VUserPhysicsList::* pyG4VUserPhysicsList::f2_SetParticleCuts )(G4double, G4ParticleDefinition *, G4Region *) = &G4VUserPhysicsList::SetParticleCuts
 
 pyG4VUserPhysicsList::SetParticleCuts
 

Function Documentation

void export_G4VUserPhysicsList ( )

Definition at line 89 of file pyG4VUserPhysicsList.cc.

References pyG4VUserPhysicsList::f1_SetCutValue, pyG4VUserPhysicsList::f1_SetParticleCuts, pyG4VUserPhysicsList::f2_SetCutValue, and pyG4VUserPhysicsList::f2_SetParticleCuts.

Referenced by BOOST_PYTHON_MODULE().

90 {
91  class_<CB_G4VUserPhysicsList, CB_G4VUserPhysicsList*, boost::noncopyable>
92  ("G4VUserPhysicsList", "base class of user physics list")
93  // ---
94  .def("ConstructParticle",
95  pure_virtual(&G4VUserPhysicsList::ConstructParticle))
96  .def("ConstructProcess",
97  pure_virtual(&G4VUserPhysicsList::ConstructProcess))
98  .def("SetCuts",
99  pure_virtual(&G4VUserPhysicsList::SetCuts))
100  // ---
101  .def("SetDefaultCutValue", &G4VUserPhysicsList::SetDefaultCutValue)
102  .def("GetDefaultCutValue", &G4VUserPhysicsList::GetDefaultCutValue)
103  // ---
104  .def("StorePhysicsTable", &G4VUserPhysicsList::StorePhysicsTable,
105  f_StorePhysicsTable())
106  .def("IsPhysicsTableRetrieved",
107  &G4VUserPhysicsList::IsPhysicsTableRetrieved)
108  .def("IsStoredInAscii", &G4VUserPhysicsList::IsStoredInAscii)
109  .def("GetPhysicsTableDirectory",
110  &G4VUserPhysicsList::GetPhysicsTableDirectory,
111  return_value_policy<return_by_value>())
112  .def("SetStoredInAscii", &G4VUserPhysicsList::SetStoredInAscii)
113  .def("ResetStoredInAscii", &G4VUserPhysicsList::ResetStoredInAscii)
114  // ---
115  .def("DumpList", &G4VUserPhysicsList::DumpList)
116 
117  .def("DumpCutValuesTable", &G4VUserPhysicsList::DumpCutValuesTable)
118  .def("DumpCutValuesTableIfRequested",
119  &G4VUserPhysicsList::DumpCutValuesTableIfRequested)
120  .def("SetCutValue", f1_SetCutValue)
121  .def("SetCutValue", f2_SetCutValue)
122  .def("SetParticleCuts", f1_SetParticleCuts, f_SetParticleCuts())
123  .def("SetParticleCuts", f2_SetParticleCuts, f_SetParticleCuts())
124  // ---
125  .def("SetVerboseLevel", &G4VUserPhysicsList::SetVerboseLevel)
126  .def("GetVerboseLevel", &G4VUserPhysicsList::GetVerboseLevel)
127  .def("SetCutsWithDefault", &G4VUserPhysicsList::SetCutsWithDefault)
128  .def("SetCutsForRegion", &G4VUserPhysicsList::SetCutsForRegion)
129  .def("GetApplyCuts", &G4VUserPhysicsList::GetApplyCuts)
130  ;
131 
132  // Note that exposed items are limited,
133  // because this class object is mainly for internal uses or obsolete.
134  // Construct
135  // BuildPhysicsTable
136  // PreparePhysicsTable
137  // SetPhysicsTableRetrieved
138  // ReSetPhysicsTableRetrieved
139  // SetApplyCuts
140  // DumpCutValues (obsolete)
141  // ResetCuts;
142 }
void(G4VUserPhysicsList::* f2_SetCutValue)(G4double, const G4String &, const G4String &)
void(G4VUserPhysicsList::* f1_SetCutValue)(G4double, const G4String &)
void(G4VUserPhysicsList::* f1_SetParticleCuts)(G4double, G4ParticleDefinition *, G4Region *)
void(G4VUserPhysicsList::* f2_SetParticleCuts)(G4double, G4ParticleDefinition *, G4Region *)