/* ======================================================================== *\ ! ! * ! * This file is part of MARS, the MAGIC Analysis and Reconstruction ! * Software. It is distributed to you in the hope that it can be a useful ! * and timesaving tool in analysing Data of imaging Cerenkov telescopes. ! * It is distributed WITHOUT ANY WARRANTY. ! * ! * Permission to use, copy, modify and distribute this software and its ! * documentation for any purpose is hereby granted without fee, ! * provided that the above copyright notice appear in all copies and ! * that both that copyright notice and this permission notice appear ! * in supporting documentation. It is provided "as is" without express ! * or implied warranty. ! * ! ! ! Author(s): Christoph Kolodziejski, 11/2004 ! Author(s): Thomas Bretz, 11/2004 ! ! Copyright: MAGIC Software Development, 2004 ! ! \* ======================================================================== */ ////////////////////////////////////////////////////////////////////////////// // ////////////////////////////////////////////////////////////////////////////// #include "MHexagonFFT.h" #include #include "MLog.h" #include "MLogManip.h" ClassImp(MHexagonFFT); using namespace std; // --------------------------------------------------------------------------- // // Default Constructor // Initializes random number generator and default variables // MHexagonFFT::MHexagonFFT() { } /* void MHexagonFFT::Prepare(Int_t num, Float_t scale) { //Int_t num = 34; //Double_t scale = dist_y/dist_x; Int_t cnt = 108*num*num; psire.Set(num*num); psiim.Set(num*num); // for(int j=0; jfM[idx1] && fwd) continue; Double_t sumre=0; Double_t sumim=0; Float_t *psi = fPsi.GetArray() + idx1*lim*2; Float_t *p = fP.GetArray(); Double_t *im = inim.GetArray(); Double_t *re = inre.GetArray(); while (pfM[idx1]) continue; Double_t sumre=0; Double_t sumim=0; Float_t *psi = fPsi.GetArray() + idx1*num*2; Float_t *p = fP.GetArray(); Double_t *re = inre.GetArray(); // 1st access to psi: const Float_t psire = *psi++; // 2nd access to psi: const Float_t psiim = *psi++; // sumre += f * *psire; // sumim += f * *psiim; while (p0 && fwd) continue; Double_t sumre=0; Double_t sumim=0; Int_t lim = num*(num+1)/2; for (int idx0=0; idx00 && fwd) continue; Double_t sumre=0; Double_t sumim=0; for(int k=0; k0 && fwd) continue; Double_t sumre=0; Double_t sumim=0; for(int k=0; k