PosGen_Line Class Reference
|
Ratpac-two
|
RAT::PosGen_Line Class Reference
Inheritance diagram for RAT::PosGen_Line:
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()
|
virtual |
Generate a random position on the line segment
Implements GLG4PosGen.
◆ GetState()
|
virtual |
Return state as string in same format as SetState()
Implements GLG4PosGen.
◆ SetState()
|
virtual |
Set the coordinates of the line endpoints
- Parameters
-
[in] newValues x1 y1 z1 x2 y2 z2 (in mm)
Implements GLG4PosGen.
Member Data Documentation
◆ fPoint1
|
protected |
Endpoint 1 of 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
Generated by
Public Member Functions inherited from