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

#include <G3RotTableEntry.hh>

Public Member Functions

 G3RotTableEntry (G4int id, G4RotationMatrix *matrix)
 
 G3RotTableEntry (const G3RotTableEntry &right)
 
virtual ~G3RotTableEntry ()
 
G3RotTableEntryoperator= (const G3RotTableEntry &right)
 
G4bool operator== (const G3RotTableEntry &right) const
 
G4bool operator!= (const G3RotTableEntry &right) const
 
G4int GetID () const
 
G4RotationMatrixGetMatrix () const
 

Detailed Description

Definition at line 46 of file G3RotTableEntry.hh.

Constructor & Destructor Documentation

◆ G3RotTableEntry() [1/2]

G3RotTableEntry::G3RotTableEntry ( G4int  id,
G4RotationMatrix matrix 
)

Definition at line 34 of file G3RotTableEntry.cc.

35 : fID(id),
36 fMatrix(matrix)
37{}

◆ G3RotTableEntry() [2/2]

G3RotTableEntry::G3RotTableEntry ( const G3RotTableEntry right)

Definition at line 39 of file G3RotTableEntry.cc.

40 : fID(right.GetID()),
41 fMatrix(right.GetMatrix())
42{}
G4RotationMatrix * GetMatrix() const
G4int GetID() const

◆ ~G3RotTableEntry()

G3RotTableEntry::~G3RotTableEntry ( )
virtual

Definition at line 44 of file G3RotTableEntry.cc.

45{}

Member Function Documentation

◆ GetID()

G4int G3RotTableEntry::GetID ( ) const
inline

Definition at line 72 of file G3RotTableEntry.hh.

73{ return fID; }

Referenced by G3RotTable::Get(), operator=(), and operator==().

◆ GetMatrix()

G4RotationMatrix * G3RotTableEntry::GetMatrix ( ) const
inline

Definition at line 75 of file G3RotTableEntry.hh.

76{ return fMatrix; }

Referenced by G3RotTable::Get(), and operator=().

◆ operator!=()

G4bool G3RotTableEntry::operator!= ( const G3RotTableEntry right) const

Definition at line 63 of file G3RotTableEntry.cc.

64{
65 if (*this == right)
66 return false;
67 else
68 return true;
69}

◆ operator=()

G3RotTableEntry & G3RotTableEntry::operator= ( const G3RotTableEntry right)

Definition at line 47 of file G3RotTableEntry.cc.

48{
49 if (&right == this) { return *this; }
50 fID = right.GetID();
51 fMatrix = right.GetMatrix();
52 return *this;
53}

◆ operator==()

G4bool G3RotTableEntry::operator== ( const G3RotTableEntry right) const

Definition at line 55 of file G3RotTableEntry.cc.

56{
57 if (fID == right.GetID())
58 return true;
59 else
60 return false;
61}

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