LArSoft  v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
pyG4Tet.cc File Reference
#include <boost/python.hpp>
#include "G4Tet.hh"

Go to the source code of this file.

Namespaces

 pyG4Tet
 

Functions

G4Tet * pyG4Tet::CreateTet (const G4String &name, G4ThreeVector anchor, G4ThreeVector p2, G4ThreeVector p3, G4ThreeVector p4)
 
void export_G4Tet ()
 

Function Documentation

void export_G4Tet ( )

Definition at line 54 of file pyG4Tet.cc.

References pyG4Tet::CreateTet().

Referenced by BOOST_PYTHON_MODULE().

55 {
56  class_<G4Tet, G4Tet*, bases<G4VSolid> >
57  ("G4Tet", "tetrahedra solid class", no_init)
58  // constructors
59  .def(init<const G4String&, G4ThreeVector, G4ThreeVector, G4ThreeVector,
60  G4ThreeVector>())
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