Changeset 2319 in Sophya for trunk/ArchTOIPipe
- Timestamp:
- Jan 30, 2003, 6:19:38 PM (23 years ago)
- Location:
- trunk/ArchTOIPipe
- Files:
-
- 2 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 -
trunk/ArchTOIPipe/TestPipes/tsttoi2ring.cc
r2316 r2319 32 32 33 33 //-- Decodage arguments 34 34 bool fgsegmented = true; 35 35 int wsize = 512; 36 char *label_phase = "BOLOMUVC_26", *label_bolomuv = "BOLOMUVC_26"; 36 char *label_phase = "PHASE", *label_bolomuv = "BOLOMUVC_26"; 37 char *label_theta = "THETA", *label_phi = "PHI"; 37 38 bool snimplicit = false; 38 39 … … 89 90 cout << label_phase <<endl; 90 91 92 plombier.Connect(rfitsp,label_theta,m2ring,"Theta"); 93 plombier.Connect(rfitsp,label_phi,m2ring,"Phi"); 91 94 plombier.Connect(rfitsp,label_phase,m2ring,"Phase"); 92 95 plombier.Connect(rfitsv,label_bolomuv,m2ring,"Value"); 93 96 cout<<"file out "<<fitsout_value<< endl; 97 98 plombier.Connect(m2ring,"CircTheta",wfits,"CircTheta"); 99 plombier.Connect(m2ring,"CircPhi",wfits,"CircPhi"); 94 100 plombier.Connect(m2ring,"Rvalue",wfits,"signal"); 95 plombier.Connect(m2ring,"WRvalue",wwfits,"signal"); 101 102 // plombier.Connect(m2ring,"CircTheta",wwfits,"CircTheta"); 103 // plombier.Connect(m2ring,"CircPhi",wwfits,"CircPhi"); 104 // plombier.Connect(m2ring,"WRvalue",wwfits,"signal"); 96 105 97 106
Note:
See TracChangeset
for help on using the changeset viewer.