G4GMocrenTouchable Class Reference

#include <G4GMocrenTouchable.hh>

Inheritance diagram for G4GMocrenTouchable:

G4VTouchable

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)

Detailed Description

Definition at line 41 of file G4GMocrenTouchable.hh.


Constructor & Destructor Documentation

G4GMocrenTouchable::G4GMocrenTouchable (  )  [inline]

Definition at line 45 of file G4GMocrenTouchable.hh.

00045 {;}

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

Definition at line 64 of file G4GMocrenTouchable.hh.

00064                                                                        {
00065   repno[0] = _depth0;
00066   repno[1] = _depth1;
00067 }

virtual G4GMocrenTouchable::~G4GMocrenTouchable (  )  [inline, virtual]

Definition at line 47 of file G4GMocrenTouchable.hh.

00047 {;}


Member Function Documentation

G4int G4GMocrenTouchable::GetReplicaNumber ( G4int  depth = 0  )  const [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 }

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


The documentation for this class was generated from the following file:
Generated on Mon May 27 17:52:06 2013 for Geant4 by  doxygen 1.4.7