LArSoft  v07_13_02
Liquid Argon Software toolkit - http://larsoft.org/
pyEzgeom.cc File Reference
#include <boost/python.hpp>
#include "EzDetectorConstruction.hh"
#include "G4EzWorld.hh"
#include "G4EzVolume.hh"
#include "G4RunManager.hh"
#include "G4VSensitiveDetector.hh"

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.

References pyEZgeom::Construct(), G4EzVolume::CreateBoxVolume(), G4EzVolume::CreateConeVolume(), G4EzVolume::CreateOrbVolume(), G4EzVolume::CreateSphereVolume(), G4EzVolume::CreateTubeVolume(), pyEZgeom::f1_SetColor, pyEZgeom::f2_PlaceIt, pyEZgeom::f2_SetColor, G4EzVolume::GetMaterial(), G4EzVolume::GetSolid(), G4EzVolume::ReplicateIt(), pyEZgeom::ResetWorld(), pyEZgeom::ResizeWorld(), G4EzVolume::SetMaterial(), G4EzVolume::SetSensitiveDetector(), G4EzVolume::SetSolid(), G4EzVolume::SetVisibility(), pyEZgeom::SetWorldMaterial(), pyEZgeom::SetWorldVisibility(), and G4EzVolume::VoxelizeIt().

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 }
G4ThreeVector VoxelizeIt(G4int nx, G4int ny, G4int nz)
Definition: G4EzVolume.cc:257
void SetSensitiveDetector(G4VSensitiveDetector *asd)
Definition: G4EzVolume.cc:301
void SetWorldMaterial(G4Material *amaterial)
Definition: pyEzgeom.cc:69
void CreateTubeVolume(G4Material *amaterial, G4double rmin, G4double rmax, G4double dz, G4double phi0=0., G4double dphi=360 *deg)
Definition: G4EzVolume.cc:101
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 Construct()
Definition: pyEzgeom.cc:52
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 CreateOrbVolume(G4Material *amaterial, G4double rmax)
Definition: G4EzVolume.cc:168
G4Material * GetMaterial() const
Definition: G4EzVolume.hh:143
void SetSolid(G4VSolid *asolid)
Definition: G4EzVolume.hh:133
void SetVisibility(G4bool qvisible)
Definition: G4EzVolume.hh:151
const G4VSolid * GetSolid() const
Definition: G4EzVolume.hh:135
void CreateBoxVolume(G4Material *amaterial, G4double dx, G4double dy, G4double dz)
Definition: G4EzVolume.cc:81
void SetWorldVisibility(G4bool qvis)
Definition: pyEzgeom.cc:75
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 SetMaterial(G4Material *amaterial)
Definition: G4EzVolume.hh:137
void(G4EzVolume::* f1_SetColor)(const G4Color &)
Definition: pyEzgeom.cc:104
void ResizeWorld(G4double dx, G4double dy, G4double dz)
Definition: pyEzgeom.cc:63
void ResetWorld(G4double dx, G4double dy, G4double dz)
Definition: pyEzgeom.cc:58
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