PosGen_Radial Class Reference

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

Public Member Functions

 PosGen_Radial (const char *arg_dbname="radial")
 
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 fCenter
 
G4double fMaxRadius
 
G4ThreeVector fPoint
 
- Protected Attributes inherited from GLG4PosGen
G4String _dbname
 

Constructor & Destructor Documentation

◆ PosGen_Radial()

PosGen_Radial::PosGen_Radial ( const char *  arg_dbname = "radial")

Create a uniform spherical position generator. The default sphere is from (0,0,0) the origin.

Member Function Documentation

◆ GeneratePosition()

void PosGen_Radial::GeneratePosition ( G4ThreeVector &  argResult)
virtual

Generate a random position in the sphere, uniformly ditributed in radial coordinate

Implements GLG4PosGen.

◆ GetState()

G4String PosGen_Radial::GetState ( ) const
virtual

Return state as string in same format as SetState()

Implements GLG4PosGen.

◆ SetState()

void PosGen_Radial::SetState ( G4String  newValues)
virtual

Set the center and max radius of the distribution

Parameters
[in]newValuesx y z R (in mm)

Implements GLG4PosGen.

Member Data Documentation

◆ fPoint

G4ThreeVector RAT::PosGen_Radial::fPoint
protected

distribution radius


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_Radial.hh
  • /home/docs/checkouts/readthedocs.org/user_builds/ratpac/checkouts/latest/src/gen/src/PosGen_Radial.cc