Changeset 2361 in Sophya for trunk/ArchTOIPipe/ProcWSophya/toi2ring.cc
- Timestamp:
- Apr 17, 2003, 3:47:34 PM (22 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/ArchTOIPipe/ProcWSophya/toi2ring.cc
r2355 r2361 3 3 // Christophe Magneville 4 4 // Reza Ansari 5 // $Id: toi2ring.cc,v 1. 5 2003-03-28 16:06:17cecile Exp $5 // $Id: toi2ring.cc,v 1.6 2003-04-17 13:47:34 cecile Exp $ 6 6 7 7 #include "toimanager.h" … … 33 33 cout << "Toi2RING::init" << endl; 34 34 declareInput("Theta"); // input index 0 35 declareInput("Phi"); // input index 135 declareInput("Phi"); // input index 1 36 36 declareInput("Phase"); // input index 2 37 37 declareInput("Value"); // input index 3 38 declareOutput("CircTheta"); // output index 0 39 declareOutput("CircPhi"); // output index 1 40 declareOutput("Rvalue"); // output index 2 41 declareOutput("WCircTheta"); // output index 3 42 declareOutput("WCircPhi"); // output index 4 43 declareOutput("WRvalue"); // output index 5 38 declareOutput("Rvalue"); // output index 0 39 declareOutput("WRvalue"); // output index 1 44 40 } 45 41 … … 91 87 // if (k==sne) { wfits.setNRings(Nrings); wwfits.setNRings(Nrings);} 92 88 89 putData(0,Nrings*(Nsamples+2)+0,ctheta_prec); 90 putData(1,Nrings*(Nsamples+2)+0,ctheta_prec); 91 putData(0,Nrings*(Nsamples+2)+1,cphi_prec); 92 putData(1,Nrings*(Nsamples+2)+1,cphi_prec); 93 cout << Nsamples << " !@@@@@@@@@@@@@@@@@@@@@@@@@@@@@" << endl; 93 94 for(i=0;i<Nsamples;i++) { 94 95 if(wr[i] == 0) r[i] = -999999.; 95 96 else r[i] /= wr[i]; 96 97 97 putData(0,Nrings*Nsamples+i,ctheta_prec); 98 putData(1,Nrings*Nsamples+i,cphi_prec); 99 putData(2,Nrings*Nsamples+i,r[i]); 100 putData(3,Nrings*Nsamples+i,ctheta_prec); 101 putData(4,Nrings*Nsamples+i,cphi_prec); 102 putData(5,Nrings*Nsamples+i,wr[i]); 98 putData(0,Nrings*(Nsamples+2)+2+i,r[i]); 99 putData(1,Nrings*(Nsamples+2)+2+i,wr[i]); 103 100 wr[i]=0; 104 101 r[i]=0.;
Note:
See TracChangeset
for help on using the changeset viewer.