Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
ActsFatras::RectangleRandom Struct Reference

Generate ranom numbers within the regular, centric Rectangle. More...

#include <acts/blob/sPHENIX/Tests/UnitTests/Fatras/Digitization/BoundRandomValues.hpp>

Public Member Functions

 RectangleRandom (double xmax_, double ymax_)
 
Acts::Vector2 operator() (double r0, double r1) const
 

Public Attributes

double xmax
 
double ymax
 

Detailed Description

Generate ranom numbers within the regular, centric Rectangle.

Definition at line 18 of file BoundRandomValues.hpp.

View newest version in sPHENIX GitHub at line 18 of file BoundRandomValues.hpp

Constructor & Destructor Documentation

ActsFatras::RectangleRandom::RectangleRandom ( double  xmax_,
double  ymax_ 
)
inline

Constructor from half lengths.

Parameters
xmax_the half length in x
ymax_the half length in y

Definition at line 26 of file BoundRandomValues.hpp.

View newest version in sPHENIX GitHub at line 26 of file BoundRandomValues.hpp

Member Function Documentation

Acts::Vector2 ActsFatras::RectangleRandom::operator() ( double  r0,
double  r1 
) const
inline

Given two random numbers

Parameters
r0and
r1generate a x/y position inside the Rectangle
Returns
Note
r0, r1 need to be within [0,1]

Definition at line 32 of file BoundRandomValues.hpp.

View newest version in sPHENIX GitHub at line 32 of file BoundRandomValues.hpp

References xmax, and ymax.

Member Data Documentation

double ActsFatras::RectangleRandom::xmax

Definition at line 19 of file BoundRandomValues.hpp.

View newest version in sPHENIX GitHub at line 19 of file BoundRandomValues.hpp

Referenced by operator()().

double ActsFatras::RectangleRandom::ymax

Definition at line 20 of file BoundRandomValues.hpp.

View newest version in sPHENIX GitHub at line 20 of file BoundRandomValues.hpp

Referenced by operator()().


The documentation for this struct was generated from the following file: