Changeset 1736 in Sophya for trunk/ArchTOIPipe/TestPipes


Ignore:
Timestamp:
Nov 7, 2001, 6:31:37 PM (24 years ago)
Author:
cmv
Message:

add FlagOutOfRange cmv 7/11/2001

File:
1 edited

Legend:

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

    r1735 r1736  
    1515 <<" -s sdeb,sfin"
    1616 <<" -b label_bolomuv"
     17 <<" -d vmin,vmax"
    1718 <<" -g lg,lm,nsg,bupd"
    1819 <<" -a lmaround"
     
    2728 uint_4 lg=3,lm=15,bupd=1000,lmaround=10;
    2829 r_8 nsg=5.;
     30 r_8 vmin=1.,vmax=-1.;
    2931 char *label_bolomuv = "boloMuV";
    3032  int c;
    31  while((c = getopt(narg,arg,"hs:g:b:a:p:")) != -1) {
     33 while((c = getopt(narg,arg,"hs:g:d:b:a:p:")) != -1) {
    3234  switch (c) {
    3335  case 's' :
    3436   sscanf(optarg,"%d,%d",&sdeb,&sfin);
     37   break;
     38  case 'd' :
     39   sscanf(optarg,"%lf,%lf",&vmin,&vmax);
    3540   break;
    3641  case 'g' :
     
    6368 //--------------------------------------------------------------------
    6469
     70 ////// Lecteurs / ecriveurs FITS
    6571 // FITS reader
    6672 FITSTOIReader rfits(fitsin);
    6773 cout<<"Lecteur: created"<<endl;
    6874
    69  // FITS writter
     75 // FITS writer
    7076 FITSTOIWriter wfits(fitsout);
    7177 cout<<"Ecriveur: created"<<endl;
    7278
    73  // TOI processeurs
     79 ////// TOI processeurs
     80 FlagOutOfRange flgout(vmin,vmax);
     81 flgout.Print();
     82
    7483 FlagGlitch deglitch(lg,lm,nsg);
    7584 deglitch.SetBuffUpd(bupd);
     
    7786 deglitch.Print();
    7887
    79  FlagAround flgaround(lm);
     88 FlagAroundFlag flgaround(lm);
     89 //flgaround.SetLimits(vmin,vmax);
    8090 flgaround.Print();
    8191
    82  // Creation des tuyaux et des connections associees
     92 ////// Creation des tuyaux et des connections associees
    8393 int taille = 8192;
     94
     95 // tuyau bolo pour entree processeur FlagOutOfRange
     96 TOISegmented * toi0 = new TOISegmented("tuyau_bolo_0",taille);
     97 rfits.addOutput(label_bolomuv,toi0);
     98 flgout.addInput("DataIn",toi0);
     99
    84100 // tuyau bolo pour entree processeur FlagGlitch
    85  TOISegmented * toi1 = new TOISegmented("tuyau_bolo_in1",taille);
    86  rfits.addOutput(label_bolomuv,toi1);
    87  deglitch.addInput("BoloIn",toi1);
     101 TOISegmented * toi1 = new TOISegmented("tuyau_bolo_1",taille);
     102 flgout.addOutput("DataOut",toi1);
     103 deglitch.addInput("DataIn",toi1);
    88104
    89105 // tuyau bolo pour entree processeur FlagAround
    90  TOISegmented * toi2 = new TOISegmented("tuyau_bolo_in2",taille);
    91  deglitch.addOutput("BoloOut",toi2);
    92  flgaround.addInput("BoloIn",toi2);
     106 TOISegmented * toi2 = new TOISegmented("tuyau_bolo_2",taille);
     107 deglitch.addOutput("DataOut",toi2);
     108 flgaround.addInput("DataIn",toi2);
    93109
    94110 // tuyau bolo pour entree fits writer
    95  TOISegmented * toiout = new TOISegmented("tuyau_bolo_out",taille);
    96  flgaround.addOutput("BoloOut",toiout);
    97  wfits.addInput(label_bolomuv,toiout,true);
     111 TOISegmented * toi3 = new TOISegmented("tuyau_bolo_3",taille);
     112 flgaround.addOutput("DataOut",toi3);
     113 wfits.addInput(label_bolomuv,toi3,true);
    98114
    99115 // Print de status avant lancement des taches:
     
    103119 wfits.PrintStatus(cout); 
    104120 cout<<"----- TOISegmented::PrintStatus() : -----"<<endl;
     121 toi0->PrintStatus(cout); 
    105122 toi1->PrintStatus(cout); 
    106123 toi2->PrintStatus(cout); 
    107  toiout->PrintStatus(cout); 
     124 toi3->PrintStatus(cout); 
     125 cout<<"-----FlagOutOfRange ::PrintStatus() : -----"<<endl;
     126 flgout.PrintStatus(cout); 
    108127 cout<<"-----FlagGlitch ::PrintStatus() : -----"<<endl;
    109128 deglitch.PrintStatus(cout); 
     
    115134 rfits.start();
    116135 wfits.start();
     136 flgout.start(); 
    117137 deglitch.start();
    118138 flgaround.start(); 
Note: See TracChangeset for help on using the changeset viewer.