G4AssemblyTriplet Class Reference

#include <G4AssemblyTriplet.hh>


Public Member Functions

 G4AssemblyTriplet ()
 G4AssemblyTriplet (G4LogicalVolume *pVolume, G4ThreeVector &translation, G4RotationMatrix *pRotation, G4bool isReflection=false)
 G4AssemblyTriplet (G4AssemblyVolume *pAssembly, G4ThreeVector &translation, G4RotationMatrix *pRotation, G4bool isReflection=false)
 G4AssemblyTriplet (const G4AssemblyTriplet &second)
 ~G4AssemblyTriplet ()
G4AssemblyTripletoperator= (const G4AssemblyTriplet &second)
G4LogicalVolumeGetVolume () const
void SetVolume (G4LogicalVolume *pVolume)
G4AssemblyVolumeGetAssembly () const
void SetAssembly (G4AssemblyVolume *pAssembly)
G4ThreeVector GetTranslation () const
void SetTranslation (G4ThreeVector &pVolume)
G4RotationMatrixGetRotation () const
void SetRotation (G4RotationMatrix *pVolume)
G4bool IsReflection () const


Detailed Description

Definition at line 60 of file G4AssemblyTriplet.hh.


Constructor & Destructor Documentation

G4AssemblyTriplet::G4AssemblyTriplet (  )  [inline]

Definition at line 35 of file G4AssemblyTriplet.icc.

00036   : fVolume( 0 ), fRotation( 0 ), fAssembly(0), fIsReflection(false)
00037 {
00038   G4ThreeVector v(0.,0.,0.);
00039   fTranslation = v;
00040 }

G4AssemblyTriplet::G4AssemblyTriplet ( G4LogicalVolume pVolume,
G4ThreeVector translation,
G4RotationMatrix pRotation,
G4bool  isReflection = false 
) [inline]

Definition at line 43 of file G4AssemblyTriplet.icc.

00047   : fVolume( pVolume ), fTranslation( translation ), fRotation( pRotation ),
00048     fAssembly( 0 ), fIsReflection(isReflection)
00049 {
00050 }

G4AssemblyTriplet::G4AssemblyTriplet ( G4AssemblyVolume pAssembly,
G4ThreeVector translation,
G4RotationMatrix pRotation,
G4bool  isReflection = false 
) [inline]

Definition at line 53 of file G4AssemblyTriplet.icc.

00057   : fVolume( 0 ), fTranslation( translation ), fRotation( pRotation ),
00058     fAssembly( pAssembly ), fIsReflection(isReflection) 
00059 {
00060 }

G4AssemblyTriplet::G4AssemblyTriplet ( const G4AssemblyTriplet second  )  [inline]

Definition at line 63 of file G4AssemblyTriplet.icc.

References GetAssembly(), GetRotation(), GetTranslation(), GetVolume(), and IsReflection().

00064 {
00065   fVolume       = scopy.GetVolume();
00066   fRotation     = scopy.GetRotation();
00067   fTranslation  = scopy.GetTranslation();
00068   fAssembly     = scopy.GetAssembly();
00069   fIsReflection = scopy.IsReflection();
00070 }

G4AssemblyTriplet::~G4AssemblyTriplet (  )  [inline]

Definition at line 73 of file G4AssemblyTriplet.icc.

00074 {
00075 }


Member Function Documentation

G4AssemblyVolume * G4AssemblyTriplet::GetAssembly (  )  const [inline]

Definition at line 97 of file G4AssemblyTriplet.icc.

Referenced by G4AssemblyTriplet(), and operator=().

00098 {
00099   return fAssembly;
00100 }

G4RotationMatrix * G4AssemblyTriplet::GetRotation (  )  const [inline]

Definition at line 128 of file G4AssemblyTriplet.icc.

Referenced by G4AssemblyTriplet(), and operator=().

00129 {
00130   return fRotation;
00131 }

G4ThreeVector G4AssemblyTriplet::GetTranslation (  )  const [inline]

Definition at line 116 of file G4AssemblyTriplet.icc.

Referenced by G4AssemblyTriplet(), and operator=().

00117 {
00118   return fTranslation;
00119 }

G4LogicalVolume * G4AssemblyTriplet::GetVolume (  )  const [inline]

Definition at line 78 of file G4AssemblyTriplet.icc.

Referenced by G4AssemblyTriplet(), and operator=().

00079 {
00080   return fVolume;
00081 }

G4bool G4AssemblyTriplet::IsReflection (  )  const [inline]

Definition at line 140 of file G4AssemblyTriplet.icc.

Referenced by G4AssemblyTriplet(), and operator=().

00141 {
00142   return fIsReflection;
00143 }  

G4AssemblyTriplet & G4AssemblyTriplet::operator= ( const G4AssemblyTriplet second  )  [inline]

Definition at line 147 of file G4AssemblyTriplet.icc.

References GetAssembly(), GetRotation(), GetTranslation(), GetVolume(), and IsReflection().

00148 {
00149   if( this != &scopy )
00150   {
00151     fVolume       = scopy.GetVolume();
00152     fRotation     = scopy.GetRotation();
00153     fTranslation  = scopy.GetTranslation();
00154     fAssembly     = scopy.GetAssembly();
00155     fIsReflection = scopy.IsReflection();
00156   }
00157   
00158   return *this;
00159 }

void G4AssemblyTriplet::SetAssembly ( G4AssemblyVolume pAssembly  )  [inline]

Definition at line 103 of file G4AssemblyTriplet.icc.

References G4Exception(), and JustWarning.

00104 {
00105   if ( fVolume ) 
00106   {
00107     G4Exception("G4AssemblyTriplet::SetAssembly()",
00108                 "GeomVol1001", JustWarning,
00109                 "There is a volume already set, it will be ignored.");
00110   }
00111   fAssembly = pAssembly;
00112   fVolume = 0;
00113 }

void G4AssemblyTriplet::SetRotation ( G4RotationMatrix pVolume  )  [inline]

Definition at line 134 of file G4AssemblyTriplet.icc.

00135 {
00136   fRotation = pRotation;
00137 }

void G4AssemblyTriplet::SetTranslation ( G4ThreeVector pVolume  )  [inline]

Definition at line 122 of file G4AssemblyTriplet.icc.

00123 {
00124   fTranslation = translation;
00125 }

void G4AssemblyTriplet::SetVolume ( G4LogicalVolume pVolume  )  [inline]

Definition at line 84 of file G4AssemblyTriplet.icc.

References G4Exception(), and JustWarning.

00085 {
00086   if ( fAssembly ) 
00087   {
00088     G4Exception("G4AssemblyTriplet::SetVolume()",
00089                 "GeomVol1001", JustWarning,
00090                 "There is an assembly already set, it will be ignored.");
00091   }
00092   fVolume = pVolume;
00093   fAssembly = 0;
00094 }


The documentation for this class was generated from the following files:
Generated on Mon May 27 17:51:28 2013 for Geant4 by  doxygen 1.4.7