Changeset 2361 in Sophya for trunk/ArchTOIPipe/ProcWSophya/ring2cout.cc
- Timestamp:
- Apr 17, 2003, 3:47:34 PM (22 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/ArchTOIPipe/ProcWSophya/ring2cout.cc
r2360 r2361 3 3 // Christophe Magneville 4 4 // Reza Ansari 5 // $Id: ring2cout.cc,v 1. 4 2003-04-04 14:17:37cecile Exp $5 // $Id: ring2cout.cc,v 1.5 2003-04-17 13:47:34 cecile Exp $ 6 6 7 7 #include "toimanager.h" … … 33 33 void Ring2cout::init() { 34 34 cout << "Ring2cout::init" << endl; 35 declareInput("Theta"); // input index 0 36 declareInput("Phi"); // input index 1 37 declareInput("Phase"); // input index 2 35 declareInput("Phase"); // input index 0 38 36 } 39 37 … … 46 44 47 45 cout << " ring " << Nrings << " ns " << Nsamples<< endl; 48 double ctheta[Nsamples],cphi[Nsamples],val[Nsamples];46 double val[Nsamples]; 49 47 for (int k=0; k<Nrings; k++) { 50 48 51 getData(0,k*Nsamples,Nsamples,ctheta); 52 getData(1,k*Nsamples,Nsamples,cphi); 53 getData(2,k*Nsamples,Nsamples,val); 49 double theta= getData(0,k*(Nsamples+2)+0); 50 double phi = getData(0,k*(Nsamples+2)+1); 51 cout << Nrings << " " << k <<" " <<theta <<" " <<phi<< endl; 52 getData(0,k*(Nsamples+2)+2,Nsamples,val); 54 53 mSnRead ++; 55 54 56 55 for (int i=0; i< Nsamples;i++) 57 cout << Nrings << " " << k <<" " << i <<" " << ctheta[i] << " " << cphi[i]<< " " << val[i]<< endl;58 totnscount+=Nsamples ;56 cout << i << " " << val[i]<< endl; 57 totnscount+=Nsamples+2; 59 58 60 59 }
Note:
See TracChangeset
for help on using the changeset viewer.