Geant4-11
Functions
pymodG4geometry.cc File Reference
#include <boost/python.hpp>

Go to the source code of this file.

Functions

 BOOST_PYTHON_MODULE (G4geometry)
 
void export_G4BooleanSolid ()
 
void export_G4Box ()
 
void export_G4ChordFinder ()
 
void export_G4Cons ()
 
void export_G4Ellipsoid ()
 
void export_G4EllipticalCone ()
 
void export_G4EllipticalTube ()
 
void export_G4Field ()
 
void export_G4FieldManager ()
 
void export_G4GeometryManager ()
 
void export_G4Hype ()
 
void export_G4IntersectionSolid ()
 
void export_G4LogicalVolume ()
 
void export_G4MagneticField ()
 
void export_G4Navigator ()
 
void export_G4Orb ()
 
void export_G4Para ()
 
void export_G4Polycone ()
 
void export_G4Polyhedra ()
 
void export_G4PVPlacement ()
 
void export_G4PVReplica ()
 
void export_G4Region ()
 
void export_G4Sphere ()
 
void export_G4SubtractionSolid ()
 
void export_G4Tet ()
 
void export_G4Torus ()
 
void export_G4TouchableHistory ()
 
void export_G4TransportationManager ()
 
void export_G4Trap ()
 
void export_G4Trd ()
 
void export_G4Tubs ()
 
void export_G4TwistedBox ()
 
void export_G4TwistedTrap ()
 
void export_G4TwistedTrd ()
 
void export_G4TwistedTubs ()
 
void export_G4UniformMagField ()
 
void export_G4UnionSolid ()
 
void export_G4VPhysicalVolume ()
 
void export_G4VSolid ()
 
void export_G4VTouchable ()
 

Function Documentation

◆ BOOST_PYTHON_MODULE()

BOOST_PYTHON_MODULE ( G4geometry  )

Definition at line 79 of file pymodG4geometry.cc.

80{
105 export_G4Tet();
121}
void export_G4Polycone()
Definition: pyG4Polycone.cc:91
void export_G4Tet()
Definition: pyG4Tet.cc:54
void export_G4Polyhedra()
void export_G4Tubs()
Definition: pyG4Tubs.cc:54
void export_G4MagneticField()
void export_G4UniformMagField()
void export_G4IntersectionSolid()
void export_G4TouchableHistory()
void export_G4PVPlacement()
void export_G4Region()
Definition: pyG4Region.cc:46
void export_G4TransportationManager()
void export_G4UnionSolid()
void export_G4Box()
Definition: pyG4Box.cc:54
void export_G4Orb()
Definition: pyG4Orb.cc:53
void export_G4GeometryManager()
void export_G4FieldManager()
void export_G4SubtractionSolid()
void export_G4Cons()
Definition: pyG4Cons.cc:55
void export_G4LogicalVolume()
void export_G4BooleanSolid()
void export_G4VSolid()
Definition: pyG4VSolid.cc:40
void export_G4Trap()
Definition: pyG4Trap.cc:101
void export_G4VTouchable()
void export_G4ChordFinder()
void export_G4PVReplica()
void export_G4VPhysicalVolume()
void export_G4Sphere()
Definition: pyG4Sphere.cc:56
void export_G4TwistedTubs()
void export_G4Para()
Definition: pyG4Para.cc:55
void export_G4Trd()
Definition: pyG4Trd.cc:54
void export_G4Navigator()
void export_G4EllipticalTube()
void export_G4TwistedTrap()
void export_G4EllipticalCone()
void export_G4Hype()
Definition: pyG4Hype.cc:61
void export_G4TwistedTrd()
void export_G4Field()
Definition: pyG4Field.cc:39
void export_G4Ellipsoid()
void export_G4Torus()
Definition: pyG4Torus.cc:54
void export_G4TwistedBox()

References export_G4BooleanSolid(), export_G4Box(), export_G4ChordFinder(), export_G4Cons(), export_G4Ellipsoid(), export_G4EllipticalCone(), export_G4EllipticalTube(), export_G4Field(), export_G4FieldManager(), export_G4GeometryManager(), export_G4Hype(), export_G4IntersectionSolid(), export_G4LogicalVolume(), export_G4MagneticField(), export_G4Navigator(), export_G4Orb(), export_G4Para(), export_G4Polycone(), export_G4Polyhedra(), export_G4PVPlacement(), export_G4PVReplica(), export_G4Region(), export_G4Sphere(), export_G4SubtractionSolid(), export_G4Tet(), export_G4Torus(), export_G4TouchableHistory(), export_G4TransportationManager(), export_G4Trap(), export_G4Trd(), export_G4Tubs(), export_G4TwistedBox(), export_G4TwistedTrap(), export_G4TwistedTrd(), export_G4TwistedTubs(), export_G4UniformMagField(), export_G4UnionSolid(), export_G4VPhysicalVolume(), export_G4VSolid(), and export_G4VTouchable().

◆ export_G4BooleanSolid()

void export_G4BooleanSolid ( )

Definition at line 39 of file pyG4BooleanSolid.cc.

40{
41 class_<G4BooleanSolid, G4BooleanSolid*, bases<G4VSolid>, boost::noncopyable>
42 ("G4BooleanSolid", "boolean solid class", no_init)
43 // ---
44 .def("GetCubVolStatistics", &G4BooleanSolid::GetCubVolStatistics)
45 .def("GetCubVolEpsilon", &G4BooleanSolid::GetCubVolEpsilon)
46 .def("SetCubVolStatistics", &G4BooleanSolid::SetCubVolStatistics)
47 .def("SetCubVolEpsilon", &G4BooleanSolid::SetCubVolEpsilon)
48 .def("GetAreaStatistics", &G4BooleanSolid::GetAreaStatistics)
49 .def("GetAreaAccuracy", &G4BooleanSolid::GetAreaAccuracy)
50 .def("SetAreaStatistics", &G4BooleanSolid::SetAreaStatistics)
51 .def("SetAreaAccuracy", &G4BooleanSolid::SetAreaAccuracy)
52 .def("GetPointOnSurface", &G4BooleanSolid::GetPointOnSurface)
53 ;
54
55}
void SetCubVolEpsilon(G4double ep)
void SetAreaStatistics(G4int st)
G4double GetAreaAccuracy() const
G4ThreeVector GetPointOnSurface() const
G4double GetCubVolEpsilon() const
G4int GetAreaStatistics() const
G4int GetCubVolStatistics() const
void SetCubVolStatistics(G4int st)
void SetAreaAccuracy(G4double ep)

References G4BooleanSolid::GetAreaAccuracy(), G4BooleanSolid::GetAreaStatistics(), G4BooleanSolid::GetCubVolEpsilon(), G4BooleanSolid::GetCubVolStatistics(), G4BooleanSolid::GetPointOnSurface(), G4BooleanSolid::SetAreaAccuracy(), G4BooleanSolid::SetAreaStatistics(), G4BooleanSolid::SetCubVolEpsilon(), and G4BooleanSolid::SetCubVolStatistics().

Referenced by BOOST_PYTHON_MODULE().

◆ export_G4Box()

void export_G4Box ( )

Definition at line 54 of file pyG4Box.cc.

55{
56 class_<G4Box, G4Box*, bases<G4VSolid> >
57 ("G4Box", "box solid class", no_init)
58 // constructors
59 .def(init<const G4String&, G4double, G4double, G4double>())
60 // ---
61 .def("GetXHalfLength", &G4Box::GetXHalfLength)
62 .def("GetYHalfLength", &G4Box::GetYHalfLength)
63 .def("GetZHalfLength", &G4Box::GetZHalfLength)
64 .def("SetXHalfLength", &G4Box::SetXHalfLength)
65 .def("SetYHalfLength", &G4Box::SetYHalfLength)
66 .def("SetZHalfLength", &G4Box::SetZHalfLength)
67 // operators
68 .def(self_ns::str(self))
69 ;
70
71 // Create solid
72 def("CreateBox", CreateBox, return_value_policy<manage_new_object>());
73
74}
G4double GetYHalfLength() const
G4double GetZHalfLength() const
void SetZHalfLength(G4double dz)
Definition: G4Box.cc:172
G4double GetXHalfLength() const
void SetYHalfLength(G4double dy)
Definition: G4Box.cc:149
void SetXHalfLength(G4double dx)
Definition: G4Box.cc:125
G4Box * CreateBox(const G4String &name, G4double pX, G4double pY, G4double pZ)
Definition: pyG4Box.cc:41

References pyG4Box::CreateBox(), G4Box::GetXHalfLength(), G4Box::GetYHalfLength(), G4Box::GetZHalfLength(), G4Box::SetXHalfLength(), G4Box::SetYHalfLength(), and G4Box::SetZHalfLength().

Referenced by BOOST_PYTHON_MODULE().

◆ export_G4ChordFinder()

void export_G4ChordFinder ( )

Definition at line 51 of file pyG4ChordFinder.cc.

52{
53 class_<G4ChordFinder, G4ChordFinder*, boost::noncopyable>
54 ("G4ChordFinder", "chord finder class", no_init)
55 // constructor
56 .def(init<G4MagneticField*>())
57 .def(init<G4MagneticField*, G4double>())
58 .def(init<G4MagneticField*, G4double, G4MagIntegratorStepper*>())
59 // ---
60 .def("GetDeltaChord", &G4ChordFinder::GetDeltaChord)
61 .def("SetDeltaChord", &G4ChordFinder::SetDeltaChord)
62 // ---
63 .def("SetVerbose", &G4ChordFinder::SetVerbose, f_SetVerbose())
64 ;
65}
G4double GetDeltaChord() const
G4int SetVerbose(G4int newvalue=1)
void SetDeltaChord(G4double newval)

References G4ChordFinder::GetDeltaChord(), G4ChordFinder::SetDeltaChord(), and G4ChordFinder::SetVerbose().

Referenced by BOOST_PYTHON_MODULE().

◆ export_G4Cons()

void export_G4Cons ( )

Definition at line 55 of file pyG4Cons.cc.

