Changeset 2319 in Sophya for trunk/ArchTOIPipe/ProcWSophya
- Timestamp:
- Jan 30, 2003, 6:19:38 PM (23 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/ArchTOIPipe/ProcWSophya/toi2ring.cc
r2317 r2319 3 3 // Christophe Magneville 4 4 // Reza Ansari 5 // $Id: toi2ring.cc,v 1. 1 2003-01-29 15:24:42cecile Exp $5 // $Id: toi2ring.cc,v 1.2 2003-01-30 17:19:25 cecile Exp $ 6 6 7 7 #include "toimanager.h" … … 32 32 void Toi2RING::init() { 33 33 cout << "Toi2RING::init" << endl; 34 declareInput("Theta"); // input index 0 35 declareInput("Phi"); // input index 0 34 36 declareInput("Phase"); // input index 0 35 37 declareInput("Value"); // input index 1 38 declareOutput("CircTheta"); // output index 0 39 declareOutput("CircPhi"); // output index 0 36 40 declareOutput("Rvalue"); // output index 0 37 declareOutput("WRvalue"); // output index 141 // declareOutput("WRvalue"); // output index 1 38 42 } 39 43 … … 64 68 65 69 70 66 71 for(int k=snb;k<=sne;k++) { 67 72 68 73 uint_8 flg = 0; 69 double phi = getData(0,k); 70 double val = getData(1,k); 74 double ctheta = getData(0,k); 75 double cphi = getData(1,k); 76 double phi = getData(2,k); 77 double val = getData(3,k); 71 78 mSnRead++; 72 79 … … 75 82 wr[i]++; 76 83 84 cout << phi << " " << phi_prec << " " << Nrings <<endl; 85 77 86 if(phi < phi_prec){ 78 87 88 putData(0,Nrings,ctheta); 89 putData(1,Nrings,cphi); 90 79 91 for(i=0;i<Nsamples;i++) { 80 92 if(wr[i] == 0) r[i] = -999999.; 81 putData(0,Nrings*Nsamples+i,r[i]); 82 putData(1,Nrings*Nsamples+i,wr[i]); 93 cout << i << " " << Nrings << " " << Nsamples << " " << ctheta << " " << cphi << " " << r[i]<< endl; 94 putData(2,Nrings*Nsamples+i,r[i]); 95 // putData(1,Nrings*Nsamples+i,wr[i]); 83 96 wr[i]=0; 84 r[i]= -999999;97 r[i]=0.; 85 98 } 86 99
Note:
See TracChangeset
for help on using the changeset viewer.