PosGen_Line Class Reference

Ratpac-two: RAT::PosGen_Line Class Reference
Ratpac-two
Inheritance diagram for RAT::PosGen_Line:
GLG4PosGen

Public Member Functions

 PosGen_Line (const char *arg_dbname="line")
 
virtual void GeneratePosition (G4ThreeVector &argResult)
 
void SetState (G4String newValues)
 
G4String GetState () const
 
- Public Member Functions inherited from GLG4PosGen
 GLG4PosGen (const char *arg_dbname="pos")
 

Protected Attributes

G4ThreeVector fPoint1
 
G4ThreeVector fPoint2
 
- Protected Attributes inherited from GLG4PosGen
G4String _dbname
 

Constructor & Destructor Documentation

◆ PosGen_Line()

PosGen_Line::PosGen_Line ( const char *  arg_dbname = "line")

Create a new position generator.

The default line segment is from (0,0,0) to (0,0,0), i.e. a point at the origin.

Member Function Documentation

◆ GeneratePosition()

void PosGen_Line::GeneratePosition ( G4ThreeVector &  argResult)
virtual

Generate a random position on the line segment

Implements GLG4PosGen.

◆ GetState()

G4String PosGen_Line::GetState ( ) const
virtual

Return state as string in same format as SetState()

Implements GLG4PosGen.

◆ SetState()

void PosGen_Line::SetState ( G4String  newValues)
virtual

Set the coordinates of the line endpoints

Parameters
[in]newValuesx1 y1 z1 x2 y2 z2 (in mm)

Implements GLG4PosGen.

Member Data Documentation

◆ fPoint1

G4ThreeVector RAT::PosGen_Line::fPoint1
protected

Endpoint 1 of line

◆ fPoint2

G4ThreeVector RAT::PosGen_Line::fPoint2
protected

Endpoint 2 of line


The documentation for this class was generated from the following files:
  • /home/docs/checkouts/readthedocs.org/user_builds/ratpac/checkouts/latest/src/gen/include/RAT/PosGen_Line.hh
  • /home/docs/checkouts/readthedocs.org/user_builds/ratpac/checkouts/latest/src/gen/src/PosGen_Line.cc