LArSoft  v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
pyG4LogicalVolume.cc File Reference
#include <boost/python.hpp>
#include "G4Version.hh"
#include "G4LogicalVolume.hh"
#include "G4Material.hh"
#include "G4VSolid.hh"
#include "G4FieldManager.hh"
#include "G4VSensitiveDetector.hh"
#include "G4UserLimits.hh"
#include "G4SmartVoxelHeader.hh"
#include "G4MaterialCutsCouple.hh"
#include "G4FastSimulationManager.hh"
#include "G4VisAttributes.hh"

Go to the source code of this file.

Namespaces

 pyG4LogicalVolume
 

Functions

void export_G4LogicalVolume ()
 

Variables

void(G4LogicalVolume::* pyG4LogicalVolume::f1_SetVisAttributes )(const G4VisAttributes *) = &G4LogicalVolume::SetVisAttributes
 
void(G4LogicalVolume::* pyG4LogicalVolume::f2_SetVisAttributes )(const G4VisAttributes &) = &G4LogicalVolume::SetVisAttributes
 
G4VSolid *(G4LogicalVolume::* pyG4LogicalVolume::f1_GetSolid )() const = &G4LogicalVolume::GetSolid
 
void(G4LogicalVolume::* pyG4LogicalVolume::f1_SetSolid )(G4VSolid *) = &G4LogicalVolume::SetSolid
 

Function Documentation

void export_G4LogicalVolume ( )

Definition at line 71 of file pyG4LogicalVolume.cc.

References pyG4LogicalVolume::f1_GetSolid, pyG4LogicalVolume::f1_SetSolid, pyG4LogicalVolume::f1_SetVisAttributes, and pyG4LogicalVolume::f2_SetVisAttributes.

Referenced by BOOST_PYTHON_MODULE().

72 {
73  class_<G4LogicalVolume, G4LogicalVolume*, boost::noncopyable>
74  ("G4LogicalVolume", "logical volume class", no_init)
75  // constructors
76  .def(init<G4VSolid*, G4Material*, const G4String& >())
77  .def(init<G4VSolid*, G4Material*, const G4String&,
78  G4FieldManager* >())
79  .def(init<G4VSolid*, G4Material*, const G4String&,
80  G4FieldManager*, G4VSensitiveDetector* >())
81  .def(init<G4VSolid*, G4Material*, const G4String&,
82  G4FieldManager*, G4VSensitiveDetector*,
83  G4UserLimits* >())
84  .def(init<G4VSolid*, G4Material*, const G4String&,
85  G4FieldManager*, G4VSensitiveDetector*,
86  G4UserLimits*, G4bool >())
87  // ---
88  .def("GetName", &G4LogicalVolume::GetName,
89  return_value_policy<reference_existing_object>())
90  .def("SetName", &G4LogicalVolume::SetName)
91  // ---
92  .def("GetNoDaughters", &G4LogicalVolume::GetNoDaughters)
93  .def("GetDaughter", &G4LogicalVolume::GetDaughter,
94  return_internal_reference<>())
95  .def("AddDaughter", &G4LogicalVolume::AddDaughter)
96  .def("IsDaughter", &G4LogicalVolume::IsDaughter)
97  .def("IsAncestor", &G4LogicalVolume::IsAncestor)
98  .def("RemoveDaughter", &G4LogicalVolume::RemoveDaughter)
99  .def("ClearDaughters", &G4LogicalVolume::ClearDaughters)
100  .def("TotalVolumeEntities", &G4LogicalVolume::TotalVolumeEntities)
101  // ----
102  .def("GetSolid", f1_GetSolid,
103  return_internal_reference<>())
104  .def("SetSolid", f1_SetSolid)
105  .def("GetMaterial", &G4LogicalVolume::GetMaterial,
106  return_internal_reference<>())
107  .def("SetMaterial", &G4LogicalVolume::SetMaterial)
108  .def("UpdateMaterial", &G4LogicalVolume::UpdateMaterial)
109  // ---
110  .def("GetMass", &G4LogicalVolume::GetMass, f_GetMass())
111  .def("GetFieldManager", &G4LogicalVolume::GetFieldManager,
112  return_internal_reference<>())
113  .def("SetFieldManager", &G4LogicalVolume::SetFieldManager)
114  .def("GetSensitiveDetector", &G4LogicalVolume::GetSensitiveDetector,
115  return_internal_reference<>())
116  .def("SetSensitiveDetector", &G4LogicalVolume::SetSensitiveDetector)
117  .def("GetUserLimits", &G4LogicalVolume::GetUserLimits,
118  return_internal_reference<>())
119  .def("SetUserLimits", &G4LogicalVolume::SetUserLimits)
120  // ---
121  .def("GetVoxelHeader", &G4LogicalVolume::GetVoxelHeader,
122  return_internal_reference<>())
123  .def("SetVoxelHeader", &G4LogicalVolume::SetVoxelHeader)
124  .def("GetSmartless", &G4LogicalVolume::GetSmartless)
125  .def("SetSmartless", &G4LogicalVolume::SetSmartless)
126  .def("IsToOptimise", &G4LogicalVolume::IsToOptimise)
127  .def("SetOptimisation", &G4LogicalVolume::SetOptimisation)
128  // ---
129  .def("IsRootRegion", &G4LogicalVolume::IsRootRegion)
130  .def("SetRegionRootFlag", &G4LogicalVolume::SetRegionRootFlag)
131  .def("IsRegion", &G4LogicalVolume::IsRegion)
132  .def("SetRegion", &G4LogicalVolume::SetRegion)
133  .def("GetRegion", &G4LogicalVolume::GetRegion,
134  return_internal_reference<>())
135  .def("PropagateRegion", &G4LogicalVolume::PropagateRegion)
136  .def("GetMaterialCutsCouple", &G4LogicalVolume::GetMaterialCutsCouple,
137  return_internal_reference<>())
138  .def("SetMaterialCutsCouple", &G4LogicalVolume::SetMaterialCutsCouple)
139  // ---
140  .def("GetVisAttributes", &G4LogicalVolume::GetVisAttributes,
141  return_internal_reference<>())
142  .def("SetVisAttributes", f1_SetVisAttributes)
143  .def("SetVisAttributes", f2_SetVisAttributes)
144  // ---
145  .def("GetFastSimulationManager",
146  &G4LogicalVolume::GetFastSimulationManager,
147  return_internal_reference<>())
148  // ---
149  .def("SetBiasWeight", &G4LogicalVolume::SetBiasWeight)
150  .def("GetBiasWeight", &G4LogicalVolume::GetBiasWeight)
151  ;
152 }
void(G4LogicalVolume::* f2_SetVisAttributes)(const G4VisAttributes &)
G4VSolid *(G4LogicalVolume::* f1_GetSolid)() const
void(G4LogicalVolume::* f1_SetSolid)(G4VSolid *)
void(G4LogicalVolume::* f1_SetVisAttributes)(const G4VisAttributes *)