Changeset 2360 in Sophya for trunk/ArchTOIPipe/ProcWSophya/ring2cout.cc
- Timestamp:
- Apr 4, 2003, 4:17:37 PM (22 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/ArchTOIPipe/ProcWSophya/ring2cout.cc
r2359 r2360 3 3 // Christophe Magneville 4 4 // Reza Ansari 5 // $Id: ring2cout.cc,v 1. 3 2003-04-01 13:27:48 aubourgExp $5 // $Id: ring2cout.cc,v 1.4 2003-04-04 14:17:37 cecile Exp $ 6 6 7 7 #include "toimanager.h" … … 13 13 14 14 //////////////////////////////////////////////////////////////////////// 15 Ring2cout::Ring2cout(long n )16 :totnscount(0) , nRings(1)15 Ring2cout::Ring2cout(long ns, long nr) 16 :totnscount(0) 17 17 { 18 setNSamples(n); 18 setNSamples(ns); 19 setNRings(nr); 19 20 } 20 21 … … 40 41 void Ring2cout::run() { 41 42 42 cout << "///////////////////////////////// coucou !" << endl;43 44 45 46 43 //--------------------------------------------------------- 47 44 try { 48 45 uint_4 mSnRead=0, mSnFilled=0, BadCoorRange=0; 46 47 cout << " ring " << Nrings << " ns " << Nsamples<< endl; 49 48 double ctheta[Nsamples],cphi[Nsamples],val[Nsamples]; 50 51 for (int k=0; k<nRings; k++) { 49 for (int k=0; k<Nrings; k++) { 52 50 53 51 getData(0,k*Nsamples,Nsamples,ctheta); … … 55 53 getData(2,k*Nsamples,Nsamples,val); 56 54 mSnRead ++; 57 wontNeedBefore(k*Nsamples);58 55 59 cout << " ring " << k << endl; 60 for (int i=i; i< Nsamples;i++) 61 cout << ctheta[i] << " " << cphi[i]<< " " << val[i]<< endl; 62 totnscount++; 56 for (int i=0; i< Nsamples;i++) 57 cout << Nrings << " " << k <<" " << i <<" " << ctheta[i] << " " << cphi[i]<< " " << val[i]<< endl; 58 totnscount+=Nsamples; 63 59 64 60 } 65 66 cout<<"RING2 Toi::run: Samples Read "<<mSnRead61 62 cout<<"RING2cout::run: Samples Read "<<mSnRead 67 63 <<" Filled "<<mSnFilled 68 64 <<" BadCoorRange="<<BadCoorRange<<endl;
Note:
See TracChangeset
for help on using the changeset viewer.