Geant4-11
Functions
pyG4Region.cc File Reference
#include <boost/python.hpp>
#include "G4Version.hh"
#include "G4Region.hh"
#include "G4LogicalVolume.hh"
#include "G4ProductionCuts.hh"
#include "G4VUserRegionInformation.hh"
#include "G4UserLimits.hh"
#include "G4MaterialCutsCouple.hh"
#include "G4FastSimulationManager.hh"

Go to the source code of this file.

Functions

void export_G4Region ()
 

Function Documentation

◆ export_G4Region()

void export_G4Region ( )

Definition at line 46 of file pyG4Region.cc.

47{
48 class_<G4Region, G4Region*, boost::noncopyable>
49 ("G4Region", "region class", no_init)
50 // constructors
51 .def(init<const G4String&>())
52 // ---
53 .def("AddRootLogicalVolume", &G4Region::AddRootLogicalVolume)
54 .def("RemoveRootLogicalVolume", &G4Region::RemoveRootLogicalVolume)
55 .def("SetName", &G4Region::SetName)
56 .def("GetName", &G4Region::GetName,
57 return_value_policy<return_by_value>())
58 .def("RegionModified", &G4Region::RegionModified)
59 .def("IsModified", &G4Region::IsModified)
60 .def("SetProductionCuts", &G4Region::SetProductionCuts)
61 .def("GetProductionCuts", &G4Region::GetProductionCuts,
62 return_internal_reference<>())
63 .def("GetNumberOfMaterials", &G4Region::GetNumberOfMaterials)
64 .def("GetNumberOfRootVolumes", &G4Region::GetNumberOfRootVolumes)
65 .def("UpdateMaterialList", &G4Region::UpdateMaterialList)
66 .def("ClearMaterialList", &G4Region::ClearMaterialList)
67 .def("ScanVolumeTree", &G4Region::ScanVolumeTree)
68 .def("SetUserInformation", &G4Region::SetUserInformation)
69 .def("GetUserInformation", &G4Region::GetUserInformation,
70 return_internal_reference<>())
71#if G4VERSION_NUMBER >= 710
72 .def("SetUserLimits", &G4Region::SetUserLimits)
73 .def("GetUserLimits", &G4Region::GetUserLimits,
74 return_internal_reference<>())
75#endif
76 .def("ClearMap", &G4Region::ClearMap)
77 .def("RegisterMaterialCouplePair", &G4Region::RegisterMaterialCouplePair)
78 .def("FindCouple", &G4Region::FindCouple,
79 return_value_policy<reference_existing_object>())
80#if G4VERSION_NUMBER >= 800
81 .def("SetFastSimulationManager", &G4Region::SetFastSimulationManager)
82 .def("GetFastSimulationManager", &G4Region::GetFastSimulationManager,
83 return_internal_reference<>())
84 .def("ClearFastSimulationManager", &G4Region::ClearFastSimulationManager)
85 .def("GetWorldPhysical", &G4Region::GetWorldPhysical,
86 return_internal_reference<>())
87 .def("SetWorld", &G4Region::SetWorld)
88 .def("BelongsTo", &G4Region::BelongsTo)
89 .def("GetParentRegion", &G4Region::GetParentRegion,
90 return_value_policy<reference_existing_object>())
91#endif
92 ;
93 }
G4bool IsModified() const
G4bool BelongsTo(G4VPhysicalVolume *thePhys) const
Definition: G4Region.cc:414
void ScanVolumeTree(G4LogicalVolume *lv, G4bool region)
Definition: G4Region.cc:172
void ClearMaterialList()
Definition: G4Region.cc:366
G4Region * GetParentRegion(G4bool &unique) const
Definition: G4Region.cc:469
G4FastSimulationManager * GetFastSimulationManager() const
Definition: G4Region.cc:140
G4VUserRegionInformation * GetUserInformation() const
void SetWorld(G4VPhysicalVolume *wp)
Definition: G4Region.cc:398
G4ProductionCuts * GetProductionCuts() const
void RemoveRootLogicalVolume(G4LogicalVolume *lv, G4bool scan=true)
Definition: G4Region.cc:328
G4MaterialCutsCouple * FindCouple(G4Material *mat)
void RegionModified(G4bool flag)
G4VPhysicalVolume * GetWorldPhysical() const
void SetProductionCuts(G4ProductionCuts *cut)
G4UserLimits * GetUserLimits() const
const G4String & GetName() const
void UpdateMaterialList()
Definition: G4Region.cc:377
void SetFastSimulationManager(G4FastSimulationManager *fsm)
Definition: G4Region.cc:131
void ClearMap()
void SetUserInformation(G4VUserRegionInformation *ui)
void SetName(const G4String &name)
Definition: G4Region.cc:121
size_t GetNumberOfRootVolumes() const
size_t GetNumberOfMaterials() const
void ClearFastSimulationManager()
Definition: G4Region.cc:434
void RegisterMaterialCouplePair(G4Material *mat, G4MaterialCutsCouple *couple)
void SetUserLimits(G4UserLimits *ul)
void AddRootLogicalVolume(G4LogicalVolume *lv, G4bool search=true)
Definition: G4Region.cc:293

References G4Region::AddRootLogicalVolume(), G4Region::BelongsTo(), G4Region::ClearFastSimulationManager(), G4Region::ClearMap(), G4Region::ClearMaterialList(), G4Region::FindCouple(), G4Region::GetFastSimulationManager(), G4Region::GetName(), G4Region::GetNumberOfMaterials(), G4Region::GetNumberOfRootVolumes(), G4Region::GetParentRegion(), G4Region::GetProductionCuts(), G4Region::GetUserInformation(), G4Region::GetUserLimits(), G4Region::GetWorldPhysical(), G4Region::IsModified(), G4Region::RegionModified(), G4Region::RegisterMaterialCouplePair(), G4Region::RemoveRootLogicalVolume(), G4Region::ScanVolumeTree(), G4Region::SetFastSimulationManager(), G4Region::SetName(), G4Region::SetProductionCuts(), G4Region::SetUserInformation(), G4Region::SetUserLimits(), G4Region::SetWorld(), and G4Region::UpdateMaterialList().

Referenced by BOOST_PYTHON_MODULE().