LArSoft  v09_90_00
Liquid Argon Software toolkit - https://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 115 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().

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