ATTPCROOT  0.3.0-alpha
A ROOT-based framework for analyzing data from active target detectors
Public Types | Public Member Functions | Static Public Member Functions | Protected Attributes | List of all members
AtPadFFT Class Reference

#include <AtPadFFT.h>

Inheritance diagram for AtPadFFT:
Inheritance graph
[legend]
Collaboration diagram for AtPadFFT:
Collaboration graph
[legend]

Public Types

using TraceTrans = std::array< Double_t, 512/2+1 >
 

Public Member Functions

virtual std::unique_ptr< AtPadBaseClone () const override
 
Double_t GetPointRe (int i) const
 Returns the real part of the ith frequency compnent. More...
 
Double_t GetPointIm (int i) const
 Returns the imaginary part of the ith frequency compnent. More...
 
Double_t GetPointMag (int i) const
 Returns the magnitude of the ith frequency compnent. More...
 
Double_t GetPointPhase (int i) const
 Returns the phase of the ith frequency compnent (-pi,pi]. More...
 
TComplex GetPointComplex (int i) const
 
std::pair< Double_t, Double_t > GetPoint (int i) const
 
void SetPointRe (int i, Double_t val)
 Sets the real value of the ith frequency component. More...
 
void SetPointIm (int i, Double_t val)
 Sets the imaginary value of the ith frequency component. More...
 
void SetPoint (int i, TComplex val)
 
void SetData (TraceTrans re, TraceTrans im)
 Sets the real and imaginary parts of all frequency components. More...
 
void GetDataFromFFT (const TVirtualFFT *fft)
 Sets the real and imaginary parts of all frequency components from the TVirtualFFT. More...
 
void SetFFTData (TVirtualFFT *fft)
 Sets the real and imaginary parts of all frequency components in a TVirtualFFT. More...
 
 ClassDefOverride (AtPadFFT, 1)
 
- Public Member Functions inherited from AtPadBase
virtual ~AtPadBase ()=default
 
 ClassDefOverride (AtPadBase, 1)
 

Static Public Member Functions

static std::unique_ptr< AtPadFFTCreateFromFFT (const TVirtualFFT *fft)
 

Protected Attributes

TraceTrans fRe
 
TraceTrans fIm
 

Detailed Description

Definition at line 19 of file AtPadFFT.h.

Member Typedef Documentation

◆ TraceTrans

using AtPadFFT::TraceTrans = std::array<Double_t, 512 / 2 + 1>

Definition at line 21 of file AtPadFFT.h.

Member Function Documentation

◆ ClassDefOverride()

AtPadFFT::ClassDefOverride ( AtPadFFT  ,
 
)

◆ Clone()

std::unique_ptr< AtPadBase > AtPadFFT::Clone ( ) const
overridevirtual

Implements AtPadBase.

Definition at line 9 of file AtPadFFT.cxx.

◆ CreateFromFFT()

std::unique_ptr< AtPadFFT > AtPadFFT::CreateFromFFT ( const TVirtualFFT *  fft)
static

Definition at line 112 of file AtPadFFT.cxx.

◆ GetDataFromFFT()

void AtPadFFT::GetDataFromFFT ( const TVirtualFFT *  fft)

Sets the real and imaginary parts of all frequency components from the TVirtualFFT.

Definition at line 84 of file AtPadFFT.cxx.

◆ GetPoint()

std::pair<Double_t, Double_t> AtPadFFT::GetPoint ( int  i) const
inline

Definition at line 36 of file AtPadFFT.h.

◆ GetPointComplex()

TComplex AtPadFFT::GetPointComplex ( int  i) const
inline

Definition at line 35 of file AtPadFFT.h.

◆ GetPointIm()

Double_t AtPadFFT::GetPointIm ( int  i) const

Returns the imaginary part of the ith frequency compnent.

Definition at line 29 of file AtPadFFT.cxx.

◆ GetPointMag()

Double_t AtPadFFT::GetPointMag ( int  i) const

Returns the magnitude of the ith frequency compnent.

Definition at line 39 of file AtPadFFT.cxx.

◆ GetPointPhase()

Double_t AtPadFFT::GetPointPhase ( int  i) const

Returns the phase of the ith frequency compnent (-pi,pi].

Definition at line 46 of file AtPadFFT.cxx.

◆ GetPointRe()

Double_t AtPadFFT::GetPointRe ( int  i) const

Returns the real part of the ith frequency compnent.

Definition at line 17 of file AtPadFFT.cxx.

◆ SetData()

void AtPadFFT::SetData ( TraceTrans  re,
TraceTrans  im 
)

Sets the real and imaginary parts of all frequency components.

Definition at line 74 of file AtPadFFT.cxx.

◆ SetFFTData()

void AtPadFFT::SetFFTData ( TVirtualFFT *  fft)

Sets the real and imaginary parts of all frequency components in a TVirtualFFT.

Definition at line 100 of file AtPadFFT.cxx.

◆ SetPoint()

void AtPadFFT::SetPoint ( int  i,
TComplex  val 
)

Definition at line 105 of file AtPadFFT.cxx.

◆ SetPointIm()

void AtPadFFT::SetPointIm ( int  i,
Double_t  val 
)

Sets the imaginary value of the ith frequency component.

Definition at line 63 of file AtPadFFT.cxx.

◆ SetPointRe()

void AtPadFFT::SetPointRe ( int  i,
Double_t  val 
)

Sets the real value of the ith frequency component.

Definition at line 53 of file AtPadFFT.cxx.

Member Data Documentation

◆ fIm

TraceTrans AtPadFFT::fIm
protected

Definition at line 26 of file AtPadFFT.h.

◆ fRe

TraceTrans AtPadFFT::fRe
protected

Definition at line 25 of file AtPadFFT.h.


The documentation for this class was generated from the following files: