Geant4 10.7.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=nullptr)
 
virtual const G4NavigationHistoryGetHistory () const
 

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}

◆ ~G4GMocrenTouchable()

virtual G4GMocrenTouchable::~G4GMocrenTouchable ( )
inlinevirtual

Definition at line 46 of file G4GMocrenTouchable.hh.

46{;}

Member Function Documentation

◆ 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}
@ FatalException
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *description)
Definition: G4Exception.cc:35
int G4int
Definition: G4Types.hh:85

◆ 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

◆ 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

◆ SetReplicaNumber()

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

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