Geant4  10.03.p01
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
G4PhysicalVolumeModel::G4PhysicalVolumeModelTouchable Class Reference

#include <G4PhysicalVolumeModel.hh>

Inheritance diagram for G4PhysicalVolumeModel::G4PhysicalVolumeModelTouchable:
Collaboration diagram for G4PhysicalVolumeModel::G4PhysicalVolumeModelTouchable:

Public Member Functions

 G4PhysicalVolumeModelTouchable (const std::vector< G4PhysicalVolumeNodeID > &fullPVPath)
 
const G4ThreeVectorGetTranslation (G4int depth) const
 
const G4RotationMatrixGetRotation (G4int depth) const
 
G4VPhysicalVolumeGetVolume (G4int depth) const
 
G4VSolidGetSolid (G4int depth) const
 
G4int GetReplicaNumber (G4int depth) const
 
G4int GetHistoryDepth () const
 
- Public Member Functions inherited from G4VTouchable
 G4VTouchable ()
 
virtual ~G4VTouchable ()
 
G4int GetCopyNumber (G4int depth=0) const
 
virtual G4int MoveUpHistory (G4int num_levels=1)
 
virtual void UpdateYourself (G4VPhysicalVolume *pPhysVol, const G4NavigationHistory *history=0)
 
virtual const G4NavigationHistoryGetHistory () const
 

Detailed Description

Definition at line 119 of file G4PhysicalVolumeModel.hh.

Constructor & Destructor Documentation

G4PhysicalVolumeModel::G4PhysicalVolumeModelTouchable::G4PhysicalVolumeModelTouchable ( const std::vector< G4PhysicalVolumeNodeID > &  fullPVPath)

Definition at line 931 of file G4PhysicalVolumeModel.cc.

931  :
932  fFullPVPath(fullPVPath) {}

Member Function Documentation

G4int G4PhysicalVolumeModel::G4PhysicalVolumeModelTouchable::GetHistoryDepth ( ) const
inlinevirtual

Reimplemented from G4VTouchable.

Definition at line 128 of file G4PhysicalVolumeModel.hh.

128 {return fFullPVPath.size();}
G4int G4PhysicalVolumeModel::G4PhysicalVolumeModelTouchable::GetReplicaNumber ( G4int  depth) const
virtual

Reimplemented from G4VTouchable.

Definition at line 986 of file G4PhysicalVolumeModel.cc.

987 {
988  size_t i = fFullPVPath.size() - depth - 1;
989  if (i >= fFullPVPath.size()) {
990  G4Exception("G4PhysicalVolumeModelTouchable::GetReplicaNumber",
991  "modeling0009",
993  "Index out of range. Asking for non-existent depth");
994  }
995  return fFullPVPath[i].GetCopyNo();
996 }
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *comments)
Definition: G4Exception.cc:41

Here is the call graph for this function:

const G4RotationMatrix * G4PhysicalVolumeModel::G4PhysicalVolumeModelTouchable::GetRotation ( G4int  depth) const
virtual

Implements G4VTouchable.

Definition at line 948 of file G4PhysicalVolumeModel.cc.

949 {
950  size_t i = fFullPVPath.size() - depth - 1;
951  if (i >= fFullPVPath.size()) {
952  G4Exception("G4PhysicalVolumeModelTouchable::GetRotation",
953  "modeling0006",
955  "Index out of range. Asking for non-existent depth");
956  }
957  static G4RotationMatrix tempRotation;
958  tempRotation = fFullPVPath[i].GetTransform().getRotation();
959  return &tempRotation;
960 }
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *comments)
Definition: G4Exception.cc:41

Here is the call graph for this function:

G4VSolid * G4PhysicalVolumeModel::G4PhysicalVolumeModelTouchable::GetSolid ( G4int  depth) const
virtual

Reimplemented from G4VTouchable.

Definition at line 974 of file G4PhysicalVolumeModel.cc.

975 {
976  size_t i = fFullPVPath.size() - depth - 1;
977  if (i >= fFullPVPath.size()) {
978  G4Exception("G4PhysicalVolumeModelTouchable::GetSolid",
979  "modeling0008",
981  "Index out of range. Asking for non-existent depth");
982  }
983  return fFullPVPath[i].GetPhysicalVolume()->GetLogicalVolume()->GetSolid();
984 }
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *comments)
Definition: G4Exception.cc:41

Here is the call graph for this function:

const G4ThreeVector & G4PhysicalVolumeModel::G4PhysicalVolumeModelTouchable::GetTranslation ( G4int  depth) const
virtual

Implements 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::GetTranslation",
939  "modeling0005",
941  "Index out of range. Asking for non-existent depth");
942  }
943  static G4ThreeVector tempTranslation;
944  tempTranslation = fFullPVPath[i].GetTransform().getTranslation();
945  return tempTranslation;
946 }
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *comments)
Definition: G4Exception.cc:41

Here is the call graph for this function:

G4VPhysicalVolume * G4PhysicalVolumeModel::G4PhysicalVolumeModelTouchable::GetVolume ( G4int  depth) const
virtual

Reimplemented from G4VTouchable.

Definition at line 962 of file G4PhysicalVolumeModel.cc.

963 {
964  size_t i = fFullPVPath.size() - depth - 1;
965  if (i >= fFullPVPath.size()) {
966  G4Exception("G4PhysicalVolumeModelTouchable::GetVolume",
967  "modeling0007",
969  "Index out of range. Asking for non-existent depth");
970  }
971  return fFullPVPath[i].GetPhysicalVolume();
972 }
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *comments)
Definition: G4Exception.cc:41

Here is the call graph for this function:


The documentation for this class was generated from the following files: