37 #include <boost/python.hpp> 41 #include "G4RunManager.hh" 42 #include "G4VSensitiveDetector.hh" 54 G4RunManager* runMgr= G4RunManager::GetRunManager();
83 CreateTubeVolume, 4, 6)
89 CreateSphereVolume, 3, 7)
118 class_<G4EzVolume>(
"G4EzVolume",
"an easy way of geometry configuration")
119 .def(init<const G4String&>())
123 f_CreateTubeVolume())
125 f_CreateConeVolume())
127 f_CreateSphereVolume())
132 return_value_policy<reference_existing_object>())
135 return_value_policy<reference_existing_object>())
137 .def(
"PlaceIt", f1_PlaceIt,
138 f_PlaceIt()[return_value_policy<reference_existing_object>()])
140 f_PlaceIt()[return_value_policy<reference_existing_object>()])
142 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)