56{
57 class_<G4Cons, G4Cons*, bases<G4VSolid> >
58 ("G4Cons", "Cone solid class", no_init)
59 // constructors
60 .def(init<const G4String&, G4double, G4double, G4double,
62 // ---
63 .def("GetInnerRadiusMinusZ", &G4Cons::GetInnerRadiusMinusZ)
64 .def("GetOuterRadiusMinusZ", &G4Cons::GetOuterRadiusMinusZ)
65 .def("GetInnerRadiusPlusZ", &G4Cons::GetInnerRadiusPlusZ)
66 .def("GetOuterRadiusPlusZ", &G4Cons::GetOuterRadiusPlusZ)
67 .def("GetZHalfLength", &G4Cons::GetZHalfLength)
68 .def("GetStartPhiAngle", &G4Cons::GetStartPhiAngle)
69 .def("GetDeltaPhiAngle", &G4Cons::GetDeltaPhiAngle)
70 .def("SetInnerRadiusMinusZ", &G4Cons::SetInnerRadiusMinusZ)
71 .def("SetOuterRadiusMinusZ", &G4Cons::SetOuterRadiusMinusZ)
72 .def("SetInnerRadiusPlusZ", &G4Cons::SetInnerRadiusPlusZ)
73 .def("SetOuterRadiusPlusZ", &G4Cons::SetOuterRadiusPlusZ)
74 .def("SetZHalfLength", &G4Cons::SetZHalfLength)
75 .def("SetStartPhiAngle", &G4Cons::SetStartPhiAngle)
76 .def("SetDeltaPhiAngle", &G4Cons::SetDeltaPhiAngle)
77 // operators
78 .def(self_ns::str(self))
79 ;
80
81 // Create solid
82 def("CreateCons", CreateCons, return_value_policy<manage_new_object>());
83
84}
double G4double
Definition: G4Types.hh:83
G4double GetOuterRadiusPlusZ() const
void SetInnerRadiusPlusZ(G4double Rmin2)
void SetZHalfLength(G4double newDz)
G4double GetStartPhiAngle() const
G4double GetDeltaPhiAngle() const
void SetStartPhiAngle(G4double newSPhi, G4bool trig=true)
void SetOuterRadiusMinusZ(G4double Rmax1)
G4double GetInnerRadiusMinusZ() const
void SetOuterRadiusPlusZ(G4double Rmax2)
G4double GetInnerRadiusPlusZ() const
void SetDeltaPhiAngle(G4double newDPhi)
void SetInnerRadiusMinusZ(G4double Rmin1)
G4double GetOuterRadiusMinusZ() const
G4double GetZHalfLength() const
G4Cons * CreateCons(const G4String &name, G4double pRmin1, G4double pRmax1, G4double pRmin2, G4double pRmax2, G4double pDz, G4double pSPhi, G4double pDPhi)
Definition: pyG4Cons.cc:41

References pyG4Cons::CreateCons(), G4Cons::GetDeltaPhiAngle(), G4Cons::GetInnerRadiusMinusZ(), G4Cons::GetInnerRadiusPlusZ(), G4Cons::GetOuterRadiusMinusZ(), G4Cons::GetOuterRadiusPlusZ(), G4Cons::GetStartPhiAngle(), G4Cons::GetZHalfLength(), G4Cons::SetDeltaPhiAngle(), G4Cons::SetInnerRadiusMinusZ(), G4Cons::SetInnerRadiusPlusZ(), G4Cons::SetOuterRadiusMinusZ(), G4Cons::SetOuterRadiusPlusZ(), G4Cons::SetStartPhiAngle(), and G4Cons::SetZHalfLength().

Referenced by BOOST_PYTHON_MODULE().

◆ export_G4Ellipsoid()

void export_G4Ellipsoid ( )

Definition at line 61 of file pyG4Ellipsoid.cc.

62{
63 class_<G4Ellipsoid, G4Ellipsoid*, bases<G4VSolid> >
64 ("G4Ellipsoid", "ellipsoid class", no_init)
65 // constructors
66 .def(init<const G4String&, G4double, G4double, G4double>())
67 .def(init<const G4String&, G4double, G4double, G4double, G4double>())
68 .def(init<const G4String&, G4double, G4double, G4double, G4double,
69 G4double>())
70 // ---
71 .def("GetSemiAxisMax", &G4Ellipsoid::GetSemiAxisMax)
72 .def("GetZBottomCut", &G4Ellipsoid::GetZBottomCut)
73 .def("GetZTopCut", &G4Ellipsoid::GetZTopCut)
74 .def("SetSemiAxis", &G4Ellipsoid::SetSemiAxis)
75 .def("SetZCuts", &G4Ellipsoid::SetZCuts)
76 // operators
77 .def(self_ns::str(self))
78 ;
79
80 // Create solid
81 def("CreateEllipsoid", CreateEllipsoid,
82 f_CreateEllipsoid()[return_value_policy<manage_new_object>()]);
83}
G4double GetSemiAxisMax(G4int i) const
void SetZCuts(G4double newzBottomCut, G4double newzTopCut)
G4double GetZTopCut() const
G4double GetZBottomCut() const
void SetSemiAxis(G4double x, G4double y, G4double z)
G4Ellipsoid * CreateEllipsoid(const G4String &name, G4double pxSemiAxis, G4double pySemiAxis, G4double pzSemiAxis, G4double pzBottomCut=0, G4double pzTopCut=0)

References pyG4Ellipsoid::CreateEllipsoid(), G4Ellipsoid::GetSemiAxisMax(), G4Ellipsoid::GetZBottomCut(), G4Ellipsoid::GetZTopCut(), G4Ellipsoid::SetSemiAxis(), and G4Ellipsoid::SetZCuts().

Referenced by BOOST_PYTHON_MODULE().

◆ export_G4EllipticalCone()

void export_G4EllipticalCone ( )

Definition at line 57 of file pyG4EllipticalCone.cc.

58{
59 class_<G4EllipticalCone, G4EllipticalCone*, bases<G4VSolid> >
60 ("G4EllipticalCone", "elliptical cone solid class", no_init)
61 // constructors
62 .def(init<const G4String&, G4double, G4double, G4double, G4double>())
63 // ---
64 .def("GetSimiAxisMax", &G4EllipticalCone::GetSemiAxisMax)
65 .def("GetZTopCut", &G4EllipticalCone::GetZTopCut)
66 .def("SetSemiAxis", &G4EllipticalCone::SetSemiAxis)
67 .def("SetZCut", &G4EllipticalCone::SetZCut)
68 // operators
69 .def(self_ns::str(self))
70 ;
71
72 // Create solid
73 def("CreateEllipticalCone", CreateEllipticalCone,
74 return_value_policy<manage_new_object>());
75
76}
void SetSemiAxis(G4double x, G4double y, G4double z)
G4double GetSemiAxisMax() const
void SetZCut(G4double newzTopCut)
G4double GetZTopCut() const
G4EllipticalCone * CreateEllipticalCone(const G4String &name, G4double pxSemiAxis, G4double pySemiAxis, G4double zMax, G4double pzTopCut)

References pyG4EllipticalCone::CreateEllipticalCone(), G4EllipticalCone::GetSemiAxisMax(), G4EllipticalCone::GetZTopCut(), G4EllipticalCone::SetSemiAxis(), and G4EllipticalCone::SetZCut().

Referenced by BOOST_PYTHON_MODULE().

◆ export_G4EllipticalTube()

void export_G4EllipticalTube ( )

Definition at line 56 of file pyG4EllipticalTube.cc.

57{
58 class_<G4EllipticalTube, G4EllipticalTube*, bases<G4VSolid> >
59 ("G4EllipticalTube", "elliptical tube solid class", no_init)
60 // constructors
61 .def(init<const G4String&, G4double, G4double, G4double>())
62 // ---
63 .def("GetDx", &G4EllipticalTube::GetDx)
64 .def("GetDy", &G4EllipticalTube::GetDy)
65 .def("GetDz", &G4EllipticalTube::GetDz)
66 .def("SetDx", &G4EllipticalTube::SetDx)
67 .def("SetDy", &G4EllipticalTube::SetDy)
68 .def("SetDz", &G4EllipticalTube::SetDz)
69
70 // operators
71 .def(self_ns::str(self))
72 ;
73
74 // Create solid
75 def("CreateEllipticalTube", CreateEllipticalTube,
76 return_value_policy<manage_new_object>());
77
78}
void SetDz(G4double Dz)
G4double GetDy() const
void SetDx(G4double Dx)
G4double GetDx() const
void SetDy(G4double Dy)
G4double GetDz() const
G4EllipticalTube * CreateEllipticalTube(const G4String &name, G4double theDx, G4double theDy, G4double theDz)

References pyG4EllipticalTube::CreateEllipticalTube(), G4EllipticalTube::GetDx(), G4EllipticalTube::GetDy(), G4EllipticalTube::GetDz(), G4EllipticalTube::SetDx(), G4EllipticalTube::SetDy(), and G4EllipticalTube::SetDz().

Referenced by BOOST_PYTHON_MODULE().

◆ export_G4Field()

void export_G4Field ( )

Definition at line 39 of file pyG4Field.cc.

40{
41 class_<G4Field, G4Field*, boost::noncopyable>
42 ("G4Field", "base class of field", no_init)
43 ;
44}

Referenced by BOOST_PYTHON_MODULE().

◆ export_G4FieldManager()

void export_G4FieldManager ( )

Definition at line 62 of file pyG4FieldManager.cc.

63{
64 class_<G4FieldManager, G4FieldManager*, boost::noncopyable>
65 ("G4FieldManager", "field manager class")
66 // constructors
67 .def(init<>())
68 .def(init<G4Field*>())
69 .def(init<G4Field*, G4ChordFinder*>())
70 .def(init<G4Field*, G4ChordFinder*, G4bool>())
71 .def(init<G4MagneticField*>())
72 // ---
73 .def("SetDetectorField", &G4FieldManager::SetDetectorField,
74 f_SetDetectorField())
75 .def("GetDetectorField", &G4FieldManager::GetDetectorField,
76 return_internal_reference<>())
77 .def("DoesFieldExist", &G4FieldManager::DoesFieldExist)
78 .def("CreateChordFinder", &G4FieldManager::CreateChordFinder)
79 .def("SetChordFinder", &G4FieldManager::SetChordFinder)
80 .def("GetChordFinder", f1_GetChordFinder,
81 return_internal_reference<>())
82 .def("GetChordFinder", f2_GetChordFinder,
83 return_internal_reference<>())
84 .def("ConfigureForTrack", &G4FieldManager::ConfigureForTrack)
85 .def("GetDeltaIntersection", &G4FieldManager::GetDeltaIntersection)
86 .def("GetDeltaOneStep", &G4FieldManager::GetDeltaOneStep)
87 .def("SetAccuraciesWithDeltaOneStep",
89 .def("SetDeltaOneStep", &G4FieldManager::SetDeltaOneStep)
90 .def("SetDeltaIntersection", &G4FieldManager::SetDeltaIntersection)
91 .def("GetMinimumEpsilonStep", &G4FieldManager::GetMinimumEpsilonStep)
92 .def("SetMinimumEpsilonStep", &G4FieldManager::SetMinimumEpsilonStep)
93 .def("GetMaximumEpsilonStep", &G4FieldManager::GetMaximumEpsilonStep)
94 .def("SetMaximumEpsilonStep", &G4FieldManager::SetMaximumEpsilonStep)
95 .def("DoesFieldChangeEnergy", &G4FieldManager::DoesFieldChangeEnergy)
96 .def("SetFieldChangesEnergy", &G4FieldManager::SetFieldChangesEnergy)
97 ;
98}
void SetAccuraciesWithDeltaOneStep(G4double valDeltaOneStep)
G4bool DoesFieldChangeEnergy() const
G4bool SetDetectorField(G4Field *detectorField, G4int failMode=0)
void CreateChordFinder(G4MagneticField *detectorMagField)
void SetFieldChangesEnergy(G4bool value)
void SetDeltaOneStep(G4double valueD1step)
void SetChordFinder(G4ChordFinder *aChordFinder)
virtual void ConfigureForTrack(const G4Track *)
G4double GetMinimumEpsilonStep() const
void SetMinimumEpsilonStep(G4double newEpsMin)
G4double GetMaximumEpsilonStep() const
G4double GetDeltaOneStep() const
const G4Field * GetDetectorField() const
void SetDeltaIntersection(G4double valueDintersection)
void SetMaximumEpsilonStep(G4double newEpsMax)
G4double GetDeltaIntersection() const
G4bool DoesFieldExist() const
G4ChordFinder *(G4FieldManager::* f1_GetChordFinder)()
const G4ChordFinder *(G4FieldManager::* f2_GetChordFinder)() const

References G4FieldManager::ConfigureForTrack(), G4FieldManager::CreateChordFinder(), G4FieldManager::DoesFieldChangeEnergy(), G4FieldManager::DoesFieldExist(), pyG4FieldManager::f1_GetChordFinder, pyG4FieldManager::f2_GetChordFinder, G4FieldManager::GetDeltaIntersection(), G4FieldManager::GetDeltaOneStep(), G4FieldManager::GetDetectorField(), G4FieldManager::GetMaximumEpsilonStep(), G4FieldManager::GetMinimumEpsilonStep(), G4FieldManager::SetAccuraciesWithDeltaOneStep(), G4FieldManager::SetChordFinder(), G4FieldManager::SetDeltaIntersection(), G4FieldManager::SetDeltaOneStep(), G4FieldManager::SetDetectorField(), G4FieldManager::SetFieldChangesEnergy(), G4FieldManager::SetMaximumEpsilonStep(), and G4FieldManager::SetMinimumEpsilonStep().

Referenced by BOOST_PYTHON_MODULE().

◆ export_G4GeometryManager()

void export_G4GeometryManager ( )

Definition at line 52 of file pyG4GeometryManager.cc.

53{
54 class_<G4GeometryManager, boost::noncopyable>
55 ("G4GeometryManager", "geometry manager", no_init)
56 .def("GetInstance", &G4GeometryManager::GetInstance,
57 return_value_policy<reference_existing_object>())
58 .staticmethod("GetInstance")
59 // ---
60 .def("CloseGeometry", &G4GeometryManager::CloseGeometry,
61 f_CloseGeometry())
62 .def("OpenGeometry", &G4GeometryManager::OpenGeometry,
63 f_OpenGeometry())
64 .def("IsGeometryClosed", &G4GeometryManager::IsGeometryClosed)
65 .def("SetWorldMaximumExtent", &G4GeometryManager::SetWorldMaximumExtent)
66 ;
67}
static G4bool IsGeometryClosed()
static G4GeometryManager * GetInstance()
G4bool CloseGeometry(G4bool pOptimise=true, G4bool verbose=false, G4VPhysicalVolume *vol=nullptr)
void SetWorldMaximumExtent(G4double worldExtent)
void OpenGeometry(G4VPhysicalVolume *vol=nullptr)

References G4GeometryManager::CloseGeometry(), G4GeometryManager::GetInstance(), G4GeometryManager::IsGeometryClosed(), G4GeometryManager::OpenGeometry(), and G4GeometryManager::SetWorldMaximumExtent().

Referenced by BOOST_PYTHON_MODULE().

◆ export_G4Hype()

void export_G4Hype ( )

Definition at line 61 of file pyG4Hype.cc.

62{
63 class_<G4Hype, G4Hype*, bases<G4VSolid> >
64 ("G4Hype", "hyperbolic solid class", no_init)
65 // constructors
66 .def(init<const G4String&, G4double, G4double, G4double,
68 // ---
69 .def("GetInnerRadius", &G4Hype::GetInnerRadius)
70 .def("GetOuterRadius", &G4Hype::GetOuterRadius)
71 .def("GetZHalfLength", &G4Hype::GetZHalfLength)
72 .def("GetInnerStereo", &G4Hype::GetInnerStereo)
73 .def("GetOuterStereo", &G4Hype::GetOuterStereo)
74 .def("SetInnerRadius", &G4Hype::SetInnerRadius)
75 .def("SetOuterRadius", &G4Hype::SetOuterRadius)
76 .def("SetZHalfLength", &G4Hype::SetZHalfLength)
77 .def("SetInnerStereo", &G4Hype::SetInnerStereo)
78 .def("SetOuterStereo", &G4Hype::SetOuterStereo)
79 // operators
80 .def(self_ns::str(self))
81 ;
82
83 // Create solid
84 def("CreateHype", CreateHype, return_value_policy<manage_new_object>());
85
86}
void SetOuterStereo(G4double newOSte)
void SetOuterRadius(G4double newORad)
G4double GetInnerStereo() const
void SetZHalfLength(G4double newHLZ)
G4double GetZHalfLength() const
G4double GetOuterStereo() const
G4double GetOuterRadius() const
void SetInnerStereo(G4double newISte)
void SetInnerRadius(G4double newIRad)
G4double GetInnerRadius() const
G4Hype * CreateHype(const G4String &name, G4double newInnerRadius, G4double newOuterRadius, G4double newInnerStereo, G4double newOuterStereo, G4double newHalfLenZ)
Definition: pyG4Hype.cc:41

References pyG4Hype::CreateHype(), G4Hype::GetInnerRadius(), G4Hype::GetInnerStereo(), G4Hype::GetOuterRadius(), G4Hype::GetOuterStereo(), G4Hype::GetZHalfLength(), G4Hype::SetInnerRadius(), G4Hype::SetInnerStereo(), G4Hype::SetOuterRadius(), G4Hype::SetOuterStereo(), and G4Hype::SetZHalfLength().

Referenced by BOOST_PYTHON_MODULE().

◆ export_G4IntersectionSolid()

void export_G4IntersectionSolid ( )

Definition at line 39 of file pyG4IntersctionSolid.cc.

40{
42 bases<G4BooleanSolid>,boost::noncopyable>
43 ("G4IntersectionSolid", "intersection solid class", no_init)
44 // ---
45 .def(init<const G4String&, G4VSolid*, G4VSolid*>())
46 .def(init<const G4String&, G4VSolid*, G4VSolid*,
48 .def(init<const G4String&, G4VSolid*, G4VSolid*,
49 const G4Transform3D&>())
50 ;
51}

Referenced by BOOST_PYTHON_MODULE().

◆ export_G4LogicalVolume()

void export_G4LogicalVolume ( )

Definition at line 71 of file pyG4LogicalVolume.cc.

72{
73 class_<G4LogicalVolume, G4LogicalVolume*, boost::noncopyable>
74 ("G4LogicalVolume", "logical volume class", no_init)
75 // constructors
76 .def(init<G4VSolid*, G4Material*, const G4String& >())
77 .def(init<G4VSolid*, G4Material*, const G4String&,
78 G4FieldManager* >())
79 .def(init<G4VSolid*, G4Material*, const G4String&,
81 .def(init<G4VSolid*, G4Material*, const G4String&,
83 G4UserLimits* >())
84 .def(init<G4VSolid*, G4Material*, const G4String&,
86 G4UserLimits*, G4bool >())
87 // ---
88 .def("GetName", &G4LogicalVolume::GetName,
89 return_value_policy<reference_existing_object>())
90 .def("SetName", &G4LogicalVolume::SetName)
91 // ---
92 .def("GetNoDaughters", &G4LogicalVolume::GetNoDaughters)
93 .def("GetDaughter", &G4LogicalVolume::GetDaughter,
94 return_internal_reference<>())
95 .def("AddDaughter", &G4LogicalVolume::AddDaughter)
96 .def("IsDaughter", &G4LogicalVolume::IsDaughter)
97 .def("IsAncestor", &G4LogicalVolume::IsAncestor)
98 .def("RemoveDaughter", &G4LogicalVolume::RemoveDaughter)
99 .def("ClearDaughters", &G4LogicalVolume::ClearDaughters)
100 .def("TotalVolumeEntities", &G4LogicalVolume::TotalVolumeEntities)
101 // ----
102 .def("GetSolid", f1_GetSolid,
103 return_internal_reference<>())
104 .def("SetSolid", f1_SetSolid)
105 .def("GetMaterial", &G4LogicalVolume::GetMaterial,
106 return_internal_reference<>())
107 .def("SetMaterial", &G4LogicalVolume::SetMaterial)
108 .def("UpdateMaterial", &G4LogicalVolume::UpdateMaterial)
109 // ---
110 .def("GetMass", &G4LogicalVolume::GetMass, f_GetMass())
111 .def("GetFieldManager", &G4LogicalVolume::GetFieldManager,
112 return_internal_reference<>())
113 .def("SetFieldManager", &G4LogicalVolume::SetFieldManager)
114 .def("GetSensitiveDetector", &G4LogicalVolume::GetSensitiveDetector,
115 return_internal_reference<>())
116 .def("SetSensitiveDetector", &G4LogicalVolume::SetSensitiveDetector)
117 .def("GetUserLimits", &G4LogicalVolume::GetUserLimits,
118 return_internal_reference<>())
119 .def("SetUserLimits", &G4LogicalVolume::SetUserLimits)
120 // ---
121 .def("GetVoxelHeader", &G4LogicalVolume::GetVoxelHeader,
122 return_internal_reference<>())
123 .def("SetVoxelHeader", &G4LogicalVolume::SetVoxelHeader)
124 .def("GetSmartless", &G4LogicalVolume::GetSmartless)
125 .def("SetSmartless", &G4LogicalVolume::SetSmartless)
126 .def("IsToOptimise", &G4LogicalVolume::IsToOptimise)
127 .def("SetOptimisation", &G4LogicalVolume::SetOptimisation)
128 // ---
129 .def("IsRootRegion", &G4LogicalVolume::IsRootRegion)
130 .def("SetRegionRootFlag", &G4LogicalVolume::SetRegionRootFlag)
131 .def("IsRegion", &G4LogicalVolume::IsRegion)
132 .def("SetRegion", &G4LogicalVolume::SetRegion)
133 .def("GetRegion", &G4LogicalVolume::GetRegion,
134 return_internal_reference<>())
135 .def("PropagateRegion", &G4LogicalVolume::PropagateRegion)
136 .def("GetMaterialCutsCouple", &G4LogicalVolume::GetMaterialCutsCouple,
137 return_internal_reference<>())
138 .def("SetMaterialCutsCouple", &G4LogicalVolume::SetMaterialCutsCouple)
139 // ---
140 .def("GetVisAttributes", &G4LogicalVolume::GetVisAttributes,
141 return_internal_reference<>())
142 .def("SetVisAttributes", f1_SetVisAttributes)
143 .def("SetVisAttributes", f2_SetVisAttributes)
144 // ---
145 .def("GetFastSimulationManager",
147 return_internal_reference<>())
148 // ---
149 .def("SetBiasWeight", &G4LogicalVolume::SetBiasWeight)
150 .def("GetBiasWeight", &G4LogicalVolume::GetBiasWeight)
151 ;
152}
bool G4bool
Definition: G4Types.hh:86
void SetSmartless(G4double s)
G4double GetMass(G4bool forced=false, G4bool propagate=true, G4Material *parMaterial=nullptr)
const G4VisAttributes * GetVisAttributes() const
void SetName(const G4String &pName)
G4bool IsAncestor(const G4VPhysicalVolume *p) const
void SetFieldManager(G4FieldManager *pFieldMgr, G4bool forceToAllDaughters)
void AddDaughter(G4VPhysicalVolume *p)
void SetUserLimits(G4UserLimits *pULimits)
void SetVoxelHeader(G4SmartVoxelHeader *pVoxel)
G4VSensitiveDetector * GetSensitiveDetector() const
void RemoveDaughter(const G4VPhysicalVolume *p)
void SetRegionRootFlag(G4bool rreg)
void SetRegion(G4Region *reg)
size_t GetNoDaughters() const
G4FastSimulationManager * GetFastSimulationManager() const
G4bool IsRootRegion() const
G4Region * GetRegion() const
G4double GetBiasWeight() const
G4bool IsRegion() const
G4double GetSmartless() const
G4bool IsDaughter(const G4VPhysicalVolume *p) const
G4Material * GetMaterial() const
void PropagateRegion()
G4VPhysicalVolume * GetDaughter(const G4int i) const
G4UserLimits * GetUserLimits() const
G4FieldManager * GetFieldManager() const
G4int TotalVolumeEntities() const
void SetBiasWeight(G4double w)
G4bool IsToOptimise() const
const G4String & GetName() const
const G4MaterialCutsCouple * GetMaterialCutsCouple() const
void SetMaterial(G4Material *pMaterial)
G4SmartVoxelHeader * GetVoxelHeader() const
void SetSensitiveDetector(G4VSensitiveDetector *pSDetector)
void SetOptimisation(G4bool optim)
void SetMaterialCutsCouple(G4MaterialCutsCouple *cuts)
void UpdateMaterial(G4Material *pMaterial)
void(G4LogicalVolume::* f1_SetVisAttributes)(const G4VisAttributes *)
void(G4LogicalVolume::* f2_SetVisAttributes)(const G4VisAttributes &)
void(G4LogicalVolume::* f1_SetSolid)(G4VSolid *)
G4VSolid *(G4LogicalVolume::* f1_GetSolid)() const

References G4LogicalVolume::AddDaughter(), G4LogicalVolume::ClearDaughters(), pyG4LogicalVolume::f1_GetSolid, pyG4LogicalVolume::f1_SetSolid, pyG4LogicalVolume::f1_SetVisAttributes, pyG4LogicalVolume::f2_SetVisAttributes, G4LogicalVolume::GetBiasWeight(), G4LogicalVolume::GetDaughter(), G4LogicalVolume::GetFastSimulationManager(), G4LogicalVolume::GetFieldManager(), G4LogicalVolume::GetMass(), G4LogicalVolume::GetMaterial(), G4LogicalVolume::GetMaterialCutsCouple(), G4LogicalVolume::GetName(), G4LogicalVolume::GetNoDaughters(), G4LogicalVolume::GetRegion(), G4LogicalVolume::GetSensitiveDetector(), G4LogicalVolume::GetSmartless(), G4LogicalVolume::GetUserLimits(), G4LogicalVolume::GetVisAttributes(), G4LogicalVolume::GetVoxelHeader(), G4LogicalVolume::IsAncestor(), G4LogicalVolume::IsDaughter(), G4LogicalVolume::IsRegion(), G4LogicalVolume::IsRootRegion(), G4LogicalVolume::IsToOptimise(), G4LogicalVolume::PropagateRegion(), G4LogicalVolume::RemoveDaughter(), G4LogicalVolume::SetBiasWeight(), G4LogicalVolume::SetFieldManager(), G4LogicalVolume::SetMaterial(), G4LogicalVolume::SetMaterialCutsCouple(), G4LogicalVolume::SetName(), G4LogicalVolume::SetOptimisation(), G4LogicalVolume::SetRegion(), G4LogicalVolume::SetRegionRootFlag(), G4LogicalVolume::SetSensitiveDetector(), G4LogicalVolume::SetSmartless(), G4LogicalVolume::SetUserLimits(), G4LogicalVolume::SetVoxelHeader(), G4LogicalVolume::TotalVolumeEntities(), and G4LogicalVolume::UpdateMaterial().

Referenced by BOOST_PYTHON_MODULE().

◆ export_G4MagneticField()

void export_G4MagneticField ( )

Definition at line 90 of file pyG4MagneticField.cc.

91{
92 class_<G4MagneticField, boost::noncopyable >
93 ("__G4MagneticField", "dummy class of magnetic field", no_init)
94 ;
95
96 class_<CB_PyG4MagneticField, boost::noncopyable,
97 bases<G4Field, G4MagneticField> >
98 ("G4MagneticField", "base class of magnetic field")
99 // ---
100 .def("DoesFieldChangeEnergy", &G4MagneticField::DoesFieldChangeEnergy)
101 .def("GetFieldValue", pure_virtual(f1_GetFieldValue))
102 ;
103}
G4bool DoesFieldChangeEnergy() const
G4ThreeVector(PyG4MagneticField::* f1_GetFieldValue)(const G4ThreeVector &, const G4double) const

References G4MagneticField::DoesFieldChangeEnergy(), and pyG4MagneticField::f1_GetFieldValue.

Referenced by BOOST_PYTHON_MODULE().

◆ export_G4Navigator()

void export_G4Navigator ( )

Definition at line 41 of file pyG4Navigator.cc.

42{
43 class_<G4Navigator, G4Navigator*, boost::noncopyable>
44 ("G4Navigator", "navigator")
45 // ---
46 .def("GetWorldVolume", &G4Navigator::GetWorldVolume,
47 return_value_policy<reference_existing_object>())
48 .def("GetVerboseLevel", &G4Navigator::GetVerboseLevel)
49 .def("SetVerboseLevel", &G4Navigator::SetVerboseLevel)
50 .def("IsActive", &G4Navigator::IsActive)
51 .def("PrintState", &G4Navigator::PrintState)
52 ;
53}
void SetVerboseLevel(G4int level)
G4int GetVerboseLevel() const
G4bool IsActive() const
void PrintState() const
G4VPhysicalVolume * GetWorldVolume() const

References G4Navigator::GetVerboseLevel(), G4Navigator::GetWorldVolume(), G4Navigator::IsActive(), G4Navigator::PrintState(), and G4Navigator::SetVerboseLevel().

Referenced by BOOST_PYTHON_MODULE().

◆ export_G4Orb()

void export_G4Orb ( )

Definition at line 53 of file pyG4Orb.cc.

54{
55 class_<G4Orb, G4Orb*, bases<G4VSolid> >
56 ("G4Orb", "Orb solid class", no_init)
57 // constructors
58 .def(init<const G4String&, G4double>())
59 // ---
60 .def("GetRadius", &G4Orb::GetRadius)
61 .def("SetRadius", &G4Orb::SetRadius)
62 // operators
63 .def(self_ns::str(self))
64 ;
65
66 // Create solid
67 def("CreateOrb", CreateOrb, return_value_policy<manage_new_object>());
68
69}
void SetRadius(G4double newRmax)
G4double GetRadius() const
G4Orb * CreateOrb(const G4String &name, G4double pRmax)
Definition: pyG4Orb.cc:41

References pyG4Orb::CreateOrb(), G4Orb::GetRadius(), and G4Orb::SetRadius().

Referenced by BOOST_PYTHON_MODULE().

◆ export_G4Para()

void export_G4Para ( )

Definition at line 55 of file pyG4Para.cc.

56{
57 class_<G4Para, G4Para*, bases<G4VSolid> >
58 ("G4Para", "Skewed box sold class", no_init)
59 // constructors
60 .def(init<const G4String&, G4double, G4double, G4double,
62 // ---
63 .def("GetZHalfLength", &G4Para::GetZHalfLength)
64 .def("GetSymAxis", &G4Para::GetSymAxis)
65 .def("GetYHalfLength", &G4Para::GetYHalfLength)
66 .def("GetXHalfLength", &G4Para::GetXHalfLength)
67 .def("GetTanAlpha", &G4Para::GetTanAlpha)
68 .def("SetXHalfLength", &G4Para::SetXHalfLength)
69 .def("SetYHalfLength", &G4Para::SetYHalfLength)
70 .def("SetZHalfLength", &G4Para::SetZHalfLength)
71 .def("SetAlpha", &G4Para::SetAlpha)
72 .def("SetTanAlpha", &G4Para::SetTanAlpha)
73 .def("SetThetaAndPhi", &G4Para::SetThetaAndPhi)
74 .def("SetAllParameters", &G4Para::SetAllParameters)
75 // operators
76 .def(self_ns::str(self))
77 ;
78
79 // Create solid
80 def("CreatePara", CreatePara, return_value_policy<manage_new_object>());
81}
void SetYHalfLength(G4double val)
void SetTanAlpha(G4double val)
G4double GetTanAlpha() const
void SetThetaAndPhi(double pTheta, double pPhi)
void SetZHalfLength(G4double val)
G4ThreeVector GetSymAxis() const
void SetXHalfLength(G4double val)
void SetAllParameters(G4double pDx, G4double pDy, G4double pDz, G4double pAlpha, G4double pTheta, G4double pPhi)
Definition: G4Para.cc:185
G4double GetYHalfLength() const
G4double GetZHalfLength() const
void SetAlpha(G4double alpha)
G4double GetXHalfLength() const
G4Para * CreatePara(const G4String &name, G4double pDx, G4double pDy, G4double pDz, G4double pAlpha, G4double pTheta, G4double pPhi)
Definition: pyG4Para.cc:41

References pyG4Para::CreatePara(), G4Para::GetSymAxis(), G4Para::GetTanAlpha(), G4Para::GetXHalfLength(), G4Para::GetYHalfLength(), G4Para::GetZHalfLength(), G4Para::SetAllParameters(), G4Para::SetAlpha(), G4Para::SetTanAlpha(), G4Para::SetThetaAndPhi(), G4Para::SetXHalfLength(), G4Para::SetYHalfLength(), and G4Para::SetZHalfLength().

Referenced by BOOST_PYTHON_MODULE().

◆ export_G4Polycone()

void export_G4Polycone ( )

Definition at line 91 of file pyG4Polycone.cc.

92{
93 class_<G4Polycone, G4Polycone*, bases<G4VSolid> >
94 ("G4Polycone", "Polycone solid class", no_init)
95 // ---
96 .def("GetStartPhi", &G4Polycone::GetStartPhi)
97 .def("GetEndPhi", &G4Polycone::GetEndPhi)
98 .def("IsOpen", &G4Polycone::IsOpen)
99 .def("GetNumRZCorner", &G4Polycone::GetNumRZCorner)
100
101 // operators
102 .def(self_ns::str(self))
103 ;
104
105 // Create solid
106 def("CreatePolycone", f1_CreatePolycone,
107 return_value_policy<manage_new_object>());
108 def("CreatePolycone", f2_CreatePolycone,
109 return_value_policy<manage_new_object>());
110
111}
G4double GetEndPhi() const
G4double GetStartPhi() const
G4bool IsOpen() const
G4int GetNumRZCorner() const
G4Polycone * f1_CreatePolycone(const G4String &name, G4double phiStart, G4double phiTotal, G4int numZPlanes, const std::vector< G4double > &zPlane, const std::vector< G4double > &rInner, const std::vector< G4double > &rOuter)
Definition: pyG4Polycone.cc:44
G4Polycone * f2_CreatePolycone(const G4String &name, G4double phiStart, G4double phiTotal, G4int numRZ, const std::vector< G4double > &r, const std::vector< G4double > &z)
Definition: pyG4Polycone.cc:65

References pyG4Polycone::f1_CreatePolycone(), pyG4Polycone::f2_CreatePolycone(), G4Polycone::GetEndPhi(), G4Polycone::GetNumRZCorner(), G4Polycone::GetStartPhi(), and G4Polycone::IsOpen().

Referenced by BOOST_PYTHON_MODULE().

◆ export_G4Polyhedra()

void export_G4Polyhedra ( )

Definition at line 92 of file pyG4Polyhedra.cc.

93{
94 class_<G4Polyhedra, G4Polyhedra*, bases<G4VSolid> >
95 ("G4Polyhedra", "Polyhedra solid class", no_init)
96 // ---
97 .def("GetStartPhi", &G4Polyhedra::GetStartPhi)
98 .def("GetEndPhi", &G4Polyhedra::GetEndPhi)
99 .def("GetNumSide", &G4Polyhedra::GetNumSide)
100 .def("GetNumRZCorner", &G4Polyhedra::GetNumRZCorner)
101 .def("IsOpen", &G4Polyhedra::IsOpen)
102 .def("IsGeneric", &G4Polyhedra::IsGeneric)
103
104 // operators
105 .def(self_ns::str(self))
106 ;
107
108 // Create solid
109 def("CreatePolyhedra", f1_CreatePolyhedra,
110 return_value_policy<manage_new_object>());
111 def("CreatePolyhedra", f2_CreatePolyhedra,
112 return_value_policy<manage_new_object>());
113}
G4int GetNumRZCorner() const
G4bool IsOpen() const
G4double GetEndPhi() const
G4int GetNumSide() const
G4double GetStartPhi() const
G4bool IsGeneric() const
G4Polyhedra * f1_CreatePolyhedra(const G4String &name, G4double phiStart, G4double phiTotal, G4int numSide, G4int numZPlanes, const std::vector< G4double > &zPlane, const std::vector< G4double > &rInner, const std::vector< G4double > &rOuter)
G4Polyhedra * f2_CreatePolyhedra(const G4String &name, G4double phiStart, G4double phiTotal, G4int numSide, G4int numRZ, const std::vector< G4double > &r, const std::vector< G4double > &z)

References pyG4Polyhedra::f1_CreatePolyhedra(), pyG4Polyhedra::f2_CreatePolyhedra(), G4Polyhedra::GetEndPhi(), G4Polyhedra::GetNumRZCorner(), G4Polyhedra::GetNumSide(), G4Polyhedra::GetStartPhi(), G4Polyhedra::IsGeneric(), and G4Polyhedra::IsOpen().

Referenced by BOOST_PYTHON_MODULE().

◆ export_G4PVPlacement()

void export_G4PVPlacement ( )

Definition at line 53 of file pyG4PVPlacement.cc.

54{
55 class_<G4PVPlacement, G4PVPlacement*, bases<G4VPhysicalVolume>,
56 boost::noncopyable >
57 ("G4PVPlacement", "physical volume placement", no_init)
58 // ---
59 .def(init<G4RotationMatrix*, const G4ThreeVector&,
62 .def(init<const G4Transform3D&, G4LogicalVolume*,
64 .def(init<G4RotationMatrix*, const G4ThreeVector&,
67 .def(init<const G4Transform3D&, const G4String&,
69#if G4VERSION_NUMBER >=800
70 .def(init<G4RotationMatrix*, const G4ThreeVector&,
73 .def(init<const G4Transform3D&, G4LogicalVolume*,
75 .def(init<G4RotationMatrix*, const G4ThreeVector&,
78 .def(init<const G4Transform3D&, const G4String&,
80#endif
81 // ---
82#if G4VERSION_NUMBER >=800
83 .def("CheckOverlaps", &G4PVPlacement::CheckOverlaps, f_CheckOverlaps())
84#endif
85 ;
86}
int G4int
Definition: G4Types.hh:85
#define G4VERSION_NUMBER
Definition: G4Version.hh:43
G4bool CheckOverlaps(G4int res=1000, G4double tol=0., G4bool verbose=true, G4int maxErr=1)

References G4PVPlacement::CheckOverlaps(), and G4VERSION_NUMBER.

Referenced by BOOST_PYTHON_MODULE().

◆ export_G4PVReplica()

void export_G4PVReplica ( )

Definition at line 40 of file pyG4PVReplica.cc.

41{
42 class_<G4PVReplica, G4PVReplica*, bases<G4VPhysicalVolume>,
43 boost::noncopyable >
44 ("G4PVReplica", "physical volume placement with replication", no_init)
45 // constructors
46 .def(init<const G4String&, G4LogicalVolume*, G4LogicalVolume*,
47 const EAxis, const G4int, const G4double>())
48 .def(init<const G4String&, G4LogicalVolume*, G4LogicalVolume*,
49 const EAxis, const G4int, const G4double, const G4double>())
50 .def(init<const G4String&, G4LogicalVolume*, G4VPhysicalVolume*,
51 const EAxis, const G4int, const G4double>())
52 .def(init<const G4String&, G4LogicalVolume*, G4VPhysicalVolume*,
53 const EAxis, const G4int, const G4double, const G4double>())
54 // ---
55 .def("GetMultiplicity", &G4PVReplica::GetMultiplicity)
56 ;
57}
virtual G4int GetMultiplicity() const
Definition: G4PVReplica.cc:297
EAxis
Definition: geomdefs.hh:54

References G4PVReplica::GetMultiplicity().

Referenced by BOOST_PYTHON_MODULE().

◆ export_G4Region()

void export_G4Region ( )

Definition at line 46 of file pyG4Region.cc.

47{
48 class_<G4Region, G4Region*, boost::noncopyable>
49 ("G4Region", "region class", no_init)
50 // constructors
51 .def(init<const G4String&>())
52 // ---
53 .def("AddRootLogicalVolume", &G4Region::AddRootLogicalVolume)
54 .def("RemoveRootLogicalVolume", &G4Region::RemoveRootLogicalVolume)
55 .def("SetName", &G4Region::SetName)
56 .def("GetName", &G4Region::GetName,
57 return_value_policy<return_by_value>())
58 .def("RegionModified", &G4Region::RegionModified)
59 .def("IsModified", &G4Region::IsModified)
60 .def("SetProductionCuts", &G4Region::SetProductionCuts)
61 .def("GetProductionCuts", &G4Region::GetProductionCuts,
62 return_internal_reference<>())
63 .def("GetNumberOfMaterials", &G4Region::GetNumberOfMaterials)
64 .def("GetNumberOfRootVolumes", &G4Region::GetNumberOfRootVolumes)
65 .def("UpdateMaterialList", &G4Region::UpdateMaterialList)
66 .def("ClearMaterialList", &G4Region::ClearMaterialList)
67 .def("ScanVolumeTree", &G4Region::ScanVolumeTree)
68 .def("SetUserInformation", &G4Region::SetUserInformation)
69 .def("GetUserInformation", &G4Region::GetUserInformation,
70 return_internal_reference<>())
71#if G4VERSION_NUMBER >= 710
72 .def("SetUserLimits", &G4Region::SetUserLimits)
73 .def("GetUserLimits", &G4Region::GetUserLimits,
74 return_internal_reference<>())
75#endif
76 .def("ClearMap", &G4Region::ClearMap)
77 .def("RegisterMaterialCouplePair", &G4Region::RegisterMaterialCouplePair)
78 .def("FindCouple", &G4Region::FindCouple,
79 return_value_policy<reference_existing_object>())
80#if G4VERSION_NUMBER >= 800
81 .def("SetFastSimulationManager", &G4Region::SetFastSimulationManager)
82 .def("GetFastSimulationManager", &G4Region::GetFastSimulationManager,
83 return_internal_reference<>())
84 .def("ClearFastSimulationManager", &G4Region::ClearFastSimulationManager)
85 .def("GetWorldPhysical", &G4Region::GetWorldPhysical,
86 return_internal_reference<>())
87 .def("SetWorld", &G4Region::SetWorld)
88 .def("BelongsTo", &G4Region::BelongsTo)
89 .def("GetParentRegion", &G4Region::GetParentRegion,
90 return_value_policy<reference_existing_object>())
91#endif
92 ;
93 }
G4bool IsModified() const
G4bool BelongsTo(G4VPhysicalVolume *thePhys) const
Definition: G4Region.cc:414
void ScanVolumeTree(G4LogicalVolume *lv, G4bool region)
Definition: G4Region.cc:172
void ClearMaterialList()
Definition: G4Region.cc:366
G4Region * GetParentRegion(G4bool &unique) const
Definition: G4Region.cc:469
G4FastSimulationManager * GetFastSimulationManager() const
Definition: G4Region.cc:140
G4VUserRegionInformation * GetUserInformation() const
void SetWorld(G4VPhysicalVolume *wp)
Definition: G4Region.cc:398
G4ProductionCuts * GetProductionCuts() const
void RemoveRootLogicalVolume(G4LogicalVolume *lv, G4bool scan=true)
Definition: G4Region.cc:328
G4MaterialCutsCouple * FindCouple(G4Material *mat)
void RegionModified(G4bool flag)
G4VPhysicalVolume * GetWorldPhysical() const
void SetProductionCuts(G4ProductionCuts *cut)
G4UserLimits * GetUserLimits() const
const G4String & GetName() const
void UpdateMaterialList()
Definition: G4Region.cc:377
void SetFastSimulationManager(G4FastSimulationManager *fsm)
Definition: G4Region.cc:131
void ClearMap()
void SetUserInformation(G4VUserRegionInformation *ui)
void SetName(const G4String &name)
Definition: G4Region.cc:121
size_t GetNumberOfRootVolumes() const
size_t GetNumberOfMaterials() const
void ClearFastSimulationManager()
Definition: G4Region.cc:434
void RegisterMaterialCouplePair(G4Material *mat, G4MaterialCutsCouple *couple)
void SetUserLimits(G4UserLimits *ul)
void AddRootLogicalVolume(G4LogicalVolume *lv, G4bool search=true)
Definition: G4Region.cc:293

References G4Region::AddRootLogicalVolume(), G4Region::BelongsTo(), G4Region::ClearFastSimulationManager(), G4Region::ClearMap(), G4Region::ClearMaterialList(), G4Region::FindCouple(), G4Region::GetFastSimulationManager(), G4Region::GetName(), G4Region::GetNumberOfMaterials(), G4Region::GetNumberOfRootVolumes(), G4Region::GetParentRegion(), G4Region::GetProductionCuts(), G4Region::GetUserInformation(), G4Region::GetUserLimits(), G4Region::GetWorldPhysical(), G4Region::IsModified(), G4Region::RegionModified(), G4Region::RegisterMaterialCouplePair(), G4Region::RemoveRootLogicalVolume(), G4Region::ScanVolumeTree(), G4Region::SetFastSimulationManager(), G4Region::SetName(), G4Region::SetProductionCuts(), G4Region::SetUserInformation(), G4Region::SetUserLimits(), G4Region::SetWorld(), and G4Region::UpdateMaterialList().

Referenced by BOOST_PYTHON_MODULE().

◆ export_G4Sphere()

void export_G4Sphere ( )

Definition at line 56 of file pyG4Sphere.cc.

57{
58 class_<G4Sphere, G4Sphere*, bases<G4VSolid> >
59 ("G4Sphere", "Sphere solid class", no_init)
60 // constructors
61 .def(init<const G4String&, G4double, G4double, G4double,
63 // ---
64 .def("GetOuterRadius", &G4Sphere::GetOuterRadius)
65 .def("GetStartPhiAngle", &G4Sphere::GetStartPhiAngle)
66 .def("GetDeltaPhiAngle", &G4Sphere::GetDeltaPhiAngle)
67 .def("GetStartThetaAngle", &G4Sphere::GetStartThetaAngle)
68 .def("GetDeltaThetaAngle", &G4Sphere::GetDeltaThetaAngle)
69 .def("SetOuterRadius", &G4Sphere::SetOuterRadius)
70 .def("SetStartPhiAngle", &G4Sphere::SetStartPhiAngle)
71 .def("SetDeltaPhiAngle", &G4Sphere::SetDeltaPhiAngle)
72 .def("SetStartThetaAngle", &G4Sphere::SetStartThetaAngle)
73 .def("SetDeltaThetaAngle", &G4Sphere::SetDeltaThetaAngle)
74 // operators
75 .def(self_ns::str(self))
76 ;
77
78 // Create solid
79 def("CreateSphere", CreateSphere, return_value_policy<manage_new_object>());
80
81}
G4double GetStartPhiAngle() const
void SetDeltaPhiAngle(G4double newDphi)
void SetStartThetaAngle(G4double newSTheta)
G4double GetDeltaPhiAngle() const
void SetOuterRadius(G4double newRmax)
void SetDeltaThetaAngle(G4double newDTheta)
G4double GetOuterRadius() const
G4double GetDeltaThetaAngle() const
G4double GetStartThetaAngle() const
void SetStartPhiAngle(G4double newSphi, G4bool trig=true)
G4Sphere * CreateSphere(const G4String &name, G4double pRmin, G4double pRmax, G4double pSPhi, G4double pDPhi, G4double pSTheta, G4double pDTheta)
Definition: pyG4Sphere.cc:41

References pyG4Sphere::CreateSphere(), G4Sphere::GetDeltaPhiAngle(), G4Sphere::GetDeltaThetaAngle(), G4Sphere::GetOuterRadius(), G4Sphere::GetStartPhiAngle(), G4Sphere::GetStartThetaAngle(), G4Sphere::SetDeltaPhiAngle(), G4Sphere::SetDeltaThetaAngle(), G4Sphere::SetOuterRadius(), G4Sphere::SetStartPhiAngle(), and G4Sphere::SetStartThetaAngle().

Referenced by BOOST_PYTHON_MODULE().

◆ export_G4SubtractionSolid()

void export_G4SubtractionSolid ( )

Definition at line 39 of file pyG4SubtractionSolid.cc.

40{
42 bases<G4BooleanSolid>,boost::noncopyable>
43 ("G4SubtractionSolid", "subtraction solid class", no_init)
44 // ---
45 .def(init<const G4String&, G4VSolid*, G4VSolid*>())
46 .def(init<const G4String&, G4VSolid*, G4VSolid*,
48 .def(init<const G4String&, G4VSolid*, G4VSolid*,
49 const G4Transform3D&>())
50 ;
51
52}

Referenced by BOOST_PYTHON_MODULE().

◆ export_G4Tet()

void export_G4Tet ( )

Definition at line 54 of file pyG4Tet.cc.

55{
56 class_<G4Tet, G4Tet*, bases<G4VSolid> >
57 ("G4Tet", "tetrahedra solid class", no_init)
58 // constructors
61 // operators
62 .def(self_ns::str(self))
63 ;
64
65 // Create solid
66 def("CreateTet", CreateTet, return_value_policy<manage_new_object>());
67
68}
G4Tet * CreateTet(const G4String &name, G4ThreeVector anchor, G4ThreeVector p2, G4ThreeVector p3, G4ThreeVector p4)
Definition: pyG4Tet.cc:41

References pyG4Tet::CreateTet().

Referenced by BOOST_PYTHON_MODULE().

◆ export_G4Torus()

void export_G4Torus ( )

Definition at line 54 of file pyG4Torus.cc.

55{
56 class_<G4Torus, G4Torus*, bases<G4VSolid> >
57 ("G4Torus", "Torus solid class", no_init)
58 // constructors
59 .def(init<const G4String&, G4double, G4double, G4double,
61 // ---
62 .def("GetRmin", &G4Torus::GetRmin)
63 .def("GetRmax", &G4Torus::GetRmax)
64 .def("GetRtor", &G4Torus::GetRtor)
65 .def("GetSPhi", &G4Torus::GetSPhi)
66 .def("GetDPhi", &G4Torus::GetDPhi)
67 // operators
68 .def(self_ns::str(self))
69 ;
70
71 // Create solid
72 def("CreateTorus", CreateTorus, return_value_policy<manage_new_object>());
73}
G4double GetDPhi() const
G4double GetRmin() const
G4double GetRtor() const
G4double GetRmax() const
G4double GetSPhi() const
G4Torus * CreateTorus(const G4String &name, G4double pRmin, G4double pRmax, G4double pRtor, G4double pSPhi, G4double pDPhi)
Definition: pyG4Torus.cc:41

References pyG4Torus::CreateTorus(), G4Torus::GetDPhi(), G4Torus::GetRmax(), G4Torus::GetRmin(), G4Torus::GetRtor(), and G4Torus::GetSPhi().

Referenced by BOOST_PYTHON_MODULE().

◆ export_G4TouchableHistory()

void export_G4TouchableHistory ( )

Definition at line 39 of file pyG4TouchableHistory.cc.

40{
41 class_<G4TouchableHistory, G4TouchableHistory*, bases<G4VTouchable> >
42 ("G4TouchableHistory", "touchable history class")
43 ;
44}

Referenced by BOOST_PYTHON_MODULE().

◆ export_G4TransportationManager()

void export_G4TransportationManager ( )

Definition at line 41 of file pyG4TransportationManager.cc.

42{
43 class_<G4TransportationManager, boost::noncopyable>
44 ("G4TransportationManager", "manager class for transportation", no_init)
45 // ---
46 .def("GetTransportationManager",
48 return_value_policy<reference_existing_object>())
49 .staticmethod("GetTransportationManager")
50 .def("GetNavigatorForTracking",
52 return_internal_reference<>())
53 .def("GetPropagatorInField",
55 return_internal_reference<>())
56 .def("GetFieldManager",
58 return_internal_reference<>())
59 .def("SetNavigatorForTracking",
61 .def("SetPropagatorInField",
63 .def("SetFieldManager",
65 ;
66}
static G4TransportationManager * GetTransportationManager()
void SetFieldManager(G4FieldManager *newFieldManager)
G4PropagatorInField * GetPropagatorInField() const
void SetPropagatorInField(G4PropagatorInField *newFieldPropagator)
G4Navigator * GetNavigatorForTracking() const
G4FieldManager * GetFieldManager() const
void SetNavigatorForTracking(G4Navigator *newNavigator)

References G4TransportationManager::GetFieldManager(), G4TransportationManager::GetNavigatorForTracking(), G4TransportationManager::GetPropagatorInField(), G4TransportationManager::GetTransportationManager(), G4TransportationManager::SetFieldManager(), G4TransportationManager::SetNavigatorForTracking(), and G4TransportationManager::SetPropagatorInField().

Referenced by BOOST_PYTHON_MODULE().

◆ export_G4Trap()

void export_G4Trap ( )

Definition at line 101 of file pyG4Trap.cc.

102{
103 class_<G4Trap, G4Trap*, bases<G4VSolid> >
104 ("G4Trap", "Generic trapezoild soild class", no_init)
105 // constructors
106 .def(init<const G4String&>())
107 .def(init<const G4String&, G4double, G4double, G4double, G4double>())
108 .def(init<const G4String&, G4double, G4double, G4double,
109 G4double, G4double>())
110 .def(init<const G4String&, G4double, G4double, G4double,
112 .def(init<const G4String&, G4double, G4double, G4double,
115 // ---
116 .def("GetZHalfLength", &G4Trap::GetZHalfLength)
117 .def("GetYHalfLength1", &G4Trap::GetYHalfLength1)
118 .def("GetXHalfLength1", &G4Trap::GetXHalfLength1)
119 .def("GetXHalfLength2", &G4Trap::GetXHalfLength2)
120 .def("GetTanAlpha1", &G4Trap::GetTanAlpha1)
121 .def("GetYHalfLength2", &G4Trap::GetYHalfLength2)
122 .def("GetXHalfLength3", &G4Trap::GetXHalfLength3)
123 .def("GetXHalfLength4", &G4Trap::GetXHalfLength4)
124 .def("GetTanAlpha2", &G4Trap::GetTanAlpha2)
125 .def("GetSidePlane", &G4Trap::GetSidePlane)
126 .def("GetSymAxis", &G4Trap::GetSymAxis)
127 .def("SetAllParameters", &G4Trap::SetAllParameters)
128 // operators
129 .def(self_ns::str(self))
130 ;
131
132 // Create solid
133 def("CreateTrap", f1_CreateTrap, return_value_policy<manage_new_object>());
134 def("CreateTrap", f2_CreateTrap, return_value_policy<manage_new_object>());
135 def("CreateTrap", f3_CreateTrap, return_value_policy<manage_new_object>());
136 def("CreateTrap", f4_CreateTrap, return_value_policy<manage_new_object>());
137 def("CreateTrap", f5_CreateTrap, return_value_policy<manage_new_object>());
138 def("CreateTrap", f6_CreateTrap, return_value_policy<manage_new_object>());
139
140}
G4double GetYHalfLength1() const
void SetAllParameters(G4double pDz, G4double pTheta, G4double pPhi, G4double pDy1, G4double pDx1, G4double pDx2, G4double pAlp1, G4double pDy2, G4double pDx3, G4double pDx4, G4double pAlp2)
Definition: G4Trap.cc:282
G4double GetTanAlpha2() const
G4double GetXHalfLength2() const
G4ThreeVector GetSymAxis() const
G4double GetXHalfLength4() const
G4double GetZHalfLength() const
G4double GetYHalfLength2() const
G4double GetTanAlpha1() const
TrapSidePlane GetSidePlane(G4int n) const
G4double GetXHalfLength3() const
G4double GetXHalfLength1() const
G4Trap * f3_CreateTrap(const G4String &name, const std::vector< G4ThreeVector > &pt)
Definition: pyG4Trap.cc:61
G4Trap * f6_CreateTrap(const G4String &name, G4double pDx, G4double pDy, G4double pDz, G4double pAlpha, G4double pTheta, G4double pPhi)
Definition: pyG4Trap.cc:87
G4Trap * f5_CreateTrap(const G4String &name, G4double pDx1, G4double pDx2, G4double pDy1, G4double pDy2, G4double pDz)
Definition: pyG4Trap.cc:80
G4Trap * f4_CreateTrap(const G4String &name, G4double pZ, G4double pY, G4double pX, G4double pLTX)
Definition: pyG4Trap.cc:73
G4Trap * f1_CreateTrap(const G4String &name)
Definition: pyG4Trap.cc:41
G4Trap * f2_CreateTrap(const G4String &name, G4double pDz, G4double pTheta, G4double pPhi, G4double pDy1, G4double pDx1, G4double pDx2, G4double pAlp1, G4double pDy2, G4double pDx3, G4double pDx4, G4double pAlp2)
Definition: pyG4Trap.cc:47

References pyG4Trap::f1_CreateTrap(), pyG4Trap::f2_CreateTrap(), pyG4Trap::f3_CreateTrap(), pyG4Trap::f4_CreateTrap(), pyG4Trap::f5_CreateTrap(), pyG4Trap::f6_CreateTrap(), G4Trap::GetSidePlane(), G4Trap::GetSymAxis(), G4Trap::GetTanAlpha1(), G4Trap::GetTanAlpha2(), G4Trap::GetXHalfLength1(), G4Trap::GetXHalfLength2(), G4Trap::GetXHalfLength3(), G4Trap::GetXHalfLength4(), G4Trap::GetYHalfLength1(), G4Trap::GetYHalfLength2(), G4Trap::GetZHalfLength(), and G4Trap::SetAllParameters().

Referenced by BOOST_PYTHON_MODULE().

◆ export_G4Trd()

void export_G4Trd ( )

Definition at line 54 of file pyG4Trd.cc.

55{
56 class_<G4Trd, G4Trd*, bases<G4VSolid> >
57 ("G4Trd", "Trapezoild solid class", no_init)
58 // constructors
59 .def(init<const G4String&, G4double, G4double, G4double,
61 // ---
62 .def("GetXHalfLength1", &G4Trd::GetXHalfLength1)
63 .def("GetXHalfLength2", &G4Trd::GetXHalfLength2)
64 .def("GetYHalfLength1", &G4Trd::GetYHalfLength1)
65 .def("GetYHalfLength2", &G4Trd::GetYHalfLength2)
66 .def("GetZHalfLength", &G4Trd::GetZHalfLength)
67 .def("SetXHalfLength1", &G4Trd::SetXHalfLength1)
68 .def("SetXHalfLength2", &G4Trd::SetXHalfLength2)
69 .def("SetYHalfLength1", &G4Trd::SetYHalfLength1)
70 .def("SetYHalfLength2", &G4Trd::SetYHalfLength2)
71 .def("SetZHalfLength", &G4Trd::SetZHalfLength)
72 // operators
73 .def(self_ns::str(self))
74 ;
75
76 // Create solid
77 def("CreateTrd", CreateTrd, return_value_policy<manage_new_object>());
78
79}
void SetYHalfLength2(G4double val)
G4double GetXHalfLength2() const
void SetXHalfLength1(G4double val)
void SetYHalfLength1(G4double val)
G4double GetYHalfLength2() const
void SetXHalfLength2(G4double val)
G4double GetXHalfLength1() const
G4double GetYHalfLength1() const
void SetZHalfLength(G4double val)
G4double GetZHalfLength() const
G4Trd * CreateTrd(const G4String &name, G4double pdx1, G4double pdx2, G4double pdy1, G4double pdy2, G4double pdz)
Definition: pyG4Trd.cc:41

References pyG4Trd::CreateTrd(), G4Trd::GetXHalfLength1(), G4Trd::GetXHalfLength2(), G4Trd::GetYHalfLength1(), G4Trd::GetYHalfLength2(), G4Trd::GetZHalfLength(), G4Trd::SetXHalfLength1(), G4Trd::SetXHalfLength2(), G4Trd::SetYHalfLength1(), G4Trd::SetYHalfLength2(), and G4Trd::SetZHalfLength().

Referenced by BOOST_PYTHON_MODULE().

◆ export_G4Tubs()

void export_G4Tubs ( )

Definition at line 54 of file pyG4Tubs.cc.

55{
56 class_<G4Tubs, G4Tubs*, bases<G4VSolid> >
57 ("G4Tubs", "Tube solid class", no_init)
58 // constructors
59 .def(init<const G4String&, G4double, G4double, G4double,
61 // ---
62 .def("GetInnerRadius", &G4Tubs::GetInnerRadius)
63 .def("GetOuterRadius", &G4Tubs::GetOuterRadius)
64 .def("GetZHalfLength", &G4Tubs::GetZHalfLength)
65 .def("GetStartPhiAngle", &G4Tubs::GetStartPhiAngle)
66 .def("GetDeltaPhiAngle", &G4Tubs::GetDeltaPhiAngle)
67 .def("SetInnerRadius", &G4Tubs::SetInnerRadius)
68 .def("SetOuterRadius", &G4Tubs::SetOuterRadius)
69 .def("SetZHalfLength", &G4Tubs::SetZHalfLength)
70 .def("SetStartPhiAngle", &G4Tubs::SetStartPhiAngle)
71 .def("SetDeltaPhiAngle", &G4Tubs::SetDeltaPhiAngle)
72 // operators
73 .def(self_ns::str(self))
74 ;
75
76 // Create solid
77 def("CreateTubs", CreateTubs, return_value_policy<manage_new_object>());
78
79}
G4double GetZHalfLength() const
void SetDeltaPhiAngle(G4double newDPhi)
void SetStartPhiAngle(G4double newSPhi, G4bool trig=true)
G4double GetInnerRadius() const
G4double GetOuterRadius() const
G4double GetStartPhiAngle() const
void SetInnerRadius(G4double newRMin)
void SetOuterRadius(G4double newRMax)
G4double GetDeltaPhiAngle() const
void SetZHalfLength(G4double newDz)
G4Tubs * CreateTubs(const G4String &name, G4double pRMin, G4double pRMax, G4double pDz, G4double pSPhi, G4double pDPhi)
Definition: pyG4Tubs.cc:41

References pyG4Tubs::CreateTubs(), G4Tubs::GetDeltaPhiAngle(), G4Tubs::GetInnerRadius(), G4Tubs::GetOuterRadius(), G4Tubs::GetStartPhiAngle(), G4Tubs::GetZHalfLength(), G4Tubs::SetDeltaPhiAngle(), G4Tubs::SetInnerRadius(), G4Tubs::SetOuterRadius(), G4Tubs::SetStartPhiAngle(), and G4Tubs::SetZHalfLength().

Referenced by BOOST_PYTHON_MODULE().

◆ export_G4TwistedBox()

void export_G4TwistedBox ( )

Definition at line 57 of file pyG4TwistedBox.cc.

58{
59 class_<G4TwistedBox, G4TwistedBox*, bases<G4VSolid> >
60 ("G4TwistedBox", "twisted box solid class", no_init)
61 // constructors
62 .def(init<const G4String&, G4double, G4double, G4double, G4double>())
63 // ---
64 .def("GetXHalfLength", &G4TwistedBox::GetXHalfLength)
65 .def("GetYHalfLength", &G4TwistedBox::GetYHalfLength)
66 .def("GetZHalfLength", &G4TwistedBox::GetZHalfLength)
67 .def("GetPhiTwist", &G4TwistedBox::GetPhiTwist)
68 // operators
69 .def(self_ns::str(self))
70 ;
71
72 // Create solid
73 def("CreateTwistedBox", CreateTwistedBox,
74 return_value_policy<manage_new_object>());
75
76}
G4double GetPhiTwist() const
Definition: G4TwistedBox.hh:65
G4double GetXHalfLength() const
Definition: G4TwistedBox.hh:62
G4double GetZHalfLength() const
Definition: G4TwistedBox.hh:64
G4double GetYHalfLength() const
Definition: G4TwistedBox.hh:63
G4TwistedBox * CreateTwistedBox(const G4String &name, G4double pPhiTwist, G4double pDx, G4double pDy, G4double pDz)

References pyG4TwistedBox::CreateTwistedBox(), G4TwistedBox::GetPhiTwist(), G4TwistedBox::GetXHalfLength(), G4TwistedBox::GetYHalfLength(), and G4TwistedBox::GetZHalfLength().

Referenced by BOOST_PYTHON_MODULE().

◆ export_G4TwistedTrap()

void export_G4TwistedTrap ( )

Definition at line 69 of file pyG4TwistedTrap.cc.

70{
71 class_<G4TwistedTrap, G4TwistedTrap*, bases<G4VSolid> >
72 ("G4TwistedTrap", "twisted trapezoid solid class", no_init)
73 // constructors
74 .def(init<const G4String&, G4double, G4double, G4double,
76 .def(init<const G4String&, G4double, G4double, G4double,
80 // operators
81 .def(self_ns::str(self))
82 ;
83
84 // Create solid
85 def("CreateTwistedTap", f1_CreateTwistedTrap,
86 return_value_policy<manage_new_object>());
87 def("CreateTwistedTap", f2_CreateTwistedTrap,
88 return_value_policy<manage_new_object>());
89
90}
G4TwistedTrap * f2_CreateTwistedTrap(const G4String &name, G4double pPhiTwist, G4double pDz, G4double pTheta, G4double pPhi, G4double pDy1, G4double pDx1, G4double pDx2, G4double pDy2, G4double pDx3, G4double pDx4, G4double pAlph)
G4TwistedTrap * f1_CreateTwistedTrap(const G4String &name, G4double pPhiTwist, G4double pDx1, G4double pDx2, G4double pDy, G4double pDz)

References pyG4TwistedTrap::f1_CreateTwistedTrap(), and pyG4TwistedTrap::f2_CreateTwistedTrap().

Referenced by BOOST_PYTHON_MODULE().

◆ export_G4TwistedTrd()

void export_G4TwistedTrd ( )

Definition at line 56 of file pyG4TwistedTrd.cc.

57{
58 class_<G4TwistedTrd, G4TwistedTrd*, bases<G4VSolid> >
59 ("G4TwistedTrd", "twisted trapezoid solid class", no_init)
60 // constructors
61 .def(init<const G4String&, G4double, G4double, G4double,
63 // ---
64 .def("GetX1HalfLength", &G4TwistedTrd::GetX1HalfLength)
65 .def("GetX2HalfLength", &G4TwistedTrd::GetX2HalfLength)
66 .def("GetY1HalfLength", &G4TwistedTrd::GetY1HalfLength)
67 .def("GetY2HalfLength", &G4TwistedTrd::GetY2HalfLength)
68 .def("GetZHalfLength", &G4TwistedTrd::GetZHalfLength)
69 .def("GetPhiTwist", &G4TwistedTrd::GetPhiTwist)
70 // operators
71 .def(self_ns::str(self))
72 ;
73
74 // Create solid
75 def("CreateTwistedTrd", CreateTwistedTrd,
76 return_value_policy<manage_new_object>());
77
78}
G4double GetX2HalfLength() const
Definition: G4TwistedTrd.hh:67
G4double GetY2HalfLength() const
Definition: G4TwistedTrd.hh:69
G4double GetY1HalfLength() const
Definition: G4TwistedTrd.hh:68
G4double GetZHalfLength() const
Definition: G4TwistedTrd.hh:70
G4double GetPhiTwist() const
Definition: G4TwistedTrd.hh:71
G4double GetX1HalfLength() const
Definition: G4TwistedTrd.hh:66
G4TwistedTrd * CreateTwistedTrd(const G4String &name, G4double pDx1, G4double pDx2, G4double pDy1, G4double pDy2, G4double pDz, G4double pPhiTwist)

References pyG4TwistedTrd::CreateTwistedTrd(), G4TwistedTrd::GetPhiTwist(), G4TwistedTrd::GetX1HalfLength(), G4TwistedTrd::GetX2HalfLength(), G4TwistedTrd::GetY1HalfLength(), G4TwistedTrd::GetY2HalfLength(), and G4TwistedTrd::GetZHalfLength().

Referenced by BOOST_PYTHON_MODULE().

◆ export_G4TwistedTubs()

void export_G4TwistedTubs ( )

Definition at line 112 of file pyG4TwistedTubs.cc.

113{
114 class_<G4TwistedTubs, G4TwistedTubs*, bases<G4VSolid> >
115 ("G4TwistedTubs", "twisted tube solid class", no_init)
116 // constructors
117 .def(init<const G4String&, G4double, G4double, G4double,
118 G4double, G4double>())
119 .def(init<const G4String&, G4double, G4double, G4double,
121 .def(init<const G4String&, G4double, G4double, G4double,
123 .def(init<const G4String&, G4double, G4double, G4double,
125 // ---
126 .def("GetDPhi", &G4TwistedTubs::GetDPhi)
127 .def("GetPhiTwist", &G4TwistedTubs::GetPhiTwist)
128 .def("GetInnerRadius", &G4TwistedTubs::GetInnerRadius)
129 .def("GetOuterRadius", &G4TwistedTubs::GetOuterRadius)
130 .def("GetInnerStereo", &G4TwistedTubs::GetInnerStereo)
131 .def("GetOuterStereo", &G4TwistedTubs::GetOuterStereo)
132 .def("GetZHalfLength", &G4TwistedTubs::GetZHalfLength)
133 .def("GetKappa", &G4TwistedTubs::GetKappa)
134 .def("GetTanInnerStereo", &G4TwistedTubs::GetTanInnerStereo)
135 .def("GetTanInnerStereo2", &G4TwistedTubs::GetTanInnerStereo2)
136 .def("GetTanOuterStereo", &G4TwistedTubs::GetTanOuterStereo)
137 .def("GetTanOuterStereo2", &G4TwistedTubs::GetTanOuterStereo2)
138 .def("GetEndZ", &G4TwistedTubs::GetEndZ)
139 .def("GetEndPhi", &G4TwistedTubs::GetEndPhi)
140 .def("GetEndInnerRadius", f1_GetEndInnerRadius)
141 .def("GetEndInnerRadius", f2_GetEndInnerRadius)
142 .def("GetEndOuterRadius", f1_GetEndOuterRadius)
143 .def("GetEndOuterRadius", f2_GetEndOuterRadius)
144 // operators
145 .def(self_ns::str(self))
146 ;
147
148 // Create solid
149 def("CreateTwistedTubs", f1_CreateTwistedTubs,
150 return_value_policy<manage_new_object>());
151 def("CreateTwistedTubs", f2_CreateTwistedTubs,
152 return_value_policy<manage_new_object>());
153 def("CreateTwistedTubs", f3_CreateTwistedTubs,
154 return_value_policy<manage_new_object>());
155 def("CreateTwistedTubs", f4_CreateTwistedTubs,
156 return_value_policy<manage_new_object>());
157
158}
G4double GetOuterRadius() const
G4double GetZHalfLength() const
G4double GetPhiTwist() const
G4double GetInnerStereo() const
G4double GetTanInnerStereo() const
G4double GetOuterStereo() const
G4double GetEndPhi(G4int i) const
G4double GetTanOuterStereo() const
G4double GetTanInnerStereo2() const
G4double GetTanOuterStereo2() const
G4double GetEndZ(G4int i) const
G4double GetKappa() const
G4double GetInnerRadius() const
G4double GetDPhi() const
G4double(G4TwistedTubs::* f2_GetEndInnerRadius)(G4int) const
G4TwistedTubs * f4_CreateTwistedTubs(const G4String &name, G4double twistedangle, G4double innerrad, G4double outerrad, G4double negativeEndz, G4double positiveEndz, G4int nseg, G4double totphi)
G4TwistedTubs * f2_CreateTwistedTubs(const G4String &name, G4double twistedangle, G4double endinnerrad, G4double endouterrad, G4double halfzlen, G4int nseg, G4double totphi)
G4TwistedTubs * f1_CreateTwistedTubs(const G4String &name, G4double twistedangle, G4double endinnerrad, G4double endouterrad, G4double halfzlen, G4double dphi)
G4double(G4TwistedTubs::* f1_GetEndInnerRadius)(G4int) const
G4TwistedTubs * f3_CreateTwistedTubs(const G4String &name, G4double twistedangle, G4double innerrad, G4double outerrad, G4double negativeEndz, G4double positiveEndz, G4double dphi)
G4double(G4TwistedTubs::* f1_GetEndOuterRadius)(G4int) const
G4double(G4TwistedTubs::* f2_GetEndOuterRadius)() const

References pyG4TwistedTubs::f1_CreateTwistedTubs(), pyG4TwistedTubs::f1_GetEndInnerRadius, pyG4TwistedTubs::f1_GetEndOuterRadius, pyG4TwistedTubs::f2_CreateTwistedTubs(), pyG4TwistedTubs::f2_GetEndInnerRadius, pyG4TwistedTubs::f2_GetEndOuterRadius, pyG4TwistedTubs::f3_CreateTwistedTubs(), pyG4TwistedTubs::f4_CreateTwistedTubs(), G4TwistedTubs::GetDPhi(), G4TwistedTubs::GetEndPhi(), G4TwistedTubs::GetEndZ(), G4TwistedTubs::GetInnerRadius(), G4TwistedTubs::GetInnerStereo(), G4TwistedTubs::GetKappa(), G4TwistedTubs::GetOuterRadius(), G4TwistedTubs::GetOuterStereo(), G4TwistedTubs::GetPhiTwist(), G4TwistedTubs::GetTanInnerStereo(), G4TwistedTubs::GetTanInnerStereo2(), G4TwistedTubs::GetTanOuterStereo(), G4TwistedTubs::GetTanOuterStereo2(), and G4TwistedTubs::GetZHalfLength().

Referenced by BOOST_PYTHON_MODULE().

◆ export_G4UniformMagField()

void export_G4UniformMagField ( )

Definition at line 39 of file pyG4UniformMagField.cc.

40{
42 bases<G4Field, G4MagneticField> >
43 ("G4UniformMagField", "uniform magnetic field", no_init)
44 // constructors
45 .def(init<const G4ThreeVector&>())
46 .def(init<const G4double, G4double, G4double>())
47 // ---
48 .def("SetFieldValue", &G4UniformMagField::SetFieldValue)
49 .def("GetConstantFieldValue", &G4UniformMagField::GetConstantFieldValue)
50 ;
51}
G4ThreeVector GetConstantFieldValue() const
void SetFieldValue(const G4ThreeVector &newFieldValue)

References G4UniformMagField::GetConstantFieldValue(), and G4UniformMagField::SetFieldValue().

Referenced by BOOST_PYTHON_MODULE().

◆ export_G4UnionSolid()

void export_G4UnionSolid ( )

Definition at line 39 of file pyG4UnionSolid.cc.

40{
42 bases<G4BooleanSolid>,boost::noncopyable>
43 ("G4UnionSolid", "union solid class", no_init)
44 // ---
45 .def(init<const G4String&, G4VSolid*, G4VSolid*>())
46 .def(init<const G4String&, G4VSolid*, G4VSolid*,
48 .def(init<const G4String&, G4VSolid*, G4VSolid*,
49 const G4Transform3D&>())
50 ;
51
52}

Referenced by BOOST_PYTHON_MODULE().

◆ export_G4VPhysicalVolume()

void export_G4VPhysicalVolume ( )

Definition at line 57 of file pyG4VPhysicalVolume.cc.

58{
59 class_<G4VPhysicalVolume, G4VPhysicalVolume*, boost::noncopyable>
60 ("G4VPhysicalVolume", "physical volume class", no_init)
61 // ---
62 .def("SetTranslation", &G4VPhysicalVolume::SetTranslation)
63 .def("GetTranslation", &G4VPhysicalVolume::GetTranslation,
64 return_value_policy<return_by_value>())
65 .def("GetObjectTranslation", &G4VPhysicalVolume::GetObjectTranslation)
66 .def("GetFrameTranslation", &G4VPhysicalVolume::GetObjectTranslation)
67 // ---
68 .def("SetRotation", &G4VPhysicalVolume::SetRotation)
69 .def("GetRotation", f1_GetRotation,
70 return_internal_reference<>())
71 .def("GetRotation", f2_GetRotation,
72 return_internal_reference<>())
73 .def("GetObjectRotationValue", &G4VPhysicalVolume::GetObjectRotationValue)
74 .def("GetFrameRotation", &G4VPhysicalVolume::GetFrameRotation,
75 return_internal_reference<>())
76 // ---
77 .def("SetLogicalVolume", &G4VPhysicalVolume::SetLogicalVolume)
78 .def("SetMotherLogical", &G4VPhysicalVolume::SetMotherLogical)
79 .def("GetLogicalVolume", &G4VPhysicalVolume::GetLogicalVolume,
80 return_internal_reference<>())
81 .def("GetMotherLogical", &G4VPhysicalVolume::GetMotherLogical,
82 return_internal_reference<>())
83 // ---
84 .def("SetName", &G4VPhysicalVolume::SetName)
85 .def("GetName", &G4VPhysicalVolume::GetName,
86 return_value_policy<return_by_value>())
87 .def("SetCopyNo", &G4VPhysicalVolume::SetCopyNo)
88 .def("GetCopyNo", &G4VPhysicalVolume::GetCopyNo)
89 // ---
90 .def("IsMany", &G4VPhysicalVolume::IsMany)
91 .def("IsReplicated", &G4VPhysicalVolume::IsReplicated)
92 .def("IsParameterised", &G4VPhysicalVolume::IsParameterised)
93 .def("GetMultiplicity", &G4VPhysicalVolume::GetMultiplicity)
94 .def("GetParameterisation", &G4VPhysicalVolume::GetParameterisation,
95 return_value_policy<reference_existing_object>())
96 ;
97}
G4LogicalVolume * GetMotherLogical() const
virtual G4bool IsReplicated() const =0
void SetLogicalVolume(G4LogicalVolume *pLogical)
virtual void SetCopyNo(G4int CopyNo)=0
const G4ThreeVector GetTranslation() const
G4LogicalVolume * GetLogicalVolume() const
G4RotationMatrix GetObjectRotationValue() const
virtual G4int GetMultiplicity() const
const G4RotationMatrix * GetFrameRotation() const
virtual G4int GetCopyNo() const =0
const G4String & GetName() const
virtual G4VPVParameterisation * GetParameterisation() const =0
virtual G4bool IsMany() const =0
void SetTranslation(const G4ThreeVector &v)
void SetRotation(G4RotationMatrix *)
G4ThreeVector GetObjectTranslation() const
virtual G4bool IsParameterised() const =0
void SetMotherLogical(G4LogicalVolume *pMother)
void SetName(const G4String &pName)
G4RotationMatrix *(G4VPhysicalVolume::* f2_GetRotation)()
const G4RotationMatrix *(G4VPhysicalVolume::* f1_GetRotation)() const

References pyG4VPhysicalVolume::f1_GetRotation, pyG4VPhysicalVolume::f2_GetRotation, G4VPhysicalVolume::GetCopyNo(), G4VPhysicalVolume::GetFrameRotation(), G4VPhysicalVolume::GetLogicalVolume(), G4VPhysicalVolume::GetMotherLogical(), G4VPhysicalVolume::GetMultiplicity(), G4VPhysicalVolume::GetName(), G4VPhysicalVolume::GetObjectRotationValue(), G4VPhysicalVolume::GetObjectTranslation(), G4VPhysicalVolume::GetParameterisation(), G4VPhysicalVolume::GetTranslation(), G4VPhysicalVolume::IsMany(), G4VPhysicalVolume::IsParameterised(), G4VPhysicalVolume::IsReplicated(), G4VPhysicalVolume::SetCopyNo(), G4VPhysicalVolume::SetLogicalVolume(), G4VPhysicalVolume::SetMotherLogical(), G4VPhysicalVolume::SetName(), G4VPhysicalVolume::SetRotation(), and G4VPhysicalVolume::SetTranslation().

Referenced by BOOST_PYTHON_MODULE().

◆ export_G4VSolid()

void export_G4VSolid ( )

Definition at line 40 of file pyG4VSolid.cc.

41{
42 class_<G4VSolid, G4VSolid*, boost::noncopyable>
43 ("G4VSolid", "solid class", no_init)
44 // ---
45 .def("GetName", &G4VSolid::GetName)
46 .def("SetName", &G4VSolid::SetName)
47 .def("DumpInfo", &G4VSolid::DumpInfo)
48
49 .def("GetCubicVolume", &G4VSolid::GetCubicVolume)
50#if G4VERSION_NUMBER >=820
51 .def("GetSurfaceArea", &G4VSolid::GetSurfaceArea)
52#endif
53#if G4VERSION_NUMBER >=800
54 .def("GetPointOnSurface", &G4VSolid::GetPointOnSurface)
55#endif
56 // operators
57 .def(self == self)
58 ;
59}
G4String GetName() const
void SetName(const G4String &name)
Definition: G4VSolid.cc:127
void DumpInfo() const
virtual G4ThreeVector GetPointOnSurface() const
Definition: G4VSolid.cc:152
virtual G4double GetCubicVolume()
Definition: G4VSolid.cc:188
virtual G4double GetSurfaceArea()
Definition: G4VSolid.cc:250

References G4VSolid::DumpInfo(), G4VSolid::GetCubicVolume(), G4VSolid::GetName(), G4VSolid::GetPointOnSurface(), G4VSolid::GetSurfaceArea(), and G4VSolid::SetName().

Referenced by BOOST_PYTHON_MODULE().

◆ export_G4VTouchable()

void export_G4VTouchable ( )

Definition at line 65 of file pyG4VTouchable.cc.

66{
67 class_<G4VTouchable, G4VTouchable*, boost::noncopyable>
68 ("G4VTouchable", "touchable class", no_init)
69 .def("GetTranslation", &G4VTouchable::GetTranslation,
70 f_GetTranslation()
71 [return_value_policy<return_by_value>()])
72 .def("GetRotation", &G4VTouchable::GetRotation,
73 f_GetRotation()
74 [return_value_policy<reference_existing_object>()])
75 .def("GetVolume", &G4VTouchable::GetVolume,
76 f_GetVolume()
77 [return_value_policy<reference_existing_object>()])
78 .def("GetSolid", &G4VTouchable::GetSolid,
79 f_GetSolid()
80 [return_value_policy<reference_existing_object>()])
81 .def("GetReplicaNumber", &G4VTouchable::GetReplicaNumber,
82 f_GetReplicaNumber())
83 .def("GetHistoryDepth", &G4VTouchable::GetHistoryDepth)
84 .def("MoveUpHistory", &G4VTouchable::MoveUpHistory,
85 f_MoveUpHistory())
86 ;
87}
virtual G4int MoveUpHistory(G4int num_levels=1)
Definition: G4VTouchable.cc:58
virtual const G4ThreeVector & GetTranslation(G4int depth=0) const =0
virtual G4VSolid * GetSolid(G4int depth=0) const
Definition: G4VTouchable.cc:42
virtual const G4RotationMatrix * GetRotation(G4int depth=0) const =0
virtual G4VPhysicalVolume * GetVolume(G4int depth=0) const
Definition: G4VTouchable.cc:34
virtual G4int GetHistoryDepth() const
Definition: G4VTouchable.cc:74
virtual G4int GetReplicaNumber(G4int depth=0) const
Definition: G4VTouchable.cc:50

References G4VTouchable::GetHistoryDepth(), G4VTouchable::GetReplicaNumber(), G4VTouchable::GetRotation(), G4VTouchable::GetSolid(), G4VTouchable::GetTranslation(), G4VTouchable::GetVolume(), and G4VTouchable::MoveUpHistory().

Referenced by BOOST_PYTHON_MODULE().