LArSoft  v09_90_00
Liquid Argon Software toolkit - https://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 88 of file pyG4VUserPhysicsList.cc.

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

Referenced by BOOST_PYTHON_MODULE().

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