#ifndef ETA_INTERPOLATION_POSXY_H #define ETA_INTERPOLATION_POSXY_H #include "tiffIO.h" #include "etaInterpolationBase.h" class etaInterpolationPosXY : public etaInterpolationBase{ public: etaInterpolationPosXY(int nx=400, int ny=400, int ns=25, int nb=-1, double emin=1, double emax=0) : etaInterpolationBase(nx,ny,ns, nb, emin,emax){}; etaInterpolationPosXY(etaInterpolationPosXY *orig): etaInterpolationBase(orig){}; virtual etaInterpolationPosXY* Clone() { return new etaInterpolationPosXY(this); }; virtual void prepareInterpolation(int &ok) { cout <<"?"<< endl; ok=1; #ifdef MYROOT1 if (hhx) delete hhx; if (hhy) delete hhy; hhx=new TH2D("hhx","hhx",heta->GetNbinsX(),heta->GetXaxis()->GetXmin(),heta->GetXaxis()->GetXmax(), heta->GetNbinsY(),heta->GetYaxis()->GetXmin(),heta->GetYaxis()->GetXmax()); hhy=new TH2D("hhy","hhy",heta->GetNbinsX(),heta->GetXaxis()->GetXmin(),heta->GetXaxis()->GetXmax(), heta->GetNbinsY(),heta->GetYaxis()->GetXmin(),heta->GetYaxis()->GetXmax()); #endif ///*Eta Distribution Rebinning*/// double bsize=1./nSubPixels; //precision // cout<<"nPixelsX = "<(ii+1)*tot_eta_x*bsize) ii++; #ifdef MYROOT1 hhx->SetBinContent(ibx+1,ib+1,ii); #endif #ifndef MYROOT1 hhx[ibx+ib*nbeta]=ii; #endif } ii=0; for (int ibx=0; ibx(ii+1)*tot_eta_y*bsize) ii++; #ifdef MYROOT1 hhy->SetBinContent(ib+1,ibx+1,ii); #endif #ifndef MYROOT1 hhy[ib+ibx*nbeta]=ii; #endif } } #ifdef SAVE_ALL char tit[10000]; float *etah=new float[nbeta*nbeta]; int etabins=nbeta; for (int ii=0; ii