Geant4-11
Public Member Functions | Private Attributes
G4GMocrenTouchable Class Reference

#include <G4GMocrenTouchable.hh>

Inheritance diagram for G4GMocrenTouchable:
G4VTouchable

Public Member Functions

 G4GMocrenTouchable ()
 
 G4GMocrenTouchable (G4int &_depth0, G4int &_depth1)
 
G4int GetCopyNumber (G4int depth=0) const
 
virtual const G4NavigationHistoryGetHistory () const
 
virtual G4int GetHistoryDepth () const
 
virtual G4int GetReplicaNumber (G4int depth=0) const
 
virtual const G4RotationMatrixGetRotation (G4int depth=0) const
 
virtual G4VSolidGetSolid (G4int depth=0) const
 
virtual const G4ThreeVectorGetTranslation (G4int depth=0) const
 
virtual G4VPhysicalVolumeGetVolume (G4int depth=0) const
 
virtual G4int MoveUpHistory (G4int num_levels=1)
 
void SetReplicaNumber (G4int _depth0, G4int _depth1)
 
virtual void UpdateYourself (G4VPhysicalVolume *pPhysVol, const G4NavigationHistory *history=nullptr)
 
virtual ~G4GMocrenTouchable ()
 

Private Attributes

G4int repno [2]
 

Detailed Description

Definition at line 40 of file G4GMocrenTouchable.hh.

Constructor & Destructor Documentation

◆ G4GMocrenTouchable() [1/2]

G4GMocrenTouchable::G4GMocrenTouchable ( )
inline

Definition at line 44 of file G4GMocrenTouchable.hh.

44{;}

◆ G4GMocrenTouchable() [2/2]

G4GMocrenTouchable::G4GMocrenTouchable ( G4int _depth0,
G4int _depth1 
)
inline

Definition at line 63 of file G4GMocrenTouchable.hh.

63 {
64 repno[0] = _depth0;
65 repno[1] = _depth1;
66}

References repno.

◆ ~G4GMocrenTouchable()

virtual G4GMocrenTouchable::~G4GMocrenTouchable ( )
inlinevirtual

Definition at line 46 of file G4GMocrenTouchable.hh.

46{;}

Member Function Documentation

◆ GetCopyNumber()

G4int G4VTouchable::GetCopyNumber ( G4int  depth = 0) const
inlineinherited

◆ GetHistory()

const G4NavigationHistory * G4VTouchable::GetHistory ( ) const
virtualinherited

Reimplemented in G4TouchableHistory.

Definition at line 82 of file G4VTouchable.cc.

83{
84 G4Exception("G4VTouchable::GetHistory()", "GeomMgt0001",
85 FatalException, "Undefined call to base class.");
86 return nullptr;
87}
@ FatalException
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *description)
Definition: G4Exception.cc:35

References FatalException, and G4Exception().

Referenced by G4PSFlatSurfaceCurrent::IsSelectedSurface(), G4PSFlatSurfaceFlux::IsSelectedSurface(), G4PSSphereSurfaceCurrent::IsSelectedSurface(), G4PSSphereSurfaceFlux::IsSelectedSurface(), G4PSCylinderSurfaceCurrent::IsSelectedSurface(), G4PSCylinderSurfaceFlux::IsSelectedSurface(), G4PSCylinderSurfaceFlux::ProcessHits(), G4PSFlatSurfaceFlux::ProcessHits(), G4PSSphereSurfaceFlux::ProcessHits(), G4PSVolumeFlux::ProcessHits(), and G4DNAIRT_geometries::Sampling().

◆ GetHistoryDepth()

G4int G4VTouchable::GetHistoryDepth ( ) const
virtualinherited

Reimplemented in G4TouchableHistory, and G4PhysicalVolumeModel::G4PhysicalVolumeModelTouchable.

Definition at line 74 of file G4VTouchable.cc.

75{
76 G4Exception("G4VTouchable::GetHistoryDepth()", "GeomMgt0001",
77 FatalException, "Undefined call to base class.");
78 return 0;
79}

References FatalException, and G4Exception().

Referenced by G4RayTrajectory::AppendStep(), export_G4VTouchable(), Path(), and G4RTSteppingAction::UserSteppingAction().

◆ GetReplicaNumber()

G4int G4GMocrenTouchable::GetReplicaNumber ( G4int  depth = 0) const
inlinevirtual

Reimplemented from G4VTouchable.

Definition at line 83 of file G4GMocrenTouchable.hh.

83 {
84 if(depth > 1) {
85 G4Exception("G4GMocrenTouchable::GetReplicaNumber(G4int)", "gMocren0001",
86 FatalException, "depth number is less than 2.");
87 }
88 G4int rvalue;
89 if(depth < 2) rvalue = depth;
90 else rvalue = 0;
91 return rvalue;
92}
int G4int
Definition: G4Types.hh:85

References FatalException, and G4Exception().

◆ GetRotation()

const G4RotationMatrix * G4GMocrenTouchable::GetRotation ( G4int  depth = 0) const
virtual

Implements G4VTouchable.

Definition at line 75 of file G4GMocrenTouchable.hh.

