Geant4.10
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Functions
pymodG4geometry.cc File Reference
#include <boost/python.hpp>

Go to the source code of this file.

Functions

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

Function Documentation

BOOST_PYTHON_MODULE ( G4geometry  )

Definition at line 80 of file pymodG4geometry.cc.

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().

81 {
91  export_G4Box();
92  export_G4Cons();
93  export_G4Para();
95  export_G4Trd();
96  export_G4Orb();
98  export_G4Trap();
99  export_G4Tubs();
105  export_G4Hype();
106  export_G4Tet();
118  export_G4Field();
122 }
void export_G4FieldManager()
void export_G4VTouchable()
void export_G4Para()
Definition: pyG4Para.cc:56
void export_G4Box()
Definition: pyG4Box.cc:55
void export_G4Trap()
Definition: pyG4Trap.cc:102
void export_G4Torus()
Definition: pyG4Torus.cc:55
void export_G4EllipticalCone()
void export_G4TwistedBox()
void export_G4PVReplica()
void export_G4VPhysicalVolume()
void export_G4Field()
Definition: pyG4Field.cc:40
void export_G4Hype()
Definition: pyG4Hype.cc:62
void export_G4EllipticalTube()
void export_G4BooleanSolid()
void export_G4PVPlacement()
void export_G4Tet()
Definition: pyG4Tet.cc:55
void export_G4UnionSolid()
void export_G4TwistedTrap()
void export_G4ChordFinder()
void export_G4Orb()
Definition: pyG4Orb.cc:54
void export_G4LogicalVolume()
void export_G4Sphere()
Definition: pyG4Sphere.cc:57
void export_G4SubtractionSolid()
void export_G4Ellipsoid()
void export_G4TouchableHistory()
void export_G4Polyhedra()
void export_G4MagneticField()
void export_G4Tubs()
Definition: pyG4Tubs.cc:55
void export_G4VSolid()
Definition: pyG4VSolid.cc:41
void export_G4IntersectionSolid()
void export_G4Trd()
Definition: pyG4Trd.cc:55
void export_G4TwistedTrd()
void export_G4UniformMagField()
void export_G4GeometryManager()
void export_G4Polycone()
Definition: pyG4Polycone.cc:91
void export_G4Navigator()
void export_G4TwistedTubs()
void export_G4Region()
Definition: pyG4Region.cc:47
void export_G4TransportationManager()
void export_G4Cons()
Definition: pyG4Cons.cc:56
void export_G4BooleanSolid ( )

Definition at line 40 of file pyG4BooleanSolid.cc.

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().

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

Definition at line 55 of file pyG4Box.cc.

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

Referenced by BOOST_PYTHON_MODULE().

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

Definition at line 52 of file pyG4ChordFinder.cc.

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

Referenced by BOOST_PYTHON_MODULE().

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

Definition at line 56 of file pyG4Cons.cc.

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().

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

Definition at line 62 of file pyG4Ellipsoid.cc.

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

Referenced by BOOST_PYTHON_MODULE().

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

Definition at line 58 of file pyG4EllipticalCone.cc.

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

Referenced by BOOST_PYTHON_MODULE().

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

Definition at line 57 of file pyG4EllipticalTube.cc.

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

Referenced by BOOST_PYTHON_MODULE().

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

Definition at line 40 of file pyG4Field.cc.

Referenced by BOOST_PYTHON_MODULE().

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

Definition at line 70 of file pyG4FieldManager.cc.

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().

