Changeset 3053 for trunk/MagicSoft/Mars
- Timestamp:
- 02/08/04 20:41:14 (21 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/Changelog
r3051 r3053 20 20 * manalysis/MHPedestalPixel.cc 21 21 - increased number of bins in for charges plot 22 23 * mtools/MFFT.[h,cc] 24 - possibility to have PSD directly from TArray 22 25 23 26 -
trunk/MagicSoft/Mars/mtools/MFFT.h
r2854 r3053 29 29 void Swap(Double_t &a, Double_t &b) { Double_t c = a; a = b; b = c; } 30 30 31 void TransformF(const Int_t isign );32 void TransformD(const Int_t isign );31 void TransformF(const Int_t isign, TArrayF &data); 32 void TransformD(const Int_t isign, TArrayD &data); 33 33 void RealFTF(const Int_t isign); 34 34 void RealFTD(const Int_t isign); … … 36 36 void CheckDim(Int_t a); 37 37 TH1 *CheckHist(const TH1 *hist, const Int_t flag); 38 39 Float_t ApplyWindow(const Int_t j, const Float_t a, const Float_t b) const 40 { 41 42 return 1.0-TMath::Abs((j-a)*b); // Bartlett 43 // return 1.0; // Square 44 // return 1.0-(((j-a)*b)*((j-a)*b)); // Welch 45 46 } 38 47 39 48 Int_t fDim; 40 49 TArrayF fDataF; 41 50 TArrayD fDataD; 51 TArrayF fWindowF; 52 TArrayD fWindowD; 42 53 43 54 public: … … 58 69 Double_t* RealFunctionIFFT(const Int_t n, const Double_t *data); 59 70 71 TH1F* PowerSpectrumDensity(const TH1 *hist); 60 72 TH1F* PowerSpectrumDensity(const TH1F *hist); 73 TH1F* PowerSpectrumDensity(const TH1I *hist); 61 74 TH1D* PowerSpectrumDensity(const TH1D *hist); 75 76 TArrayF* PowerSpectrumDensity(const TArrayF *array); 77 TArrayD* PowerSpectrumDensity(const TArrayD *array); 78 79 TArrayF* RealFunctionSpectrum(const TArrayF *data); 62 80 63 81 ClassDef(MFFT,0) // Class to perform a Fast Fourier Transform
Note:
See TracChangeset
for help on using the changeset viewer.