Changeset 1736 in Sophya for trunk/ArchTOIPipe/TestPipes/tstktoibad.cc
- Timestamp:
- Nov 7, 2001, 6:31:37 PM (24 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/ArchTOIPipe/TestPipes/tstktoibad.cc
r1735 r1736 15 15 <<" -s sdeb,sfin" 16 16 <<" -b label_bolomuv" 17 <<" -d vmin,vmax" 17 18 <<" -g lg,lm,nsg,bupd" 18 19 <<" -a lmaround" … … 27 28 uint_4 lg=3,lm=15,bupd=1000,lmaround=10; 28 29 r_8 nsg=5.; 30 r_8 vmin=1.,vmax=-1.; 29 31 char *label_bolomuv = "boloMuV"; 30 32 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) { 32 34 switch (c) { 33 35 case 's' : 34 36 sscanf(optarg,"%d,%d",&sdeb,&sfin); 37 break; 38 case 'd' : 39 sscanf(optarg,"%lf,%lf",&vmin,&vmax); 35 40 break; 36 41 case 'g' : … … 63 68 //-------------------------------------------------------------------- 64 69 70 ////// Lecteurs / ecriveurs FITS 65 71 // FITS reader 66 72 FITSTOIReader rfits(fitsin); 67 73 cout<<"Lecteur: created"<<endl; 68 74 69 // FITS writ ter75 // FITS writer 70 76 FITSTOIWriter wfits(fitsout); 71 77 cout<<"Ecriveur: created"<<endl; 72 78 73 // TOI processeurs 79 ////// TOI processeurs 80 FlagOutOfRange flgout(vmin,vmax); 81 flgout.Print(); 82 74 83 FlagGlitch deglitch(lg,lm,nsg); 75 84 deglitch.SetBuffUpd(bupd); … … 77 86 deglitch.Print(); 78 87 79 FlagAround flgaround(lm); 88 FlagAroundFlag flgaround(lm); 89 //flgaround.SetLimits(vmin,vmax); 80 90 flgaround.Print(); 81 91 82 // Creation des tuyaux et des connections associees92 ////// Creation des tuyaux et des connections associees 83 93 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 84 100 // 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); 88 104 89 105 // 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); 93 109 94 110 // tuyau bolo pour entree fits writer 95 TOISegmented * toi out = new TOISegmented("tuyau_bolo_out",taille);96 flgaround.addOutput(" BoloOut",toiout);97 wfits.addInput(label_bolomuv,toi out,true);111 TOISegmented * toi3 = new TOISegmented("tuyau_bolo_3",taille); 112 flgaround.addOutput("DataOut",toi3); 113 wfits.addInput(label_bolomuv,toi3,true); 98 114 99 115 // Print de status avant lancement des taches: … … 103 119 wfits.PrintStatus(cout); 104 120 cout<<"----- TOISegmented::PrintStatus() : -----"<<endl; 121 toi0->PrintStatus(cout); 105 122 toi1->PrintStatus(cout); 106 123 toi2->PrintStatus(cout); 107 toiout->PrintStatus(cout); 124 toi3->PrintStatus(cout); 125 cout<<"-----FlagOutOfRange ::PrintStatus() : -----"<<endl; 126 flgout.PrintStatus(cout); 108 127 cout<<"-----FlagGlitch ::PrintStatus() : -----"<<endl; 109 128 deglitch.PrintStatus(cout); … … 115 134 rfits.start(); 116 135 wfits.start(); 136 flgout.start(); 117 137 deglitch.start(); 118 138 flgaround.start();
Note:
See TracChangeset
for help on using the changeset viewer.