Ignore:
Timestamp:
Apr 17, 2003, 3:47:34 PM (22 years ago)
Author:
cecile
Message:

nouveaux tuyaux de ring : theta, phi puis Nsamples mesures

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ArchTOIPipe/ProcWSophya/ring2cout.cc

    r2360 r2361  
    33//                               Christophe Magneville
    44//                               Reza Ansari
    5 // $Id: ring2cout.cc,v 1.4 2003-04-04 14:17:37 cecile Exp $
     5// $Id: ring2cout.cc,v 1.5 2003-04-17 13:47:34 cecile Exp $
    66
    77#include "toimanager.h"
     
    3333void Ring2cout::init() {
    3434  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
    3836}
    3937
     
    4644
    4745  cout << " ring " << Nrings << " ns " << Nsamples<< endl;
    48   double ctheta[Nsamples],cphi[Nsamples],val[Nsamples];
     46  double val[Nsamples];
    4947  for (int k=0; k<Nrings; k++) {
    5048   
    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);
    5453    mSnRead ++;
    5554   
    5655    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;
    5958   
    6059  }
Note: See TracChangeset for help on using the changeset viewer.