Ignore:
Timestamp:
Mar 28, 2003, 5:06:40 PM (23 years ago)
Author:
cecile
Message:

ok

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ArchTOIPipe/ProcWSophya/toi2ring.cc

    r2331 r2355  
    33//                               Christophe Magneville
    44//                               Reza Ansari
    5 // $Id: toi2ring.cc,v 1.4 2003-02-24 14:47:10 cecile Exp $
     5// $Id: toi2ring.cc,v 1.5 2003-03-28 16:06:17 cecile Exp $
    66
    77#include "toimanager.h"
     
    6161 int_8 Nrings=0,i;
    6262 
    63  double phi_prec=-1.;
     63 double phi_prec=-1.,ctheta_prec,cphi_prec;
     64 double phi,val,ctheta,cphi;
     65
    6466 double* r = new double[Nsamples];
    6567 double* wr = new double[Nsamples];
     
    6971 }
    7072
    71  
    7273 cout << "loop " << snb << " " << sne << endl;
    7374 
     
    7576
    7677  uint_8 flg = 0;
    77   double ctheta = getData(0,k);
    78   double cphi = getData(1,k);
    79   double phi = getData(2,k);
    80   double val = getData(3,k);
     78  ctheta = getData(0,k);
     79  cphi = getData(1,k);
     80  phi = getData(2,k);
     81  val = getData(3,k);
    8182  mSnRead++;
    8283
     
    8586  wr[i]++;
    8687
    87   cout << k << " " << phi << " " << phi_prec << " " << Nrings <<endl;
    8888 
    8989  if(phi < phi_prec || k == sne){
     90   
     91    //  if (k==sne) { wfits.setNRings(Nrings); wwfits.setNRings(Nrings);}
    9092   
    9193    for(i=0;i<Nsamples;i++) {
    9294      if(wr[i] == 0) r[i] = -999999.;
    9395      else r[i] /= wr[i];
    94       cout << "PUT " << i << " " << Nrings << " " << Nsamples << " " << ctheta << " " << cphi << " " << r[i]<< endl;
    95       putData(0,Nrings*Nsamples+i,ctheta);
    96       putData(1,Nrings*Nsamples+i,cphi);
     96     
     97      putData(0,Nrings*Nsamples+i,ctheta_prec);
     98      putData(1,Nrings*Nsamples+i,cphi_prec);
    9799      putData(2,Nrings*Nsamples+i,r[i]);
    98       putData(3,Nrings*Nsamples+i,ctheta);
    99       putData(4,Nrings*Nsamples+i,cphi);
     100      putData(3,Nrings*Nsamples+i,ctheta_prec);
     101      putData(4,Nrings*Nsamples+i,cphi_prec);
    100102      putData(5,Nrings*Nsamples+i,wr[i]);
    101103      wr[i]=0;
    102104      r[i]=0.;
     105   
    103106    }
    104107   
    105     Nrings++;
    106     return;
    107    
     108    Nrings++;   
     109    cout <<" Ring "<< Nrings << " written " << endl;
    108110  }
    109  
    110 
    111111  phi_prec=phi;
     112  ctheta_prec=ctheta;
     113  cphi_prec=cphi;
    112114  totnscount++;
    113 }
     115} 
    114116
    115117cout<<"RING2Toi::run: Samples Read "<<mSnRead
Note: See TracChangeset for help on using the changeset viewer.