LArSoft  v09_90_00
Liquid Argon Software toolkit - https://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 57 of file pyG4VPhysicalVolume.cc.

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

Referenced by BOOST_PYTHON_MODULE().

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