LArSoft  v06_85_00
Liquid Argon Software toolkit - http://larsoft.org/
pyG4VPhysicalVolume.cc File Reference
#include <boost/python.hpp>
#include "G4Version.hh"
#include "G4VPhysicalVolume.hh"
#include "G4LogicalVolume.hh"
#include "G4VPVParameterisation.hh"

Go to the source code of this file.

Namespaces

 pyG4VPhysicalVolume
 

Functions

void export_G4VPhysicalVolume ()
 

Variables

const G4RotationMatrix *(G4VPhysicalVolume::* pyG4VPhysicalVolume::f1_GetRotation )() const = &G4VPhysicalVolume::GetRotation
 
G4RotationMatrix *(G4VPhysicalVolume::* pyG4VPhysicalVolume::f2_GetRotation )() = &G4VPhysicalVolume::GetRotation
 

Function Documentation

void export_G4VPhysicalVolume ( )

Definition at line 58 of file pyG4VPhysicalVolume.cc.

References pyG4VPhysicalVolume::f1_GetRotation, and pyG4VPhysicalVolume::f2_GetRotation.

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 G4RotationMatrix *(G4VPhysicalVolume::* f1_GetRotation)() const
G4RotationMatrix *(G4VPhysicalVolume::* f2_GetRotation)()