Changeset 1739 in Sophya for trunk/ArchTOIPipe/TestPipes


Ignore:
Timestamp:
Nov 8, 2001, 6:47:38 PM (24 years ago)
Author:
cmv
Message:

Le DataSmooth cmv 8/11/2001

Location:
trunk/ArchTOIPipe/TestPipes
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/ArchTOIPipe/TestPipes/tstktoibad.cc

    r1736 r1739  
    99#include "sophyainit.h"
    1010#include "ktoibad.h"
     11#include "smoothtoi.h"
    1112
    1213void usage(void);
     
    1819 <<" -g lg,lm,nsg,bupd"
    1920 <<" -a lmaround"
     21 <<" -S lsmooth,sdeg"
    2022 <<" -p lp,sn1,sn2"
    2123 <<endl;
     
    2729 int_4 lp=1,sn1=-1,sn2=-1;
    2830 uint_4 lg=3,lm=15,bupd=1000,lmaround=10;
     31 uint_4 lsmooth=1024,sdeg=2;
    2932 r_8 nsg=5.;
    3033 r_8 vmin=1.,vmax=-1.;
    3134 char *label_bolomuv = "boloMuV";
    3235  int c;
    33  while((c = getopt(narg,arg,"hs:g:d:b:a:p:")) != -1) {
     36 while((c = getopt(narg,arg,"hs:g:d:b:a:S:p:")) != -1) {
    3437  switch (c) {
    3538  case 's' :
     
    4447  case 'a' :
    4548   sscanf(optarg,"%d",&lmaround);
     49   break;
     50  case 'S' :
     51   sscanf(optarg,"%d,%d",&lsmooth,&sdeg);
    4652   break;
    4753  case 'b' :
     
    9096 flgaround.Print();
    9197
     98 DataSmooth dsmooth(lsmooth,sdeg);
     99 dsmooth.Print();
     100
    92101 ////// Creation des tuyaux et des connections associees
    93102 int taille = 8192;
     
    108117 flgaround.addInput("DataIn",toi2);
    109118
    110  // tuyau bolo pour entree fits writer
     119 // tuyau bolo pour smooth DataSmooth et fits writer
    111120 TOISegmented * toi3 = new TOISegmented("tuyau_bolo_3",taille);
    112121 flgaround.addOutput("DataOut",toi3);
     122 dsmooth.addInput("DataIn",toi3);
    113123 wfits.addInput(label_bolomuv,toi3,true);
     124
     125 // tuyau bolo pour entree fits writer
     126 TOISegmented * toi31 = new TOISegmented("tuyau_bolo_31",taille);
     127 dsmooth.addOutput("DataSmooth",toi31);
     128 wfits.addInput("smbolo",toi31,true);
    114129
    115130 // Print de status avant lancement des taches:
     
    123138 toi2->PrintStatus(cout); 
    124139 toi3->PrintStatus(cout); 
     140 toi31->PrintStatus(cout); 
    125141 cout<<"-----FlagOutOfRange ::PrintStatus() : -----"<<endl;
    126142 flgout.PrintStatus(cout); 
     
    129145 cout<<"-----FlagAround ::PrintStatus() : -----"<<endl;
    130146 flgaround.PrintStatus(cout); 
     147 cout<<"-----DataSmooth ::PrintStatus() : -----"<<endl;
     148 dsmooth.PrintStatus(cout); 
    131149
    132150 // Lancement des taches
     
    137155 deglitch.start();
    138156 flgaround.start(); 
     157 dsmooth.start(); 
    139158
    140159 // Gestion de la re-connection des threads
  • trunk/ArchTOIPipe/TestPipes/tsttoi2map.cc

    r1723 r1739  
    8585    cout<<"Requested Samples from "<<sdeb<<" , "<<sfin<<endl;
    8686    if(sfin>=sdeb) mgr->setRequestedSample(sdeb,sfin);
    87     else {cout<<"Bad sample interval "<<endl; exit(2);}
     87    //else {cout<<"Bad sample interval "<<endl; exit(2);}
    8888    break;
    8989  case 'w' :
Note: See TracChangeset for help on using the changeset viewer.