I have a macro (attached) based on the ROOT tutorial.
I cant figure out the following:
- how to scale x-axis on the pad “Magnitude of the 1st transform”
in order to have “real frequency”
- how to scale y-axis on the pad “Magnitude of the 1st transform”
in order to have “real magnitude”
- I found that “frequency reconstruction” (“Magnitude of the 1st transform” hist)
drastically depends on number of samples (n parameter in the macro) and
range (upX). Could you recommend a procedure for their calculation.
- I see that magnitudes of frequencies are different (but they should be equal).
How to correctly find/reconstruct magnitudes?
FFT1.C (8.48 KB)