14   double PI = 3.141592653;
 
   16   int numberOfPoints=200;
 
   17   int numberOfCircles=40;
 
   25   float range = numberOfCircles*
d;
 
   26   view->
SetRange( 0, 0, 0, 4.0*range, 2.0*range, range );
 
   28   for( 
int j = 
d; j < numberOfCircles*
d; j += 
d ) {
 
   36      for( 
int i = 1; i < numberOfPoints; i++ ) {
 
   37         float csin = 
sin(2*
PI / (
double)numberOfPoints  * (
double)i) + 1;
 
   38         float ccos = 
cos(2*
PI / (
double)numberOfPoints  * (
double)i) + 1;
 
   39         float esin = 
sin(2*
PI / (
double)(numberOfCircles*
d) * (
double)j) + 1;
 
   40         x = j * ( csin + esin );
 
   59   sprintf( timeStr, 
"Execution time: %g sec.", ct);
 
   62   text->SetFillColor( 42 );
 
   63   text->AddText(
"ROOT example: tornado.C");
 
   64   text->AddText(timeStr);
 
R__EXTERN TBenchmark * gBenchmark
 
Option_t Option_t TPoint TPoint const char text
 
virtual void SetFillColor(Color_t fcolor)
Set the fill area color.
 
virtual void SetMarkerColor(Color_t mcolor=1)
Set the marker color.
 
virtual void SetMarkerStyle(Style_t mstyle=1)
Set the marker style.
 
virtual void SetMarkerSize(Size_t msize=1)
Set the marker size.
 
virtual void Start(const char *name)
Starts Benchmark with the specified name.
 
virtual void Show(const char *name)
Stops Benchmark name and Prints results.
 
Float_t GetCpuTime(const char *name)
Returns Cpu time used by Benchmark name.
 
void Update() override
Update canvas pad buffers.
 
A Pave (see TPave) with text, lines or/and boxes inside.
 
void SetPoint(Int_t n, Double_t x, Double_t y, Double_t z)
Set point n to x, y, z.
 
void Draw(Option_t *option="") override
Draws 3-D polymarker with its current attributes.
 
static TView * CreateView(Int_t system=1, const Double_t *rmin=nullptr, const Double_t *rmax=nullptr)
Create a concrete default 3-d view via the plug-in manager.
 
virtual void SetRange(const Double_t *min, const Double_t *max)=0
 
RVec< PromoteType< T > > cos(const RVec< T > &v)
 
RVec< PromoteType< T > > sin(const RVec< T > &v)