Changeset 2102 in Sophya for trunk/ArchTOIPipe


Ignore:
Timestamp:
Jul 16, 2002, 6:38:48 PM (23 years ago)
Author:
cecile
Message:

* empty log message *

Location:
trunk/ArchTOIPipe
Files:
3 edited

Legend:

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

    r2099 r2102  
    33//                               Christophe Magneville
    44//                               Reza Ansari
    5 // $Id: toi2toi_addsp.cc,v 1.2 2002-07-16 15:26:19 cecile Exp $
     5// $Id: toi2toi_addsp.cc,v 1.3 2002-07-16 16:38:48 cecile Exp $
    66
    77#include "machdefs.h"
     
    4545  declareInput("lat");
    4646 
    47   declareOutput("BoloOut"); 
     47  declareOutput("BoloOut");
    4848}
    4949
     
    131131return;     
    132132}
     133
     134//--------------------------------------------------------------------
     135//--------------------------------------------------------------------
     136//--------------------------------------------------------------------
     137//--------------------------------------------------------------------
     138//--------------------------------------------------------------------
     139//--------------------------------------------------------------------
     140void Fill_Info_scr(Info_src* scr, int_4 ns)
     141{
     142  for (int i=0; i<ns ; i++){
     143    scr[i].glon = 80.+i*10.;
     144    scr[i].glat = 0.;
     145    scr[i].amp  = 1.;
     146    scr[i].tau1 = 0.5;
     147    scr[i].tau2 = 0.5;
     148  }
     149}
  • trunk/ArchTOIPipe/ProcWSophya/toi2toi_addsp.h

    r2099 r2102  
    55//                               Christophe Magneville
    66//                               Reza Ansari
    7 // $Id: toi2toi_addsp.h,v 1.2 2002-07-16 15:26:19 cecile Exp $
     7// $Id: toi2toi_addsp.h,v 1.3 2002-07-16 16:38:48 cecile Exp $
    88
    99#ifndef TOI2MAP_H
     
    4141  double amp,tau1,tau2;
    4242};
    43 
    44 void Fill_Info_scr(Info_src* scr, int_4 ns);
    4543
    4644class Toi2toi_Addsp : public TOIProcessor {
     
    8078  void Print(::ostream & os);
    8179
     80  static void Fill_Info_scr(Info_src* scr, int_4 ns);
     81
    8282protected:
    8383
  • trunk/ArchTOIPipe/TestPipes/tsttoi2toi_addsp.cc

    r2099 r2102  
    170170try {
    171171//--------------------------------------------------------------------
    172 
     172  cout << wsize << " ok ! " << endl;
     173 
    173174  CGT plombier(fgsegmented,wsize);
    174175  plombier.SetDebugLevel(99);
    175176 
    176177 // FITS reader
    177  FITSTOIReader rfitsb(fitsin_bolo);
    178  FITSTOIReader rfitsp(fitsin_point);
    179  FITSTOIReader rfitsu(fitsin_utc);
    180  FITSTOIReader rfitsl(fitsin_lon);
    181  FITSTOIReader rfitsL(fitsin_lat);
    182  FITSTOIWriter wfits(fitsout);
    183 
    184  Info_src* scr;
    185  Fill_Info_scr(scr,ns);
     178  FITSTOIReader rfitsb(fitsin_bolo);
     179  FITSTOIReader rfitsp(fitsin_point);
     180  FITSTOIReader rfitsu(fitsin_utc);
     181  FITSTOIReader rfitsl(fitsin_lon);
     182  FITSTOIReader rfitsL(fitsin_lat);
     183  FITSTOIWriter wfits(fitsout);
     184
     185  Info_src* scr;
     186  Toi2toi_Addsp::Fill_Info_scr(scr,ns);
    186187 
    187188 // TOI Processor
    188  Toi2toi_Addsp toi2t_sp(scr,ns);
    189  cout<<"Toi2toi_Addsp created"<<endl;
    190 
    191  toi2t_sp.SetEquinox(equi);
    192  toi2t_sp.SetCoorIn(tcoorin);
    193  toi2t_sp.SetCoorMap(tcoormap);
    194  toi2t_sp.SetTestFlag(tflg,badflg);
    195  toi2t_sp.SetTestMin(tmin,vmin);
    196  toi2t_sp.SetTestMax(tmax,vmax);
    197  toi2t_sp.Print(cout);
     189//  Toi2toi_Addsp toi2t_sp(scr,ns);
     190//  cout<<"Toi2toi_Addsp created"<<endl;
     191
     192//  toi2t_sp.SetEquinox(equi);
     193//  toi2t_sp.SetCoorIn(tcoorin);
     194//  toi2t_sp.SetCoorMap(tcoormap);
     195//  toi2t_sp.SetTestFlag(tflg,badflg);
     196//  toi2t_sp.SetTestMin(tmin,vmin);
     197//  toi2t_sp.SetTestMax(tmax,vmax);
     198//  toi2t_sp.Print(cout);
    198199
    199200 // Definition des tuyaux
    200  plombier.Connect(toi2t_sp,"BoloOut",wfits,label_bolo_out);
    201  plombier.Connect(rfitsb,label_bolo_in,toi2t_sp,"BoloIn");
    202201 
    203202 // pb dans  prout.addOutput(out, toi);
    204  cout << " tout va bien " << endl;
     203 cout << " tout va bien " <<label_coord2 << endl;
     204
     205 plombier.Connect(rfitsp,label_coord1,wfits,label_bolo_out);
     206
    205207 //pb dans chkinit(); dans  afterinit()
    206  plombier.Connect(rfitsp,label_coord1,toi2t_sp,"Coord1In");
    207  cout << " ca va plus " << endl;
    208 
    209  plombier.Connect(rfitsp,label_coord2,toi2t_sp,"Coord2In");
    210 
    211  plombier.Connect(rfitsu,label_utc,toi2t_sp,"utc");
    212  plombier.Connect(rfitsl,label_lon,toi2t_sp,"lon");
    213  plombier.Connect(rfitsL,label_lat,toi2t_sp,"lat");
    214 
     208//   plombier.Connect(rfitsp,label_coord2,toi2t_sp,"Coord2In");
     209//   plombier.Connect(rfitsp,label_coord1,toi2t_sp,"Coord1In");
     210
     211//   plombier.Connect(rfitsb,label_bolo_in,toi2t_sp,"BoloIn");
     212
     213//   plombier.Connect(rfitsu,label_utc,toi2t_sp,"utc");
     214//   plombier.Connect(rfitsl,label_lon,toi2t_sp,"lon");
     215//   plombier.Connect(rfitsL,label_lat,toi2t_sp,"lat");
     216
     217//   plombier.Connect(toi2t_sp,"BoloOut",wfits,label_bolo_out);
     218 // plombier.Connect(rfitsp,label_coord1,wfits,label_bolo_out);
     219 cout << " tout va bien " <<label_coord2 << endl;
    215220
    216221 // Run
     
    240245}
    241246
    242 //--------------------------------------------------------------------
    243 //--------------------------------------------------------------------
    244 //--------------------------------------------------------------------
    245 //--------------------------------------------------------------------
    246 //--------------------------------------------------------------------
    247 //--------------------------------------------------------------------
    248 void Fill_Info_scr(Info_src* scr, int_4 ns)
    249 {
    250   for (int i=0; i<ns ; i++){
    251     scr[i].glon = 80.+i*10.;
    252     scr[i].glat = 0.;
    253     scr[i].amp  = 1.;
    254     scr[i].tau1 = 0.5;
    255     scr[i].tau2 = 0.5;
    256   }
    257 }
Note: See TracChangeset for help on using the changeset viewer.