66 fOptionAxis(
kFALSE),fPolargram(nullptr),fXpol(nullptr),fYpol(nullptr)
82 fOptionAxis(
kFALSE),fPolargram(nullptr),fXpol(nullptr),fYpol(nullptr)
171 Double_t rwrmin = theY[0], rwrmax = theY[theNpoints - 1], rwtmin = theX[0], rwtmax = theX[theNpoints - 1];
173 for (
Int_t ipt = 0; ipt < theNpoints; ipt++) {
176 if (theX[ipt] - theEX[ipt] < rwtmin)
177 rwtmin = theX[ipt] - theEX[ipt];
178 if (theX[ipt] + theEX[ipt] > rwtmax)
179 rwtmax = theX[ipt] + theEX[ipt];
181 if (theX[ipt] < rwtmin)
183 if (theX[ipt] > rwtmax)
187 if (theY[ipt] - theEY[ipt] < rwrmin)
188 rwrmin = theY[ipt] - theEY[ipt];
189 if (theY[ipt] + theEY[ipt] > rwrmax)
190 rwrmax = theY[ipt] + theEY[ipt];
192 if (theY[ipt] < rwrmin)
194 if (theY[ipt] > rwrmax)
200 if (rwrmin == rwrmax)
202 if (rwtmin == rwtmax)
205 Double_t dr = rwrmax - rwrmin, dt = rwtmax - rwtmin;
211 rwtmax += dt / theNpoints;
213 return new TGraphPolargram(
"Polargram", rwrmin, rwrmax, rwtmin, rwtmax, opt);
227 out,
Class(),
"polar",
228 TString::Format(
"%d, %s.data(), %s.data(), %s, %s",
fNpoints, xname.Data(), yname.Data(), exname.Data(), eyname.Data()),
kFALSE);
238 out <<
" polar->SetPolargram(polargram);\n";
int Int_t
Signed integer 4 bytes (int).
double Double_t
Double 8 bytes.
const char Option_t
Option string (const char).
virtual void SaveFillAttributes(std::ostream &out, const char *name, Int_t coldef=1, Int_t stydef=1001)
virtual void SaveLineAttributes(std::ostream &out, const char *name, Int_t coldef=1, Int_t stydef=1, Int_t widdef=1)
virtual void SaveMarkerAttributes(std::ostream &out, const char *name, Int_t coldef=1, Int_t stydef=1, Int_t sizdef=1)
Double_t * GetEX() const override
Double_t * fEY
[fNpoints] array of Y errors
Double_t * fEX
[fNpoints] array of X errors
Double_t * GetEY() const override
void SetMinRadial(Double_t minimum=0)
Double_t * fXpol
[fNpoints] points in polar coordinates
void SetMaxPolar(Double_t maximum=6.28318530717958623)
TGraphPolargram * fPolargram
The polar coordinates system.
void SetMaxRadial(Double_t maximum=1)
void SavePrimitive(std::ostream &out, Option_t *option="") override
Save a primitive as a C++ statement(s) on output stream "out".
void Draw(Option_t *options="") override
Default Draw method for all objects.
TGraphPolargram * CreatePolargram(const char *opt)
void SetMinPolar(Double_t minimum=0)
Double_t * fYpol
[fNpoints] points in polar coordinates
Int_t fNpoints
Number of points <= fMaxSize.
Double_t * fY
[fNpoints] array of Y points
Double_t * fX
[fNpoints] array of X points
void SavePrimitiveNameTitle(std::ostream &out, const char *variable_name)
Save object name and title into the output stream "out".
virtual void AppendPad(Option_t *option="")
Append graphics object to current pad.
static void SavePrimitiveDraw(std::ostream &out, const char *variable_name, Option_t *option=nullptr)
Save invocation of primitive Draw() method Skipped if option contains "nodraw" string.
static void SavePrimitiveConstructor(std::ostream &out, TClass *cl, const char *variable_name, const char *constructor_agrs="", Bool_t empty_line=kTRUE)
Save object constructor in the output stream "out".
static TString SavePrimitiveVector(std::ostream &out, const char *prefix, Int_t len, Double_t *arr, Int_t flag=0)
Save array in the output stream "out" as vector.
static TString Format(const char *fmt,...)
Static method which formats a string using a printf style format descriptor and return a TString.