41 gPad->SetFrameFillColor(19);
49 JBessel[
nu]=
new TF1(
"J_0",
"ROOT::Math::cyl_bessel_j([0],x)", 0, 10);
56 JBessel[0]->TF1::GetXaxis()->SetTitle(
"x");
57 JBessel[0]->GetXaxis()->SetTitleSize(0.06);
58 JBessel[0]->GetXaxis()->SetTitleOffset(.7);
67 leg->AddEntry(
JBessel[0]->DrawCopy(),
" J_0(x)",
"l");
68 leg->AddEntry(
JBessel[1]->DrawCopy(
"same"),
" J_1(x)",
"l");
69 leg->AddEntry(
JBessel[2]->DrawCopy(
"same"),
" J_2(x)",
"l");
70 leg->AddEntry(
JBessel[3]->DrawCopy(
"same"),
" J_3(x)",
"l");
71 leg->AddEntry(
JBessel[4]->DrawCopy(
"same"),
" J_4(x)",
"l");
79 gPad->SetFrameFillColor(19);
86 KBessel[
nu]=
new TF1(
"J_0",
"ROOT::Math::cyl_bessel_k([0],x)", 0, 10);
88 KBessel[
nu]->SetTitle(
"Bessel K functions");
93 KBessel[0]->GetXaxis()->SetTitle(
"x");
94 KBessel[0]->GetXaxis()->SetTitleSize(0.06);
95 KBessel[0]->GetXaxis()->SetTitleOffset(.7);
104 leg2->AddEntry(
KBessel[0]->DrawCopy(),
" K_0(x)",
"l");
105 leg2->AddEntry(
KBessel[1]->DrawCopy(
"same"),
" K_1(x)",
"l");
106 leg2->AddEntry(
KBessel[2]->DrawCopy(
"same"),
" K_2(x)",
"l");
107 leg2->AddEntry(
KBessel[3]->DrawCopy(
"same"),
" K_3(x)",
"l");
108 leg2->AddEntry(
KBessel[4]->DrawCopy(
"same"),
" K_4(x)",
"l");
114 gPad->SetFrameFillColor(19);
119 for(
int nu = 0;
nu <= 4;
nu++){
120 iBessel[
nu]=
new TF1(
"J_0",
"ROOT::Math::cyl_bessel_i([0],x)", 0, 10);
122 iBessel[
nu]->SetTitle(
"Bessel I functions");
128 iBessel[0]->GetXaxis()->SetTitle(
"x");
129 iBessel[0]->GetXaxis()->SetTitleSize(0.06);
130 iBessel[0]->GetXaxis()->SetTitleOffset(.7);
139 leg3->AddEntry(
iBessel[0]->DrawCopy(),
" I_0",
"l");
140 leg3->AddEntry(
iBessel[1]->DrawCopy(
"same"),
" I_1(x)",
"l");
141 leg3->AddEntry(
iBessel[2]->DrawCopy(
"same"),
" I_2(x)",
"l");
142 leg3->AddEntry(
iBessel[3]->DrawCopy(
"same"),
" I_3(x)",
"l");
143 leg3->AddEntry(
iBessel[4]->DrawCopy(
"same"),
" I_4(x)",
"l");
149 gPad->SetFrameFillColor(19);
154 for(
int nu = 0;
nu <= 4;
nu++){
155 jBessel[
nu]=
new TF1(
"J_0",
"ROOT::Math::sph_bessel([0],x)", 0, 10);
157 jBessel[
nu]->SetTitle(
"Bessel j functions");
162 jBessel[0]->GetXaxis()->SetTitle(
"x");
163 jBessel[0]->GetXaxis()->SetTitleSize(0.06);
164 jBessel[0]->GetXaxis()->SetTitleOffset(.7);
174 leg4->AddEntry(
jBessel[0]->DrawCopy(),
" j_0(x)",
"l");
175 leg4->AddEntry(
jBessel[1]->DrawCopy(
"same"),
" j_1(x)",
"l");
176 leg4->AddEntry(
jBessel[2]->DrawCopy(
"same"),
" j_2(x)",
"l");
177 leg4->AddEntry(
jBessel[3]->DrawCopy(
"same"),
" j_3(x)",
"l");
178 leg4->AddEntry(
jBessel[4]->DrawCopy(
"same"),
" j_4(x)",
"l");
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
This class displays a legend box (TPaveText) containing several legend entries.
A Pave (see TPave) with a text centered in the Pave.