56 myc->SetFillColor(45);
57 TPad *
c1_1 =
new TPad(
"c1_1",
"c1_1",0.01,0.67,0.49,0.99);
58 TPad *
c1_2 =
new TPad(
"c1_2",
"c1_2",0.51,0.67,0.99,0.99);
59 TPad *
c1_3 =
new TPad(
"c1_3",
"c1_3",0.01,0.34,0.49,0.65);
60 TPad *
c1_4 =
new TPad(
"c1_4",
"c1_4",0.51,0.34,0.99,0.65);
61 TPad *
c1_5 =
new TPad(
"c1_5",
"c1_5",0.01,0.01,0.49,0.32);
62 TPad *
c1_6 =
new TPad(
"c1_6",
"c1_6",0.51,0.01,0.99,0.32);
69 c1_1->SetFillColor(30);
70 c1_1->SetFrameFillColor(42);
71 c1_2->SetFillColor(30);
72 c1_2->SetFrameFillColor(42);
73 c1_3->SetFillColor(30);
74 c1_3->SetFrameFillColor(42);
75 c1_4->SetFillColor(30);
76 c1_4->SetFrameFillColor(42);
77 c1_5->SetFillColor(30);
78 c1_5->SetFrameFillColor(42);
79 c1_6->SetFillColor(30);
80 c1_6->SetFrameFillColor(42);
94 for (
Int_t i=0; i<=
n; i++){
99 fsin->GetXaxis()->SetLabelSize(0.05);
100 fsin->GetYaxis()->SetLabelSize(0.05);
107 hm->SetTitle(
"Magnitude of the 1st transform");
113 hm->GetXaxis()->SetLabelSize(0.05);
114 hm->GetYaxis()->SetLabelSize(0.05);
119 hp->SetTitle(
"Phase of the 1st transform");
122 hp->GetXaxis()->SetLabelSize(0.05);
123 hp->GetYaxis()->SetLabelSize(0.05);
131 fft->GetPointComplex(0, re,
im);
132 printf(
"1st transform: DC component: %f\n", re);
133 fft->GetPointComplex(
n/2+1, re,
im);
134 printf(
"1st transform: Nyquist harmonic: %f\n", re);
148 hb->SetTitle(
"The backward transform result");
154 hb->GetXaxis()->SetLabelSize(0.05);
155 hb->GetYaxis()->SetLabelSize(0.05);
169 for (
Int_t i=0; i<=
n; i++){
171 in[i] =
fsin->Eval(
x);
194 hr->SetTitle(
"Real part of the 3rd (array) transform");
197 hr->GetXaxis()->SetLabelSize(0.05);
198 hr->GetYaxis()->SetLabelSize(0.05);
202 him->SetTitle(
"Im. part of the 3rd (array) transform");
205 him->GetXaxis()->SetLabelSize(0.05);
206 him->GetYaxis()->SetLabelSize(0.05);
213 for (
Int_t i=0; i<=
n; i++){
215 in[i] =
fcos->Eval(
x);
220 printf(
"2nd transform: DC component: %f\n",
re_2);
222 printf(
"2nd transform: Nyquist harmonic: %f\n",
re_2);
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
1-D histogram with a double per channel (see TH1 documentation)
TH1 is the base class of all histogram classes in ROOT.
static TH1 * TransformHisto(TVirtualFFT *fft, TH1 *h_output, Option_t *option)
For a given transform (first parameter), fills the histogram (second parameter) with the transform ou...
static void AddDirectory(Bool_t add=kTRUE)
Sets the flag controlling the automatic add of histograms in memory.
The most important graphics class in the ROOT system.
TVirtualFFT is an interface class for Fast Fourier Transforms.
static void SetTransform(TVirtualFFT *fft)
static: set the current transfrom to parameter
static TVirtualFFT * FFT(Int_t ndim, Int_t *n, Option_t *option)
Returns a pointer to the FFT of requested size and type.
static TVirtualFFT * GetCurrentTransform()
static: return current fgFFT