Geant4 9.6.0
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)
 
G4int operator== (const G3RotTableEntry &right) const
 
G4int operator!= (const G3RotTableEntry &right) const
 
G4int GetID () const
 
G4RotationMatrixGetMatrix () const
 

Detailed Description

Definition at line 47 of file G3RotTableEntry.hh.

Constructor & Destructor Documentation

◆ G3RotTableEntry() [1/2]

G3RotTableEntry::G3RotTableEntry ( G4int  id,
G4RotationMatrix matrix 
)

Definition at line 35 of file G3RotTableEntry.cc.

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

◆ G3RotTableEntry() [2/2]

G3RotTableEntry::G3RotTableEntry ( const G3RotTableEntry right)

Definition at line 40 of file G3RotTableEntry.cc.

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

◆ ~G3RotTableEntry()

G3RotTableEntry::~G3RotTableEntry ( )
virtual

Definition at line 45 of file G3RotTableEntry.cc.

46{}

Member Function Documentation

◆ GetID()

G4int G3RotTableEntry::GetID ( ) const
inline

Definition at line 73 of file G3RotTableEntry.hh.

74{ return fID; }

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

◆ GetMatrix()

G4RotationMatrix * G3RotTableEntry::GetMatrix ( ) const
inline

Definition at line 76 of file G3RotTableEntry.hh.

77{ return fMatrix; }

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

◆ operator!=()

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

Definition at line 64 of file G3RotTableEntry.cc.

65{
66 if (*this == right)
67 return 0;
68 else
69 return 1;
70}

◆ operator=()

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

Definition at line 48 of file G3RotTableEntry.cc.

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

◆ operator==()

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

Definition at line 56 of file G3RotTableEntry.cc.

57{
58 if (fID == right.GetID())
59 return 1;
60 else
61 return 0;
62}

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