Geant4  10.03.p02
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
pyEzgeom.cc File Reference
#include <boost/python.hpp>
#include "EzDetectorConstruction.hh"
#include "G4EzWorld.hh"
#include "G4EzVolume.hh"
#include "G4RunManager.hh"
#include "G4VSensitiveDetector.hh"
Include dependency graph for pyEzgeom.cc:

Go to the source code of this file.

Namespaces

 pyEZgeom
 

Functions

void pyEZgeom::Construct ()
 
void pyEZgeom::ResetWorld (G4double dx, G4double dy, G4double dz)
 
void pyEZgeom::ResizeWorld (G4double dx, G4double dy, G4double dz)
 
void pyEZgeom::SetWorldMaterial (G4Material *amaterial)
 
void pyEZgeom::SetWorldVisibility (G4bool qvis)
 
 pyEZgeom::BOOST_PYTHON_MEMBER_FUNCTION_OVERLOADS (f_CreateTubeVolume, CreateTubeVolume, 4, 6) BOOST_PYTHON_MEMBER_FUNCTION_OVERLOADS(f_CreateConeVolume
 
 BOOST_PYTHON_MODULE (ezgeom)
 

Variables

 pyEZgeom::CreateConeVolume
 
BOOST_PYTHON_MEMBER_FUNCTION_OVERLOADS(f_CreateSphereVolume,
CreateSphereVolume,
3, 7) G4VPhysicalVolume
*(G4EzVolume G4VPhysicalVolume
*(G4EzVolume::* 
pyEZgeom::f2_PlaceIt )(const G4Transform3D &, G4int, G4EzVolume *) = &G4EzVolume::PlaceIt
 
void(G4EzVolume::* pyEZgeom::f1_SetColor )(const G4Color &) = &G4EzVolume::SetColor
 
void(G4EzVolume::* pyEZgeom::f2_SetColor )(G4double, G4double, G4double) = &G4EzVolume::SetColor
 

Function Documentation

BOOST_PYTHON_MODULE ( ezgeom  )

Definition at line 116 of file pyEzgeom.cc.

116  {
117 
118  class_<G4EzVolume>("G4EzVolume", "an easy way of geometry configuration")
119  .def(init<const G4String&>())
120  // ---
121  .def("CreateBoxVolume", &G4EzVolume::CreateBoxVolume)
122  .def("CreateTubeVolume", &G4EzVolume::CreateTubeVolume,
123  f_CreateTubeVolume())
124  .def("CreateConeVolume", &G4EzVolume::CreateConeVolume,
125  f_CreateConeVolume())
126  .def("CreateShpereVolume", &G4EzVolume::CreateSphereVolume,
127  f_CreateSphereVolume())
128  .def("CreateOrbVolume", &G4EzVolume::CreateOrbVolume)
129  // ---
130  .def("SetSold", &G4EzVolume::SetSolid)
131  .def("GetSold", &G4EzVolume::GetSolid,
132  return_value_policy<reference_existing_object>())
133  .def("SetMaterial", &G4EzVolume::SetMaterial)
134  .def("GetMaterial", &G4EzVolume::GetMaterial,
135  return_value_policy<reference_existing_object>())
136  // ---
137  .def("PlaceIt", f1_PlaceIt,
138  f_PlaceIt()[return_value_policy<reference_existing_object>()])
139  .def("PlaceIt", f2_PlaceIt,
140  f_PlaceIt()[return_value_policy<reference_existing_object>()])
141  .def("ReplicateIt", &G4EzVolume::ReplicateIt,
142  f_ReplicateIt()[return_value_policy<reference_existing_object>()])
143  .def("VoxelizeIt", &G4EzVolume::VoxelizeIt)
144  // ---
145  .def("SetSensitiveDetector", &G4EzVolume::SetSensitiveDetector)
146  // ---
147  .def("SetColor", f1_SetColor)
148  .def("SetColor", f2_SetColor)
149  .def("SetVisibility", &G4EzVolume::SetVisibility)
150  ;
151 
152  // -------------------------------------------------------------------
153  def("Construct", Construct);
154  def("ResetWorld", ResetWorld);
155  def("ResizeWorld", ResizeWorld);
156  def("SetWorldMaterial", SetWorldMaterial);
157  def("SetWorldVisibility", SetWorldVisibility);
158 
159 }
void SetWorldMaterial(G4Material *amaterial)
Definition: pyEzgeom.cc:69
void ResetWorld(G4double dx, G4double dy, G4double dz)
Definition: pyEzgeom.cc:58
G4ThreeVector VoxelizeIt(G4int nx, G4int ny, G4int nz)
Definition: G4EzVolume.cc:257
void CreateBoxVolume(G4Material *amaterial, G4double dx, G4double dy, G4double dz)
Definition: G4EzVolume.cc:81
void CreateOrbVolume(G4Material *amaterial, G4double rmax)
Definition: G4EzVolume.cc:168
void CreateTubeVolume(G4Material *amaterial, G4double rmin, G4double rmax, G4double dz, G4double phi0=0., G4double dphi=360 *deg)
Definition: G4EzVolume.cc:101
void(G4EzVolume::* f1_SetColor)(const G4Color &)
Definition: pyEzgeom.cc:104
void Construct()
Definition: pyExN01geom.cc:48
BOOST_PYTHON_MEMBER_FUNCTION_OVERLOADS(f_CreateSphereVolume, CreateSphereVolume, 3, 7) G4VPhysicalVolume *(G4EzVolume G4VPhysicalVolume *(G4EzVolume::* f2_PlaceIt)(const G4Transform3D &, G4int, G4EzVolume *)
Definition: pyEzgeom.cc:96
void SetSensitiveDetector(G4VSensitiveDetector *asd)
Definition: G4EzVolume.cc:301
const G4VSolid * GetSolid() const
Definition: G4EzVolume.hh:135
void CreateSphereVolume(G4Material *amaterial, G4double rmin, G4double rmax, G4double phi0=0., G4double dphi=360.*deg, G4double theta0=0., G4double dtheta=180.*deg)
Definition: G4EzVolume.cc:146
void SetWorldVisibility(G4bool qvis)
Definition: pyEzgeom.cc:75
void SetSolid(G4VSolid *asolid)
Definition: G4EzVolume.hh:133
void CreateConeVolume(G4Material *amaterial, G4double rmin1, G4double rmax1, G4double rmin2, G4double rmax2, G4double dz, G4double phi0=0., G4double dphi=360.*deg)
Definition: G4EzVolume.cc:122
void SetVisibility(G4bool qvisible)
Definition: G4EzVolume.hh:151
void ResizeWorld(G4double dx, G4double dy, G4double dz)
Definition: pyEzgeom.cc:63
void SetMaterial(G4Material *amaterial)
Definition: G4EzVolume.hh:137
void(G4EzVolume::* f2_SetColor)(G4double, G4double, G4double)
Definition: pyEzgeom.cc:105
G4VPhysicalVolume * ReplicateIt(G4EzVolume *parent, EAxis pAxis, G4int nReplicas, G4double width, G4double offset=0)
Definition: G4EzVolume.cc:237
G4Material * GetMaterial() const
Definition: G4EzVolume.hh:143

Here is the call graph for this function: