ATTPCROOT
0.3.0-alpha
A ROOT-based framework for analyzing data from active target detectors
|
Go to the documentation of this file.
4 #include <TVirtualFFT.h>
11 return std::make_unique<AtPadFFT>(*
this);
23 return fRe.at(512 - i);
34 return -
fIm.at(512 - i);
58 fRe.at(512 - i) = val;
68 fIm.at(512 - i) = -val;
86 assert(fft->GetN()[0] / 2 + 1 ==
fRe.size());
88 for (
int i = 0; i <
fRe.size(); ++i)
89 fft->GetPointComplex(i,
fRe.at(i),
fIm.at(i));
102 assert(fft->GetN()[0] / 2 + 1 ==
fRe.size());
103 fft->SetPointsComplex(
fRe.data(),
fIm.data());
107 assert(i <
fRe.size());
114 auto ret = std::make_unique<AtPadFFT>();
115 ret->GetDataFromFFT(fft);
virtual std::unique_ptr< AtPadBase > Clone() const override
void SetData(TraceTrans re, TraceTrans im)
Sets the real and imaginary parts of all frequency components.
static std::unique_ptr< AtPadFFT > CreateFromFFT(const TVirtualFFT *fft)
void SetPoint(int i, TComplex val)
void SetPointIm(int i, Double_t val)
Sets the imaginary value of the ith frequency component.
void SetPointRe(int i, Double_t val)
Sets the real value of the ith frequency component.
Double_t GetPointRe(int i) const
Returns the real part of the ith frequency compnent.
Double_t GetPointIm(int i) const
Returns the imaginary part of the ith frequency compnent.
Double_t GetPointPhase(int i) const
Returns the phase of the ith frequency compnent (-pi,pi].
std::array< Double_t, 512/2+1 > TraceTrans
void GetDataFromFFT(const TVirtualFFT *fft)
Sets the real and imaginary parts of all frequency components from the TVirtualFFT.
Double_t GetPointMag(int i) const
Returns the magnitude of the ith frequency compnent.
void SetFFTData(TVirtualFFT *fft)
Sets the real and imaginary parts of all frequency components in a TVirtualFFT.