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

#include <G4GeomTestPoint.hh>

+ Inheritance diagram for G4GeomTestPoint:

Public Member Functions

 G4GeomTestPoint ()
 
 G4GeomTestPoint (const G4GeomTestPoint &other)
 
 G4GeomTestPoint (const G4ThreeVector &thePoint, G4double theS, G4bool isEntering)
 
virtual ~G4GeomTestPoint ()
 
G4GeomTestPointoperator= (const G4GeomTestPoint &other)
 
G4bool operator== (const G4GeomTestPoint &other) const
 
G4bool operator< (const G4GeomTestPoint &other) const
 
G4bool operator<= (const G4GeomTestPoint &other) const
 
virtual const G4ThreeVectorGetPosition () const
 
virtual G4double GetDistance () const
 
virtual G4bool Entering () const
 

Protected Attributes

G4ThreeVector p
 
G4double s
 
G4bool entering
 

Detailed Description

Definition at line 49 of file G4GeomTestPoint.hh.

Constructor & Destructor Documentation

◆ G4GeomTestPoint() [1/3]

G4GeomTestPoint::G4GeomTestPoint ( )

Definition at line 43 of file G4GeomTestPoint.cc.

44 : p(0),
45 s(0),
46 entering(false)
47{;}
G4ThreeVector p

◆ G4GeomTestPoint() [2/3]

G4GeomTestPoint::G4GeomTestPoint ( const G4GeomTestPoint other)

Definition at line 65 of file G4GeomTestPoint.cc.

66 : p(other.p),
67 s(other.s),
68 entering(other.entering)
69{;}

◆ G4GeomTestPoint() [3/3]

G4GeomTestPoint::G4GeomTestPoint ( const G4ThreeVector thePoint,
G4double  theS,
G4bool  isEntering 
)

Definition at line 53 of file G4GeomTestPoint.cc.

56 : p(thePoint),
57 s(theS),
58 entering(isEntering)
59{;}

◆ ~G4GeomTestPoint()

G4GeomTestPoint::~G4GeomTestPoint ( )
virtual

Definition at line 75 of file G4GeomTestPoint.cc.

75{;}

Member Function Documentation

◆ Entering()

G4bool G4GeomTestPoint::Entering ( ) const
virtual

Definition at line 140 of file G4GeomTestPoint.cc.

141{
142 return entering;
143}

◆ GetDistance()

G4double G4GeomTestPoint::GetDistance ( ) const
virtual

Definition at line 131 of file G4GeomTestPoint.cc.

132{
133 return s;
134}

◆ GetPosition()

const G4ThreeVector & G4GeomTestPoint::GetPosition ( ) const
virtual

Definition at line 122 of file G4GeomTestPoint.cc.

123{
124 return p;
125}

◆ operator<()

G4bool G4GeomTestPoint::operator< ( const G4GeomTestPoint other) const

Definition at line 108 of file G4GeomTestPoint.cc.

109{
110 return s < other.s;
111}

◆ operator<=()

G4bool G4GeomTestPoint::operator<= ( const G4GeomTestPoint other) const

Definition at line 113 of file G4GeomTestPoint.cc.

114{
115 return s <= other.s;
116}

◆ operator=()

G4GeomTestPoint & G4GeomTestPoint::operator= ( const G4GeomTestPoint other)

Definition at line 80 of file G4GeomTestPoint.cc.

81{
82 // Check assignment to self
83 //
84 if (this == &other) { return *this; }
85
86 // Copy data
87 //
88 p = other.p;
89 s = other.s;
90 entering = other.entering;
91
92 return *this;
93}

Referenced by G4GeomTestVolPoint::operator=().

◆ operator==()

G4bool G4GeomTestPoint::operator== ( const G4GeomTestPoint other) const

Definition at line 99 of file G4GeomTestPoint.cc.

100{
101 return s == other.s;
102}

Member Data Documentation

◆ entering

G4bool G4GeomTestPoint::entering
protected

Definition at line 76 of file G4GeomTestPoint.hh.

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

◆ p

G4ThreeVector G4GeomTestPoint::p
protected

◆ s

G4double G4GeomTestPoint::s
protected

Definition at line 75 of file G4GeomTestPoint.hh.

Referenced by GetDistance(), operator<(), operator<=(), operator=(), and operator==().


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