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

#include <G4GeomTestVolPoint.hh>

+ Inheritance diagram for G4GeomTestVolPoint:

Public Member Functions

 G4GeomTestVolPoint ()
 
 G4GeomTestVolPoint (const G4ThreeVector &thePoint, G4double theS, G4bool isEntering, G4int theDaughterIndex)
 
 G4GeomTestVolPoint (const G4GeomTestPoint &base, G4int theDaughterIndex)
 
 G4GeomTestVolPoint (const G4GeomTestPoint &base, G4int theDaughterIndex, const G4ThreeVector &translation, const G4RotationMatrix *rotation=0)
 
 G4GeomTestVolPoint (const G4GeomTestVolPoint &other)
 
virtual ~G4GeomTestVolPoint ()
 
G4GeomTestVolPointoperator= (const G4GeomTestVolPoint &other)
 
G4int GetDaughterIndex () const
 
- Public Member Functions inherited from G4GeomTestPoint
 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

G4int daughterIndex
 
- Protected Attributes inherited from G4GeomTestPoint
G4ThreeVector p
 
G4double s
 
G4bool entering
 

Detailed Description

Definition at line 48 of file G4GeomTestVolPoint.hh.

Constructor & Destructor Documentation

◆ G4GeomTestVolPoint() [1/5]

G4GeomTestVolPoint::G4GeomTestVolPoint ( )

Definition at line 90 of file G4GeomTestVolPoint.cc.

91 : daughterIndex(-1)
92{;}

◆ G4GeomTestVolPoint() [2/5]

G4GeomTestVolPoint::G4GeomTestVolPoint ( const G4ThreeVector thePoint,
G4double  theS,
G4bool  isEntering,
G4int  theDaughterIndex 
)

Definition at line 42 of file G4GeomTestVolPoint.cc.

46 : G4GeomTestPoint( thePoint, theS, isEntering ),
47 daughterIndex(theDaughterIndex)
48{;}

◆ G4GeomTestVolPoint() [3/5]

G4GeomTestVolPoint::G4GeomTestVolPoint ( const G4GeomTestPoint base,
G4int  theDaughterIndex 
)

Definition at line 54 of file G4GeomTestVolPoint.cc.

56 : G4GeomTestPoint( base ), daughterIndex(theDaughterIndex)
57{;}

◆ G4GeomTestVolPoint() [4/5]

G4GeomTestVolPoint::G4GeomTestVolPoint ( const G4GeomTestPoint base,
G4int  theDaughterIndex,
const G4ThreeVector translation,
const G4RotationMatrix rotation = 0 
)

Definition at line 63 of file G4GeomTestVolPoint.cc.

67 : G4GeomTestPoint( base ), daughterIndex(theDaughterIndex)
68{
69 //
70 // Rotate point
71 //
72 if (rotation)
73 p = rotation->inverse()*p - translation;
74 else
75 p = p - translation;
76}
HepRotation inverse() const
G4ThreeVector p

◆ G4GeomTestVolPoint() [5/5]

G4GeomTestVolPoint::G4GeomTestVolPoint ( const G4GeomTestVolPoint other)

Definition at line 82 of file G4GeomTestVolPoint.cc.

84{;}

◆ ~G4GeomTestVolPoint()

G4GeomTestVolPoint::~G4GeomTestVolPoint ( )
virtual

Definition at line 98 of file G4GeomTestVolPoint.cc.

98{;}

Member Function Documentation

◆ GetDaughterIndex()

G4int G4GeomTestVolPoint::GetDaughterIndex ( ) const

Definition at line 126 of file G4GeomTestVolPoint.cc.

127{
128 return daughterIndex;
129}

◆ operator=()

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

Definition at line 105 of file G4GeomTestVolPoint.cc.

106{
107 // Check assignment to self
108 //
109 if (this == &other) { return *this; }
110
111 // Copy base class data
112 //
114
115 // Copy data
116 //
118
119 return *this;
120}
G4GeomTestPoint & operator=(const G4GeomTestPoint &other)

Member Data Documentation

◆ daughterIndex

G4int G4GeomTestVolPoint::daughterIndex
protected

Definition at line 75 of file G4GeomTestVolPoint.hh.

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


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