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

Create Random variables inside a regular Trapezoid. More...

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

Public Member Functions

 TrapezoidRandom (double xminy_, double xmaxy_, double ymax_)
 
 TrapezoidRandom (double xminy_, double xmaxy_, double ymin_, double ymax_)
 
Acts::Vector2 operator() (double r0, double r1) const
 

Public Attributes

double xminy
 
double xmaxy
 
double ymin
 
double ymax
 

Detailed Description

Create Random variables inside a regular Trapezoid.

Definition at line 38 of file BoundRandomValues.hpp.

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

Constructor & Destructor Documentation

ActsFatras::TrapezoidRandom::TrapezoidRandom ( double  xminy_,
double  xmaxy_,
double  ymax_ 
)
inline

Constructor for TrapezoidBounds : PlaneBounds

Parameters
xminy_the x value at minimum y value
xmaxy_the x value at maximum y value
ymax_the half length in y

Definition at line 49 of file BoundRandomValues.hpp.

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

ActsFatras::TrapezoidRandom::TrapezoidRandom ( double  xminy_,
double  xmaxy_,
double  ymin_,
double  ymax_ 
)
inline

Constructor for DiscTrapezoidBounds : DiscBounds

Parameters
xminy_the x value at minimum y value
xmaxy_the x value at maximum y value
ymin_the minimum y value (conicides with rmin)
ymax_the maximum y value

Definition at line 58 of file BoundRandomValues.hpp.

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

Member Function Documentation

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

Given two random numbers

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

Definition at line 65 of file BoundRandomValues.hpp.

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

References ambiguity_solver_full_chain::x, xmax, xmaxy, xminy, y, ymax, and ymin.

Member Data Documentation

double ActsFatras::TrapezoidRandom::xmaxy

Definition at line 40 of file BoundRandomValues.hpp.

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

Referenced by operator()().

double ActsFatras::TrapezoidRandom::xminy

Definition at line 39 of file BoundRandomValues.hpp.

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

Referenced by operator()().

double ActsFatras::TrapezoidRandom::ymax

Definition at line 42 of file BoundRandomValues.hpp.

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

Referenced by operator()().

double ActsFatras::TrapezoidRandom::ymin

Definition at line 41 of file BoundRandomValues.hpp.

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

Referenced by operator()().


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