Public Member Functions | Public Attributes | List of all members
UniformBox Struct Reference
Inheritance diagram for UniformBox:

Public Member Functions

 UniformBox (IRandom::pointer rng, const Ray &extent)
 
 ~UniformBox ()
 
Point operator() ()
 

Public Attributes

IRandom::pointer rng
 
Ray extent
 

Detailed Description

Definition at line 113 of file BlipSource.cxx.

Constructor & Destructor Documentation

UniformBox::UniformBox ( IRandom::pointer  rng,
const Ray &  extent 
)
inline

Definition at line 116 of file BlipSource.cxx.

116 : rng(rng), extent(extent) {}
IRandom::pointer rng
Definition: BlipSource.cxx:114
UniformBox::~UniformBox ( )
inline

Definition at line 117 of file BlipSource.cxx.

117 {}

Member Function Documentation

Point UniformBox::operator() ( void  )
inline

Definition at line 118 of file BlipSource.cxx.

118  {
119  auto p = Point(
120  rng->uniform(extent.first.x(), extent.second.x()),
121  rng->uniform(extent.first.y(), extent.second.y()),
122  rng->uniform(extent.first.z(), extent.second.z()));
123  //std::cerr << "UniformBox: pt=" << p << std::endl;
124  return p;
125  }
std::tuple< double, double, const reco::ClusterHit3D * > Point
Definitions used by the VoronoiDiagram algorithm.
Definition: DCEL.h:34
p
Definition: test.py:223
IRandom::pointer rng
Definition: BlipSource.cxx:114

Member Data Documentation

Ray UniformBox::extent

Definition at line 115 of file BlipSource.cxx.

IRandom::pointer UniformBox::rng

Definition at line 114 of file BlipSource.cxx.


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