23 void Arc(
int n,
double a,
double r,
double *px,
double *py);
24 void AddFibonacciBin(
TH2Poly *h2pf,
double N);
26 void Fibonacci(
int N=7) {
41 AddFibonacciBin(h2pf, f1);
43 for (
int i=0; i<=
N; i++) {
47 AddFibonacciBin(h2pf, f1);
50 h2pf->
Draw(
"A COL L TEXT");
53 void Arc(
int n,
double a,
double r,
double *px,
double *py) {
58 for (
int i = 2; i<=n-2; i++) {
65 void AddFibonacciBin(
TH2Poly *h2pf,
double N) {
73 static int MoveId = 0;
99 Arc(NP,3*pi2,(
double)N,px,py);
114 Arc(NP,0.,(
double)N,px,py);
129 Arc(NP,pi2,(
double)N,px,py);
144 Arc(NP,2*pi2,(
double)N,px,py);
148 if (MoveId==0) h2pf->
AddBin(X1,Y1,X2,Y2);
149 else h2pf->
AddBin(NP, px ,py);
151 h2pf->
Fill((X1+X2)/2.5, (Y1+Y2)/2.5, N);
154 if (MoveId==5) MoveId=1;
virtual Int_t AddBin(TObject *poly)
Adds a new bin to the histogram.
virtual void SetMarkerColor(Color_t mcolor=1)
Set the marker color.
static constexpr double L
virtual void Draw(Option_t *option="")
Draw this histogram with options.
char * Form(const char *fmt,...)
static constexpr double pi2
void SetFrameLineWidth(Width_t width=1)
virtual void SetTitle(const char *title)
See GetStatOverflows for more information.
virtual void SetStats(Bool_t stats=kTRUE)
Set statistics option on/off.
virtual Int_t Fill(Double_t x, Double_t y)
Increment the bin containing (x,y) by 1.
2D Histogram with Polygonal Bins