#include <G4PhysicalVolumeModel.hh>
Definition at line 119 of file G4PhysicalVolumeModel.hh.
◆ G4PhysicalVolumeModelTouchable()
G4PhysicalVolumeModel::G4PhysicalVolumeModelTouchable::G4PhysicalVolumeModelTouchable |
( |
const std::vector< G4PhysicalVolumeNodeID > & |
fullPVPath | ) |
|
◆ GetHistoryDepth()
G4int G4PhysicalVolumeModel::G4PhysicalVolumeModelTouchable::GetHistoryDepth |
( |
| ) |
const |
|
inlinevirtual |
◆ GetReplicaNumber()
G4int G4PhysicalVolumeModel::G4PhysicalVolumeModelTouchable::GetReplicaNumber |
( |
G4int |
depth | ) |
const |
|
virtual |
Reimplemented from G4VTouchable.
Definition at line 958 of file G4PhysicalVolumeModel.cc.
959{
960 size_t i = fFullPVPath.size() - depth - 1;
961 if (i >= fFullPVPath.size()) {
962 G4Exception(
"G4PhysicalVolumeModelTouchable::GetReplicaNumber",
963 "modeling0009",
965 "Index out of range. Asking for non-existent depth");
966 }
967 return fFullPVPath[i].GetCopyNo();
968}
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *comments)
◆ GetRotation()
Implements G4VTouchable.
Definition at line 920 of file G4PhysicalVolumeModel.cc.
921{
922 size_t i = fFullPVPath.size() - depth - 1;
923 if (i >= fFullPVPath.size()) {
924 G4Exception(
"G4PhysicalVolumeModelTouchable::GetRotation",
925 "modeling0006",
927 "Index out of range. Asking for non-existent depth");
928 }
930 tempRotation = fFullPVPath[i].GetTransform().getRotation();
931 return &tempRotation;
932}
◆ GetSolid()
G4VSolid * G4PhysicalVolumeModel::G4PhysicalVolumeModelTouchable::GetSolid |
( |
G4int |
depth | ) |
const |
|
virtual |
Reimplemented from G4VTouchable.
Definition at line 946 of file G4PhysicalVolumeModel.cc.
947{
948 size_t i = fFullPVPath.size() - depth - 1;
949 if (i >= fFullPVPath.size()) {
950 G4Exception(
"G4PhysicalVolumeModelTouchable::GetSolid",
951 "modeling0008",
953 "Index out of range. Asking for non-existent depth");
954 }
955 return fFullPVPath[i].GetPhysicalVolume()->GetLogicalVolume()->GetSolid();
956}
◆ GetTranslation()
Implements G4VTouchable.
Definition at line 906 of file G4PhysicalVolumeModel.cc.
907{
908 size_t i = fFullPVPath.size() - depth - 1;
909 if (i >= fFullPVPath.size()) {
910 G4Exception(
"G4PhysicalVolumeModelTouchable::GetTranslation",
911 "modeling0005",
913 "Index out of range. Asking for non-existent depth");
914 }
916 tempTranslation = fFullPVPath[i].GetTransform().getTranslation();
917 return tempTranslation;
918}
◆ GetVolume()
Reimplemented from G4VTouchable.
Definition at line 934 of file G4PhysicalVolumeModel.cc.
935{
936 size_t i = fFullPVPath.size() - depth - 1;
937 if (i >= fFullPVPath.size()) {
938 G4Exception(
"G4PhysicalVolumeModelTouchable::GetVolume",
939 "modeling0007",
941 "Index out of range. Asking for non-existent depth");
942 }
943 return fFullPVPath[i].GetPhysicalVolume();
944}
The documentation for this class was generated from the following files: