Changeset 2319 in Sophya for trunk/ArchTOIPipe


Ignore:
Timestamp:
Jan 30, 2003, 6:19:38 PM (23 years ago)
Author:
cecile
Message:

* empty log message *

Location:
trunk/ArchTOIPipe
Files:
2 edited

Legend:

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

    r2317 r2319  
    33//                               Christophe Magneville
    44//                               Reza Ansari
    5 // $Id: toi2ring.cc,v 1.1 2003-01-29 15:24:42 cecile Exp $
     5// $Id: toi2ring.cc,v 1.2 2003-01-30 17:19:25 cecile Exp $
    66
    77#include "toimanager.h"
     
    3232void Toi2RING::init() {
    3333  cout << "Toi2RING::init" << endl;
     34  declareInput("Theta");     // input  index 0
     35  declareInput("Phi");     // input  index 0
    3436  declareInput("Phase");     // input  index 0
    3537  declareInput("Value");     // input  index 1
     38  declareOutput("CircTheta");   // output index 0
     39  declareOutput("CircPhi");   // output index 0
    3640  declareOutput("Rvalue");   // output index 0
    37   declareOutput("WRvalue");   // output index 1
     41  //  declareOutput("WRvalue");   // output index 1
    3842}
    3943
     
    6468
    6569 
     70 
    6671for(int k=snb;k<=sne;k++) {
    6772
    6873  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);
    7178  mSnRead++;
    7279
     
    7582  wr[i]++;
    7683
     84  cout << phi << " " << phi_prec << " " << Nrings <<endl;
     85 
    7786  if(phi < phi_prec){
    7887   
     88    putData(0,Nrings,ctheta);
     89    putData(1,Nrings,cphi);
     90
    7991    for(i=0;i<Nsamples;i++) {
    8092      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]);
    8396      wr[i]=0;
    84       r[i]=-999999;
     97      r[i]=0.;
    8598    }
    8699   
  • trunk/ArchTOIPipe/TestPipes/tsttoi2ring.cc

    r2316 r2319  
    3232
    3333//-- Decodage arguments
    34  bool fgsegmented = true;
     34bool fgsegmented = true;
    3535int wsize = 512;
    36 char *label_phase = "BOLOMUVC_26",  *label_bolomuv = "BOLOMUVC_26";
     36char *label_phase = "PHASE",  *label_bolomuv = "BOLOMUVC_26";
     37char *label_theta = "THETA",  *label_phi = "PHI";
    3738bool snimplicit = false;
    3839
     
    8990 cout << label_phase <<endl;
    9091 
     92 plombier.Connect(rfitsp,label_theta,m2ring,"Theta");
     93 plombier.Connect(rfitsp,label_phi,m2ring,"Phi");
    9194 plombier.Connect(rfitsp,label_phase,m2ring,"Phase");
    9295 plombier.Connect(rfitsv,label_bolomuv,m2ring,"Value");
    9396 cout<<"file out "<<fitsout_value<< endl;
     97
     98 plombier.Connect(m2ring,"CircTheta",wfits,"CircTheta");
     99 plombier.Connect(m2ring,"CircPhi",wfits,"CircPhi");
    94100 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");
    96105 
    97106
Note: See TracChangeset for help on using the changeset viewer.