#include <G4GMocrenTouchable.hh>
Inheritance diagram for G4GMocrenTouchable:
Public Member Functions | |
G4GMocrenTouchable () | |
G4GMocrenTouchable (G4int &_depth0, G4int &_depth1) | |
virtual | ~G4GMocrenTouchable () |
virtual const G4ThreeVector & | GetTranslation (G4int depth=0) const |
virtual const G4RotationMatrix * | GetRotation (G4int depth=0) const |
virtual G4int | GetReplicaNumber (G4int depth=0) const |
void | SetReplicaNumber (G4int _depth0, G4int _depth1) |
Definition at line 41 of file G4GMocrenTouchable.hh.
G4GMocrenTouchable::G4GMocrenTouchable | ( | ) | [inline] |
virtual G4GMocrenTouchable::~G4GMocrenTouchable | ( | ) | [inline, virtual] |
Reimplemented from G4VTouchable.
Definition at line 84 of file G4GMocrenTouchable.hh.
References FatalException, and G4Exception().
00084 { 00085 if(depth > 1) { 00086 G4Exception("G4GMocrenTouchable::GetReplicaNumber(G4int)", "gMocren0001", 00087 FatalException, "depth number is less than 2."); 00088 } 00089 G4int rvalue; 00090 if(depth < 2) rvalue = depth; 00091 else rvalue = 0; 00092 return rvalue; 00093 }
const G4RotationMatrix * G4GMocrenTouchable::GetRotation | ( | G4int | depth = 0 |
) | const [virtual] |
Implements G4VTouchable.
Definition at line 76 of file G4GMocrenTouchable.hh.
00076 { 00077 // never used 00078 // in the puspose to avoid a warning in the compile process 00079 G4RotationMatrix * rot = new G4RotationMatrix(); 00080 rot->setPhi(static_cast<G4double>(depth)); 00081 return rot; 00082 }
const G4ThreeVector & G4GMocrenTouchable::GetTranslation | ( | G4int | depth = 0 |
) | const [virtual] |
Implements G4VTouchable.
Definition at line 69 of file G4GMocrenTouchable.hh.
00069 { 00070 // never used 00071 // in the purpose to avoid a warning in the compile process 00072 G4ThreeVector * vec = new G4ThreeVector(); 00073 *vec *= static_cast<G4double>(depth); 00074 return *vec; 00075 }