67 fOptionAxis(
kFALSE),fPolargram(nullptr),fXpol(nullptr),fYpol(nullptr)
83 fOptionAxis(
kFALSE),fPolargram(nullptr),fXpol(nullptr),fYpol(nullptr)
172 Double_t rwrmin = theY[0], rwrmax = theY[theNpoints - 1], rwtmin = theX[0], rwtmax = theX[theNpoints - 1];
174 for (
Int_t ipt = 0; ipt < theNpoints; ipt++) {
177 if (theX[ipt] - theEX[ipt] < rwtmin)
178 rwtmin = theX[ipt] - theEX[ipt];
179 if (theX[ipt] + theEX[ipt] > rwtmax)
180 rwtmax = theX[ipt] + theEX[ipt];
182 if (theX[ipt] < rwtmin)
184 if (theX[ipt] > rwtmax)
188 if (theY[ipt] - theEY[ipt] < rwrmin)
189 rwrmin = theY[ipt] - theEY[ipt];
190 if (theY[ipt] + theEY[ipt] > rwrmax)
191 rwrmax = theY[ipt] + theEY[ipt];
193 if (theY[ipt] < rwrmin)
195 if (theY[ipt] > rwrmax)
201 if (rwrmin == rwrmax)
203 if (rwtmin == rwtmax)
206 Double_t dr = rwrmax - rwrmin, dt = rwtmax - rwtmin;
212 rwtmax += dt / theNpoints;
214 return new TGraphPolargram(
"Polargram", rwrmin, rwrmax, rwtmin, rwtmax, opt);
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t r
A TGraphErrors is a TGraph with error bars.
Double_t * GetEX() const override
Double_t * GetEY() const override
void SetMinRadial(Double_t minimum=0)
Set minimum radial in the center of the circle.
Double_t * fXpol
[fNpoints] points in polar coordinates
void SetMaxPolar(Double_t maximum=6.28318530717958623)
Set maximum Polar.
Double_t * GetYpol()
Return points in polar coordinates.
TGraphPolargram * fPolargram
The polar coordinates system.
void SetMaxRadial(Double_t maximum=1)
Set maximum radial at the intersection of the positive X axis part and the circle.
TGraphPolar()
TGraphPolar default constructor.
void Draw(Option_t *options="") override
Draw TGraphPolar.
~TGraphPolar() override
TGraphPolar destructor.
Double_t * GetXpol()
Return points in polar coordinates.
TGraphPolargram * CreatePolargram(const char *opt)
Create polargram object for given draw options.
void SetMinPolar(Double_t minimum=0)
Set minimum Polar.
Double_t * fYpol
[fNpoints] points in polar coordinates
void SetRangeRadial(Double_t rmin, Double_t rmax)
Set the radial range.
void ChangeRangePolar(Double_t tmin, Double_t tmax)
Set the Polar range.
Int_t fNpoints
Number of points <= fMaxSize.
virtual void SetEditable(Bool_t editable=kTRUE)
if editable=kFALSE, the graph cannot be modified with the mouse by default a TGraph is editable
virtual void AppendPad(Option_t *option="")
Append graphics object to current pad.