75 {
76 // never used
77 // in the puspose to avoid a warning in the compile process
79 rot->setPhi(static_cast<G4double>(depth));
80 return rot;
81}
CLHEP::HepRotation G4RotationMatrix
double G4double
Definition: G4Types.hh:83
void setPhi(double phi)
Definition: RotationE.cc:259

References CLHEP::HepRotation::setPhi().

◆ GetSolid()

G4VSolid * G4VTouchable::GetSolid ( G4int  depth = 0) const
virtualinherited

Reimplemented in G4PhysicalVolumeModel::G4PhysicalVolumeModelTouchable, G4GRSSolid, G4GRSVolume, and G4TouchableHistory.

Definition at line 42 of file G4VTouchable.cc.

43{
44 G4Exception("G4VTouchable::GetSolid()", "GeomMgt0001",
45 FatalException, "Undefined call to base class.");
46 return nullptr;
47}

References FatalException, and G4Exception().

Referenced by G4DNAMolecularDissociation::DecayIt(), and export_G4VTouchable().

◆ GetTranslation()

const G4ThreeVector & G4GMocrenTouchable::GetTranslation ( G4int  depth = 0) const
virtual

Implements G4VTouchable.

Definition at line 68 of file G4GMocrenTouchable.hh.

68 {
69 // never used
70 // in the purpose to avoid a warning in the compile process
71 G4ThreeVector * vec = new G4ThreeVector();
72 *vec *= static_cast<G4double>(depth);
73 return *vec;
74}
CLHEP::Hep3Vector G4ThreeVector

◆ GetVolume()

G4VPhysicalVolume * G4VTouchable::GetVolume ( G4int  depth = 0) const
virtualinherited

Reimplemented in G4PhysicalVolumeModel::G4PhysicalVolumeModelTouchable, G4GRSVolume, and G4TouchableHistory.

Definition at line 34 of file G4VTouchable.cc.

35{
36 G4Exception("G4VTouchable::GetVolume()", "GeomMgt0001",
37 FatalException, "Undefined call to base class.");
38 return nullptr;
39}

References FatalException, and G4Exception().

Referenced by G4DNABrownianTransportation::AlongStepGetPhysicalInteractionLength(), G4RayTrajectory::AppendStep(), G4ParallelWorldProcess::AtRestDoIt(), G4ParallelWorldScoringProcess::AtRestDoIt(), G4Track::CalculateVelocityForOpticalPhoton(), G4RichTrajectory::CreateAttValues(), G4RichTrajectoryPoint::CreateAttValues(), G4AdjointCrossSurfChecker::CrossingAnInterfaceBetweenTwoVolumes(), G4DNAMolecularDissociation::DecayIt(), export_G4VTouchable(), G4PSDoseDeposit3D::GetIndex(), G4PSEnergyDeposit3D::GetIndex(), G4AdjointCrossSurfChecker::GoingInOrOutOfaVolume(), G4AdjointCrossSurfChecker::GoingInOrOutOfaVolumeByExtSurface(), G4FastSimHitMaker::make(), GFlashHitMaker::make(), Path(), G4ParallelWorldProcess::PostStepDoIt(), G4ParallelWorldScoringProcess::PostStepDoIt(), G4ITTransportation::PostStepDoIt(), G4CoupledTransportation::PostStepDoIt(), G4Transportation::PostStepDoIt(), G4ITSteppingVerbose::PostStepVerbose(), G4ITSteppingVerbose::PreStepVerbose(), G4DNAIRT_geometries::Sampling(), G4ITStepProcessor::SetInitialStep(), G4SteppingManager::SetInitialStep(), G4ParallelWorldProcess::SwitchMaterial(), and G4RTSteppingAction::UserSteppingAction().

◆ MoveUpHistory()

G4int G4VTouchable::MoveUpHistory ( G4int  num_levels = 1)
virtualinherited

Reimplemented in G4TouchableHistory.

Definition at line 58 of file G4VTouchable.cc.

59{
60 G4Exception("G4VTouchable::MoveUpHistory()", "GeomMgt0001",
61 FatalException, "Undefined call to base class.");
62 return 0;
63}

References FatalException, and G4Exception().

Referenced by export_G4VTouchable().

◆ SetReplicaNumber()

void G4GMocrenTouchable::SetReplicaNumber ( G4int  _depth0,
G4int  _depth1 
)

◆ UpdateYourself()

void G4VTouchable::UpdateYourself ( G4VPhysicalVolume pPhysVol,
const G4NavigationHistory history = nullptr 
)
virtualinherited

Reimplemented in G4TouchableHistory.

Definition at line 66 of file G4VTouchable.cc.

68{
69 G4Exception("G4VTouchable::UpdateYourself()", "GeomMgt0001",
70 FatalException, "Undefined call to base class.");
71}

References FatalException, and G4Exception().

Referenced by G4DNABrownianTransportation::AlongStepGetPhysicalInteractionLength().

Field Documentation

◆ repno

G4int G4GMocrenTouchable::repno[2]
private

Definition at line 59 of file G4GMocrenTouchable.hh.

Referenced by G4GMocrenTouchable().


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