Changeset 1735 in Sophya for trunk/ArchTOIPipe/TestPipes/tstktoibad.cc
- Timestamp:
- Nov 6, 2001, 7:01:46 PM (24 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/ArchTOIPipe/TestPipes/tstktoibad.cc
r1733 r1735 16 16 <<" -b label_bolomuv" 17 17 <<" -g lg,lm,nsg,bupd" 18 <<" -a lmaround" 18 19 <<" -p lp,sn1,sn2" 19 20 <<endl; … … 24 25 int_4 sdeb=0,sfin=-1; 25 26 int_4 lp=1,sn1=-1,sn2=-1; 26 uint_4 lg=3,lm=15,bupd=1000 ;27 uint_4 lg=3,lm=15,bupd=1000,lmaround=10; 27 28 r_8 nsg=5.; 28 29 char *label_bolomuv = "boloMuV"; 29 30 int c; 30 while((c = getopt(narg,arg,"hs:g:b: p:")) != -1) {31 while((c = getopt(narg,arg,"hs:g:b:a:p:")) != -1) { 31 32 switch (c) { 32 33 case 's' : … … 35 36 case 'g' : 36 37 sscanf(optarg,"%d,%d,%lf,%d",&lg,&lm,&nsg,&bupd); 38 break; 39 case 'a' : 40 sscanf(optarg,"%d",&lmaround); 37 41 break; 38 42 case 'b' : … … 73 77 deglitch.Print(); 74 78 79 FlagAround flgaround(lm); 80 flgaround.Print(); 81 75 82 // Creation des tuyaux et des connections associees 76 83 int taille = 8192; 77 // tuyau bolo pour entree processeur 78 TOISegmented * boloin = new TOISegmented("tuyau_bolo_in",taille);79 rfits.addOutput(label_bolomuv, boloin);80 deglitch.addInput("BoloIn", boloin);84 // 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); 81 88 82 // tuyau bolo pour sortie processeur 83 bool writeflag=true; 84 TOISegmented * boloout = new TOISegmented("tuyau_bolo_out",taille); 85 deglitch.addOutput("BoloOut",boloout); 86 wfits.addInput(label_bolomuv,boloout,writeflag); 89 // 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); 93 94 // 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); 87 98 88 99 // Print de status avant lancement des taches: … … 92 103 wfits.PrintStatus(cout); 93 104 cout<<"----- TOISegmented::PrintStatus() : -----"<<endl; 94 boloin->PrintStatus(cout); 95 boloout->PrintStatus(cout); 105 toi1->PrintStatus(cout); 106 toi2->PrintStatus(cout); 107 toiout->PrintStatus(cout); 96 108 cout<<"-----FlagGlitch ::PrintStatus() : -----"<<endl; 97 109 deglitch.PrintStatus(cout); 110 cout<<"-----FlagAround ::PrintStatus() : -----"<<endl; 111 flgaround.PrintStatus(cout); 98 112 99 113 // Lancement des taches … … 102 116 wfits.start(); 103 117 deglitch.start(); 118 flgaround.start(); 104 119 105 120 // Gestion de la re-connection des threads
Note:
See TracChangeset
for help on using the changeset viewer.