Geant4-11
Namespaces | Functions
pyG4PVPlacement.cc File Reference
#include <boost/python.hpp>
#include "G4Version.hh"
#include "G4PVPlacement.hh"
#include "G4LogicalVolume.hh"

Go to the source code of this file.

Namespaces

namespace  pyG4PVPlacement
 

Functions

void export_G4PVPlacement ()
 

Function Documentation

◆ 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}
bool G4bool
Definition: G4Types.hh: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().