ATLAS Offline Software
Public Member Functions | List of all members
generate::breit_generator Class Reference

breit-wigner generator More...

#include <generate.h>

Inheritance diagram for generate::breit_generator:
Collaboration diagram for generate::breit_generator:

Public Member Functions

virtual double generate () const
 

Detailed Description

breit-wigner generator

Definition at line 55 of file generate.h.

Member Function Documentation

◆ generate()

virtual double generate::breit_generator::generate ( ) const
inlinevirtual

Implements generate::generator_base.

Definition at line 59 of file generate.h.

59  {
60  static BasicRandom r;
61  double x = std::tan((r.uniform()-0.5)*M_PI);
62  return x;
63  }

The documentation for this class was generated from the following file:
beamspotman.r
def r
Definition: beamspotman.py:676
M_PI
#define M_PI
Definition: ActiveFraction.h:11
x
#define x
drawFromPickle.tan
tan
Definition: drawFromPickle.py:36
BasicRandom
Definition: BasicRandom.h:32