36 #include <boost/python.hpp> 40 #include "G4RunManager.hh" 41 #include "G4VSensitiveDetector.hh" 53 G4RunManager* runMgr= G4RunManager::GetRunManager();
82 CreateTubeVolume, 4, 6)
88 CreateSphereVolume, 3, 7)
117 class_<G4EzVolume>(
"G4EzVolume",
"an easy way of geometry configuration")
118 .def(init<const G4String&>())
122 f_CreateTubeVolume())
124 f_CreateConeVolume())
126 f_CreateSphereVolume())
131 return_value_policy<reference_existing_object>())
134 return_value_policy<reference_existing_object>())
136 .def(
"PlaceIt", f1_PlaceIt,
137 f_PlaceIt()[return_value_policy<reference_existing_object>()])
139 f_PlaceIt()[return_value_policy<reference_existing_object>()])
141 f_ReplicateIt()[return_value_policy<reference_existing_object>()])
BOOST_PYTHON_MEMBER_FUNCTION_OVERLOADS(f_CreateTubeVolume, CreateTubeVolume, 4, 6) BOOST_PYTHON_MEMBER_FUNCTION_OVERLOADS(f_CreateConeVolume
G4ThreeVector VoxelizeIt(G4int nx, G4int ny, G4int nz)
void SetSensitiveDetector(G4VSensitiveDetector *asd)
static void Resize(G4double dx, G4double dy, G4double dz)
static void Reset(G4double dx, G4double dy, G4double dz)
void SetWorldMaterial(G4Material *amaterial)
void CreateTubeVolume(G4Material *amaterial, G4double rmin, G4double rmax, G4double dz, G4double phi0=0., G4double dphi=360 *deg)
void CreateConeVolume(G4Material *amaterial, G4double rmin1, G4double rmax1, G4double rmin2, G4double rmax2, G4double dz, G4double phi0=0., G4double dphi=360.*deg)
BOOST_PYTHON_MEMBER_FUNCTION_OVERLOADS(f_CreateSphereVolume, CreateSphereVolume, 3, 7) G4VPhysicalVolume *(G4EzVolume G4VPhysicalVolume *(G4EzVolume::* f2_PlaceIt)(const G4Transform3D &, G4int, G4EzVolume *)
void CreateOrbVolume(G4Material *amaterial, G4double rmax)
G4Material * GetMaterial() const
void SetSolid(G4VSolid *asolid)
void SetVisibility(G4bool qvisible)
const G4VSolid * GetSolid() const
void CreateBoxVolume(G4Material *amaterial, G4double dx, G4double dy, G4double dz)
void SetWorldVisibility(G4bool qvis)
void CreateSphereVolume(G4Material *amaterial, G4double rmin, G4double rmax, G4double phi0=0., G4double dphi=360.*deg, G4double theta0=0., G4double dtheta=180.*deg)
void SetMaterial(G4Material *amaterial)
BOOST_PYTHON_MODULE(ezgeom)
void(G4EzVolume::* f1_SetColor)(const G4Color &)
void ResizeWorld(G4double dx, G4double dy, G4double dz)
static void SetVisibility(G4bool qvis)
void ResetWorld(G4double dx, G4double dy, G4double dz)
void(G4EzVolume::* f2_SetColor)(G4double, G4double, G4double)
static void SetMaterial(G4Material *amaterial)
G4VPhysicalVolume * ReplicateIt(G4EzVolume *parent, EAxis pAxis, G4int nReplicas, G4double width, G4double offset=0)