71 {
72  class_<G4FieldManager, G4FieldManager*, boost::noncopyable>
73  ("G4FieldManager", "field manager class")
74  // constructors
75  .def(init<>())
76  .def(init<G4Field*>())
77  .def(init<G4Field*, G4ChordFinder*>())
78  .def(init<G4Field*, G4ChordFinder*, G4bool>())
79  .def(init<G4MagneticField*>())
80  // ---
81  .def("SetDetectorField", &G4FieldManager::SetDetectorField)
82  .def("GetDetectorField", &G4FieldManager::GetDetectorField,
83  return_internal_reference<>())
84  .def("DoesFieldExist", &G4FieldManager::DoesFieldExist)
85  .def("CreateChordFinder", &G4FieldManager::CreateChordFinder)
86  .def("SetChordFinder", &G4FieldManager::SetChordFinder)
87  .def("GetChordFinder", f1_GetChordFinder,
88  return_internal_reference<>())
89  .def("GetChordFinder", f2_GetChordFinder,
90  return_internal_reference<>())
91  .def("ConfigureForTrack", &G4FieldManager::ConfigureForTrack)
92  .def("GetDeltaIntersection", &G4FieldManager::GetDeltaIntersection)
93  .def("GetDeltaOneStep", &G4FieldManager::GetDeltaOneStep)
94  .def("SetAccuraciesWithDeltaOneStep",
96  .def("SetDeltaOneStep", &G4FieldManager::SetDeltaOneStep)
97  .def("SetDeltaIntersection", &G4FieldManager::SetDeltaIntersection)
98  .def("GetMinimumEpsilonStep", &G4FieldManager::GetMinimumEpsilonStep)
99  .def("SetMinimumEpsilonStep", &G4FieldManager::SetMinimumEpsilonStep)
100  .def("GetMaximumEpsilonStep", &G4FieldManager::GetMaximumEpsilonStep)
101  .def("SetMaximumEpsilonStep", &G4FieldManager::SetMaximumEpsilonStep)
102  .def("DoesFieldChangeEnergy", &G4FieldManager::DoesFieldChangeEnergy)
103  .def("SetFieldChangesEnergy", &G4FieldManager::SetFieldChangesEnergy)
104  ;
105 }
const G4ChordFinder *(G4FieldManager::* f2_GetChordFinder)() const
G4bool SetDetectorField(G4Field *detectorField)
G4double GetDeltaOneStep() const
void SetChordFinder(G4ChordFinder *aChordFinder)
void SetAccuraciesWithDeltaOneStep(G4double valDeltaOneStep)
virtual void ConfigureForTrack(const G4Track *)
void SetMinimumEpsilonStep(G4double newEpsMin)
G4double GetMaximumEpsilonStep() const
G4bool DoesFieldExist() const
G4bool DoesFieldChangeEnergy() const
G4double GetDeltaIntersection() const
void SetDeltaIntersection(G4double valueDintersection)
void SetFieldChangesEnergy(G4bool value)
void SetMaximumEpsilonStep(G4double newEpsMax)
G4ChordFinder *(G4FieldManager::* f1_GetChordFinder)()
void CreateChordFinder(G4MagneticField *detectorMagField)
const G4Field * GetDetectorField() const
void SetDeltaOneStep(G4double valueD1step)
G4double GetMinimumEpsilonStep() const
void export_G4GeometryManager ( )

Definition at line 53 of file pyG4GeometryManager.cc.

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

Referenced by BOOST_PYTHON_MODULE().

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

Definition at line 62 of file pyG4Hype.cc.

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().

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

Definition at line 40 of file pyG4IntersctionSolid.cc.

Referenced by BOOST_PYTHON_MODULE().

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

Definition at line 72 of file pyG4LogicalVolume.cc.

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::SetSmartless(), G4LogicalVolume::SetUserLimits(), G4LogicalVolume::SetVoxelHeader(), G4LogicalVolume::TotalVolumeEntities(), and G4LogicalVolume::UpdateMaterial().

Referenced by BOOST_PYTHON_MODULE().

73 {
74  class_<G4LogicalVolume, G4LogicalVolume*, boost::noncopyable>
75  ("G4LogicalVolume", "logical volume class", no_init)
76  // constructors
77  .def(init<G4VSolid*, G4Material*, const G4String& >())
78  .def(init<G4VSolid*, G4Material*, const G4String&,
79  G4FieldManager* >())
80  .def(init<G4VSolid*, G4Material*, const G4String&,
82  .def(init<G4VSolid*, G4Material*, const G4String&,
84  G4UserLimits* >())
85  .def(init<G4VSolid*, G4Material*, const G4String&,
87  G4UserLimits*, G4bool >())
88  // ---
89  .def("GetName", &G4LogicalVolume::GetName)
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("GetUserLimits", &G4LogicalVolume::GetUserLimits,
117  return_internal_reference<>())
118  .def("SetUserLimits", &G4LogicalVolume::SetUserLimits)
119  // ---
120  .def("GetVoxelHeader", &G4LogicalVolume::GetVoxelHeader,
121  return_internal_reference<>())
122  .def("SetVoxelHeader", &G4LogicalVolume::SetVoxelHeader)
123  .def("GetSmartless", &G4LogicalVolume::GetSmartless)
124  .def("SetSmartless", &G4LogicalVolume::SetSmartless)
125  .def("IsToOptimise", &G4LogicalVolume::IsToOptimise)
126  .def("SetOptimisation", &G4LogicalVolume::SetOptimisation)
127  // ---
128  .def("IsRootRegion", &G4LogicalVolume::IsRootRegion)
129  .def("SetRegionRootFlag", &G4LogicalVolume::SetRegionRootFlag)
130  .def("IsRegion", &G4LogicalVolume::IsRegion)
131  .def("SetRegion", &G4LogicalVolume::SetRegion)
132  .def("GetRegion", &G4LogicalVolume::GetRegion,
133  return_internal_reference<>())
134  .def("PropagateRegion", &G4LogicalVolume::PropagateRegion)
135  .def("GetMaterialCutsCouple", &G4LogicalVolume::GetMaterialCutsCouple,
136  return_internal_reference<>())
137  .def("SetMaterialCutsCouple", &G4LogicalVolume::SetMaterialCutsCouple)
138  // ---
139  .def("GetVisAttributes", &G4LogicalVolume::GetVisAttributes,
140  return_internal_reference<>())
141  .def("SetVisAttributes", f1_SetVisAttributes)
142  .def("SetVisAttributes", f2_SetVisAttributes)
143  // ---
144  .def("GetFastSimulationManager",
146  return_internal_reference<>())
147  // ---
148  .def("SetBiasWeight", &G4LogicalVolume::SetBiasWeight)
149  .def("GetBiasWeight", &G4LogicalVolume::GetBiasWeight)
150  ;
151 }
G4SmartVoxelHeader * GetVoxelHeader() const
G4double GetSmartless() const
void ClearDaughters()
G4VSolid *(G4LogicalVolume::* f1_GetSolid)() const
void UpdateMaterial(G4Material *pMaterial)
G4String GetName() const
void SetRegionRootFlag(G4bool rreg)
void(G4LogicalVolume::* f1_SetSolid)(G4VSolid *)
G4bool IsAncestor(const G4VPhysicalVolume *p) const
G4Material * GetMaterial() const
void SetUserLimits(G4UserLimits *pULimits)
G4VPhysicalVolume * GetDaughter(const G4int i) const
G4Region * GetRegion() const
void SetFieldManager(G4FieldManager *pFieldMgr, G4bool forceToAllDaughters)
void SetVoxelHeader(G4SmartVoxelHeader *pVoxel)
void SetRegion(G4Region *reg)
G4double GetBiasWeight() const
G4FieldManager * GetFieldManager() const
bool G4bool
Definition: G4Types.hh:79
void SetOptimisation(G4bool optim)
G4FastSimulationManager * GetFastSimulationManager() const
G4bool IsRootRegion() const
G4bool IsRegion() const
const G4VisAttributes * GetVisAttributes() const
void SetMaterialCutsCouple(G4MaterialCutsCouple *cuts)
void PropagateRegion()
G4int TotalVolumeEntities() const
G4int GetNoDaughters() const
G4UserLimits * GetUserLimits() const
void(G4LogicalVolume::* f2_SetVisAttributes)(const G4VisAttributes &)
void(G4LogicalVolume::* f1_SetVisAttributes)(const G4VisAttributes *)
void SetSmartless(G4double s)
G4bool IsDaughter(const G4VPhysicalVolume *p) const
void SetName(const G4String &pName)
G4double GetMass(G4bool forced=false, G4bool propagate=true, G4Material *parMaterial=0)
const G4MaterialCutsCouple * GetMaterialCutsCouple() const
G4bool IsToOptimise() const
void SetBiasWeight(G4double w)
void AddDaughter(G4VPhysicalVolume *p)
void SetMaterial(G4Material *pMaterial)
G4VSensitiveDetector * GetSensitiveDetector() const
void RemoveDaughter(const G4VPhysicalVolume *p)
void export_G4MagneticField ( )

Definition at line 89 of file pyG4MagneticField.cc.

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

Referenced by BOOST_PYTHON_MODULE().

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

Definition at line 42 of file pyG4Navigator.cc.

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

Referenced by BOOST_PYTHON_MODULE().

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

Definition at line 54 of file pyG4Orb.cc.

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

Referenced by BOOST_PYTHON_MODULE().

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

Definition at line 56 of file pyG4Para.cc.

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().

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

Definition at line 91 of file pyG4Polycone.cc.

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

Referenced by BOOST_PYTHON_MODULE().

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("IsGeneric", &G4Polycone::IsGeneric)
100  .def("GetNumRZCorner", &G4Polycone::GetNumRZCorner)
101 
102  // operators
103  .def(self_ns::str(self))
104  ;
105 
106  // Create solid
107  def("CreatePolycone", f1_CreatePolycone,
108  return_value_policy<manage_new_object>());
109  def("CreatePolycone", f2_CreatePolycone,
110  return_value_policy<manage_new_object>());
111 
112 }
G4bool IsOpen() const
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
G4int GetNumRZCorner() const
G4double GetEndPhi() 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
G4double GetStartPhi() const
void export_G4Polyhedra ( )

Definition at line 92 of file pyG4Polyhedra.cc.

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().

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 }
G4double GetEndPhi() const
G4Polyhedra * f2_CreatePolyhedra(const G4String &name, G4double phiStart, G4double phiTotal, G4int numSide, G4int numRZ, const std::vector< G4double > &r, const std::vector< G4double > &z)
G4int GetNumRZCorner() const
G4int GetNumSide() const
G4bool IsOpen() 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)
G4double GetStartPhi() const
void export_G4PVPlacement ( )

