23void Arc(
int n,
double a,
double r,
double *px,
double *py);
24void AddFibonacciBin(
TH2Poly *h2pf,
double N);
26void hist104_TH2Poly_fibonacci(
int N = 7)
31 C->SetFrameLineWidth(0);
42 AddFibonacciBin(h2pf,
f1);
44 for (
int i = 0; i <=
N; i++) {
48 AddFibonacciBin(h2pf,
f1);
51 h2pf->
Draw(
"A COL L TEXT");
54void Arc(
int n,
double a,
double r,
double *px,
double *py)
60 for (
int i = 2; i <=
n - 2; i++) {
67void AddFibonacciBin(
TH2Poly *h2pf,
double N)
76 static int MoveId = 0;
102 Arc(NP, 3 * pi2, (
double)
N, px, py);
117 Arc(NP, 0., (
double)
N, px, py);
132 Arc(NP, pi2, (
double)
N, px, py);
147 Arc(NP, 2 * pi2, (
double)
N, px, py);
152 h2pf->
AddBin(X1, Y1, X2, Y2);
156 h2pf->
Fill((X1 + X2) / 2.5, (Y1 + Y2) / 2.5,
N);
#define R(a, b, c, d, e, f, g, h, i)
char * Form(const char *fmt,...)
Formats a string in a circular formatting buffer.
virtual void SetMarkerColor(Color_t mcolor=1)
Set the marker color.
void SetTitle(const char *title) override
Change/set the title.
void Draw(Option_t *option="") override
Draw this histogram with options.
virtual void SetStats(Bool_t stats=kTRUE)
Set statistics option on/off.
2D Histogram with Polygonal Bins
Int_t Fill(Double_t x, Double_t y) override
Increment the bin containing (x,y) by 1.
virtual Int_t AddBin(TObject *poly)
Adds a new bin to the histogram.
RooArgList L(Args_t &&... args)
constexpr Double_t C()
Velocity of light in .
Double_t Cos(Double_t)
Returns the cosine of an angle of x radians.
Double_t Sin(Double_t)
Returns the sine of an angle of x radians.