Geant4 9.6.0
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
G4GMocrenTouchable Class Reference

#include <G4GMocrenTouchable.hh>

+ Inheritance diagram for G4GMocrenTouchable:

Public Member Functions

 G4GMocrenTouchable ()
 
 G4GMocrenTouchable (G4int &_depth0, G4int &_depth1)
 
virtual ~G4GMocrenTouchable ()
 
virtual const G4ThreeVectorGetTranslation (G4int depth=0) const
 
virtual const G4RotationMatrixGetRotation (G4int depth=0) const
 
virtual G4int GetReplicaNumber (G4int depth=0) const
 
void SetReplicaNumber (G4int _depth0, G4int _depth1)
 
- Public Member Functions inherited from G4VTouchable
 G4VTouchable ()
 
virtual ~G4VTouchable ()
 
virtual const G4ThreeVectorGetTranslation (G4int depth=0) const =0
 
virtual const G4RotationMatrixGetRotation (G4int depth=0) const =0
 
virtual G4VPhysicalVolumeGetVolume (G4int depth=0) const
 
virtual G4VSolidGetSolid (G4int depth=0) const
 
virtual G4int GetReplicaNumber (G4int depth=0) const
 
G4int GetCopyNumber (G4int depth=0) const
 
virtual G4int GetHistoryDepth () 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 41 of file G4GMocrenTouchable.hh.

Constructor & Destructor Documentation

◆ G4GMocrenTouchable() [1/2]

G4GMocrenTouchable::G4GMocrenTouchable ( )
inline

Definition at line 45 of file G4GMocrenTouchable.hh.

45{;}

◆ G4GMocrenTouchable() [2/2]

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

Definition at line 64 of file G4GMocrenTouchable.hh.

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

◆ ~G4GMocrenTouchable()

virtual G4GMocrenTouchable::~G4GMocrenTouchable ( )
inlinevirtual

Definition at line 47 of file G4GMocrenTouchable.hh.

47{;}

Member Function Documentation

◆ GetReplicaNumber()

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

Reimplemented from G4VTouchable.

Definition at line 84 of file G4GMocrenTouchable.hh.

84 {
85 if(depth > 1) {
86 G4Exception("G4GMocrenTouchable::GetReplicaNumber(G4int)", "gMocren0001",
87 FatalException, "depth number is less than 2.");
88 }
89 G4int rvalue;
90 if(depth < 2) rvalue = depth;
91 else rvalue = 0;
92 return rvalue;
93}
@ FatalException
int G4int
Definition: G4Types.hh:66
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *comments)
Definition: G4Exception.cc:41

◆ GetRotation()

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

Implements G4VTouchable.

Definition at line 76 of file G4GMocrenTouchable.hh.

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

◆ GetTranslation()

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

Implements G4VTouchable.

Definition at line 69 of file G4GMocrenTouchable.hh.

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

◆ SetReplicaNumber()

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

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