Definition at line 54 of file pyG4PVPlacement.cc.

References G4PVPlacement::CheckOverlaps(), and G4VERSION_NUMBER.

Referenced by BOOST_PYTHON_MODULE().

55 {
56  class_<G4PVPlacement, G4PVPlacement*, bases<G4VPhysicalVolume>,
57  boost::noncopyable >
58  ("G4PVPlacement", "physical volume placement", no_init)
59  // ---
60  .def(init<G4RotationMatrix*, const G4ThreeVector&,
61  G4LogicalVolume*, const G4String&,
63  .def(init<const G4Transform3D&, G4LogicalVolume*,
64  const G4String&, G4LogicalVolume*, G4bool, G4int>())
65  .def(init<G4RotationMatrix*, const G4ThreeVector&,
66  const G4String, G4LogicalVolume*,
68  .def(init<const G4Transform3D&, const G4String&,
70 #if G4VERSION_NUMBER >=800
71  .def(init<G4RotationMatrix*, const G4ThreeVector&,
72  G4LogicalVolume*, const G4String&,
74  .def(init<const G4Transform3D&, G4LogicalVolume*,
76  .def(init<G4RotationMatrix*, const G4ThreeVector&,
77  const G4String, G4LogicalVolume*,
79  .def(init<const G4Transform3D&, const G4String&,
81 #endif
82  // ---
83 #if G4VERSION_NUMBER >=800
84  .def("CheckOverlaps", &G4PVPlacement::CheckOverlaps, f_CheckOverlaps())
85 #endif
86  ;
87 }
int G4int
Definition: G4Types.hh:78
bool G4bool
Definition: G4Types.hh:79
#define G4VERSION_NUMBER
Definition: G4Version.hh:49
G4bool CheckOverlaps(G4int res=1000, G4double tol=0., G4bool verbose=true, G4int maxErr=1)
void export_G4PVReplica ( )

Definition at line 41 of file pyG4PVReplica.cc.

References G4PVReplica::GetMultiplicity().

Referenced by BOOST_PYTHON_MODULE().

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

Definition at line 47 of file pyG4Region.cc.

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().

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

Definition at line 57 of file pyG4Sphere.cc.

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

Referenced by BOOST_PYTHON_MODULE().

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

Definition at line 40 of file pyG4SubtractionSolid.cc.

Referenced by BOOST_PYTHON_MODULE().

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

Definition at line 55 of file pyG4Tet.cc.

References pyG4Tet::CreateTet().

Referenced by BOOST_PYTHON_MODULE().

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

Definition at line 55 of file pyG4Torus.cc.

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

Referenced by BOOST_PYTHON_MODULE().

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

Definition at line 40 of file pyG4TouchableHistory.cc.

Referenced by BOOST_PYTHON_MODULE().

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

Definition at line 42 of file pyG4TransportationManager.cc.

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

Referenced by BOOST_PYTHON_MODULE().

43 {
44  class_<G4TransportationManager, boost::noncopyable>
45  ("G4TransportationManager", "manager class for transportation", no_init)
46  // ---
47  .def("GetTransportationManager",
49  return_value_policy<reference_existing_object>())
50  .staticmethod("GetTransportationManager")
51  .def("GetNavigatorForTracking",
53  return_internal_reference<>())
54  .def("GetPropagatorInField",
56  return_internal_reference<>())
57  .def("GetFieldManager",
59  return_internal_reference<>())
60  .def("SetNavigatorForTracking",
62  .def("SetPropagatorInField",
64  .def("SetFieldManager",
66  ;
67 }
G4Navigator * GetNavigatorForTracking() const
void SetFieldManager(G4FieldManager *newFieldManager)
static G4TransportationManager * GetTransportationManager()
G4FieldManager * GetFieldManager() const
void SetPropagatorInField(G4PropagatorInField *newFieldPropagator)
G4PropagatorInField * GetPropagatorInField() const
void SetNavigatorForTracking(G4Navigator *newNavigator)
void export_G4Trap ( )

Definition at line 102 of file pyG4Trap.cc.

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().

103 {
104  class_<G4Trap, G4Trap*, bases<G4VSolid> >
105  ("G4Trap", "Generic trapezoild soild class", no_init)
106  // constructors
107  .def(init<const G4String&>())
108  .def(init<const G4String&, G4double, G4double, G4double, G4double>())
109  .def(init<const G4String&, G4double, G4double, G4double,
110  G4double, G4double>())
111  .def(init<const G4String&, G4double, G4double, G4double,
113  .def(init<const G4String&, G4double, G4double, G4double,
116  // ---
117  .def("GetZHalfLength", &G4Trap::GetZHalfLength)
118  .def("GetYHalfLength1", &G4Trap::GetYHalfLength1)
119  .def("GetXHalfLength1", &G4Trap::GetXHalfLength1)
120  .def("GetXHalfLength2", &G4Trap::GetXHalfLength2)
121  .def("GetTanAlpha1", &G4Trap::GetTanAlpha1)
122  .def("GetYHalfLength2", &G4Trap::GetYHalfLength2)
123  .def("GetXHalfLength3", &G4Trap::GetXHalfLength3)
124  .def("GetXHalfLength4", &G4Trap::GetXHalfLength4)
125  .def("GetTanAlpha2", &G4Trap::GetTanAlpha2)
126  .def("GetSidePlane", &G4Trap::GetSidePlane)
127  .def("GetSymAxis", &G4Trap::GetSymAxis)
128  .def("SetAllParameters", &G4Trap::SetAllParameters)
129  // operators
130  .def(self_ns::str(self))
131  ;
132 
133  // Create solid
134  def("CreateTrap", f1_CreateTrap, return_value_policy<manage_new_object>());
135  def("CreateTrap", f2_CreateTrap, return_value_policy<manage_new_object>());
136  def("CreateTrap", f3_CreateTrap, return_value_policy<manage_new_object>());
137  def("CreateTrap", f4_CreateTrap, return_value_policy<manage_new_object>());
138  def("CreateTrap", f5_CreateTrap, return_value_policy<manage_new_object>());
139  def("CreateTrap", f6_CreateTrap, return_value_policy<manage_new_object>());
140 
141 }
G4double GetXHalfLength4() const
TrapSidePlane GetSidePlane(G4int n) const
G4double GetYHalfLength2() const
G4Trap * f3_CreateTrap(const G4String &name, const std::vector< G4ThreeVector > &pt)
Definition: pyG4Trap.cc:62
G4double GetZHalfLength() const
G4Trap * f4_CreateTrap(const G4String &name, G4double pZ, G4double pY, G4double pX, G4double pLTX)
Definition: pyG4Trap.cc:74
G4double GetXHalfLength2() const
G4double GetTanAlpha2() const
G4double GetXHalfLength1() const
G4double GetXHalfLength3() 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:601
G4Trap * f1_CreateTrap(const G4String &name)
Definition: pyG4Trap.cc:42
G4ThreeVector GetSymAxis() const
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:48
G4double GetYHalfLength1() const
double G4double
Definition: G4Types.hh:76
G4double GetTanAlpha1() const
G4Trap * f6_CreateTrap(const G4String &name, G4double pDx, G4double pDy, G4double pDz, G4double pAlpha, G4double pTheta, G4double pPhi)
Definition: pyG4Trap.cc:88
G4Trap * f5_CreateTrap(const G4String &name, G4double pDx1, G4double pDx2, G4double pDy1, G4double pDy2, G4double pDz)
Definition: pyG4Trap.cc:81
void export_G4Trd ( )

Definition at line 55 of file pyG4Trd.cc.

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().

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

Definition at line 55 of file pyG4Tubs.cc.

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

Referenced by BOOST_PYTHON_MODULE().

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

Definition at line 58 of file pyG4TwistedBox.cc.

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

Referenced by BOOST_PYTHON_MODULE().

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

Definition at line 70 of file pyG4TwistedTrap.cc.

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

Referenced by BOOST_PYTHON_MODULE().

71 {
72  class_<G4TwistedTrap, G4TwistedTrap*, bases<G4VSolid> >
73  ("G4TwistedTrap", "twisted trapezoid solid class", no_init)
74  // constructors
75  .def(init<const G4String&, G4double, G4double, G4double,
76  G4double, G4double>())
77  .def(init<const G4String&, G4double, G4double, G4double,
80  G4double, G4double>())
81  // operators
82  .def(self_ns::str(self))
83  ;
84 
85  // Create solid
86  def("CreateTwistedTap", f1_CreateTwistedTrap,
87  return_value_policy<manage_new_object>());
88  def("CreateTwistedTap", f2_CreateTwistedTrap,
89  return_value_policy<manage_new_object>());
90 
91 }
G4TwistedTrap * f1_CreateTwistedTrap(const G4String &name, G4double pPhiTwist, G4double pDx1, G4double pDx2, G4double pDy, G4double pDz)
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)
double G4double
Definition: G4Types.hh:76
void export_G4TwistedTrd ( )

Definition at line 57 of file pyG4TwistedTrd.cc.

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

Referenced by BOOST_PYTHON_MODULE().

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

Definition at line 113 of file pyG4TwistedTubs.cc.

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().

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

Definition at line 40 of file pyG4UniformMagField.cc.

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

Referenced by BOOST_PYTHON_MODULE().

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

Definition at line 40 of file pyG4UnionSolid.cc.

Referenced by BOOST_PYTHON_MODULE().

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

Definition at line 58 of file pyG4VPhysicalVolume.cc.

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().

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

Definition at line 41 of file pyG4VSolid.cc.

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

Referenced by BOOST_PYTHON_MODULE().

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

Definition at line 66 of file pyG4VTouchable.cc.

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

Referenced by BOOST_PYTHON_MODULE().

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