Changeset 2355 in Sophya for trunk/ArchTOIPipe/ProcWSophya
- Timestamp:
- Mar 28, 2003, 5:06:40 PM (23 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/ArchTOIPipe/ProcWSophya/toi2ring.cc
r2331 r2355 3 3 // Christophe Magneville 4 4 // Reza Ansari 5 // $Id: toi2ring.cc,v 1. 4 2003-02-24 14:47:10cecile Exp $5 // $Id: toi2ring.cc,v 1.5 2003-03-28 16:06:17 cecile Exp $ 6 6 7 7 #include "toimanager.h" … … 61 61 int_8 Nrings=0,i; 62 62 63 double phi_prec=-1.; 63 double phi_prec=-1.,ctheta_prec,cphi_prec; 64 double phi,val,ctheta,cphi; 65 64 66 double* r = new double[Nsamples]; 65 67 double* wr = new double[Nsamples]; … … 69 71 } 70 72 71 72 73 cout << "loop " << snb << " " << sne << endl; 73 74 … … 75 76 76 77 uint_8 flg = 0; 77 doublectheta = getData(0,k);78 doublecphi = getData(1,k);79 doublephi = getData(2,k);80 doubleval = getData(3,k);78 ctheta = getData(0,k); 79 cphi = getData(1,k); 80 phi = getData(2,k); 81 val = getData(3,k); 81 82 mSnRead++; 82 83 … … 85 86 wr[i]++; 86 87 87 cout << k << " " << phi << " " << phi_prec << " " << Nrings <<endl;88 88 89 89 if(phi < phi_prec || k == sne){ 90 91 // if (k==sne) { wfits.setNRings(Nrings); wwfits.setNRings(Nrings);} 90 92 91 93 for(i=0;i<Nsamples;i++) { 92 94 if(wr[i] == 0) r[i] = -999999.; 93 95 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); 97 99 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); 100 102 putData(5,Nrings*Nsamples+i,wr[i]); 101 103 wr[i]=0; 102 104 r[i]=0.; 105 103 106 } 104 107 105 Nrings++; 106 return; 107 108 Nrings++; 109 cout <<" Ring "<< Nrings << " written " << endl; 108 110 } 109 110 111 111 phi_prec=phi; 112 ctheta_prec=ctheta; 113 cphi_prec=cphi; 112 114 totnscount++; 113 } 115 } 114 116 115 117 cout<<"RING2Toi::run: Samples Read "<<mSnRead
Note:
See TracChangeset
for help on using the changeset viewer.