Changeset 1739 in Sophya for trunk/ArchTOIPipe
- Timestamp:
- Nov 8, 2001, 6:47:38 PM (24 years ago)
- Location:
- trunk/ArchTOIPipe
- Files:
-
- 2 added
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/ArchTOIPipe/ProcWSophya/Makefile.in
r1733 r1739 42 42 43 43 44 SRCFILES=map2toi.cc toi2map.cc rztoi.cc simtoipr.cc ktoibad.cc 44 SRCFILES=map2toi.cc toi2map.cc rztoi.cc simtoipr.cc ktoibad.cc smoothtoi.cc 45 45 46 46 FILES=$(patsubst %.c,%.o,$(SRCFILES:.cc=.o)) -
trunk/ArchTOIPipe/ProcWSophya/ktoibad.cc
r1737 r1739 172 172 int_4 lmmin = lm/2; if(lmmin<2) lmmin=2; 173 173 174 174 // Initialisation 175 if(LSide>0) for(int_4 sn=snb;sn<snb+LSide && sn<=sne;sn++) { 176 r_8 bolog; uint_8 fgbolog=0; 177 getData(0,sn,bolog,fgbolog); 178 if(!(fgbolog & flgNotLookAt)) Slpb[1]->Push((r_8)sn,bolog); 179 } 175 180 176 181 for(int_4 sn=snb;sn<=sne;sn++) { -
trunk/ArchTOIPipe/ProcWSophya/toi2map.h
r1738 r1739 5 5 // Christophe Magneville 6 6 // Reza Ansari 7 // $Id: toi2map.h,v 1. 7 2001-11-08 15:47:46 aubourgExp $7 // $Id: toi2map.h,v 1.8 2001-11-08 17:47:23 cmv Exp $ 8 8 9 9 #ifndef TOI2MAP_H … … 50 50 {mTypCoorOut = mfg;} 51 51 // Test on flag value ? if yes, BAD sample have flag matching mBadFlag 52 inline void SetTestFlag(bool tflg=false, uint_8 badflg= 0)52 inline void SetTestFlag(bool tflg=false, uint_8 badflg=FlgToiAll) 53 53 {mTFlag = tflg; mBadFlag = badflg;} 54 54 // Test on min value ? if yes, GOOD sample have value >= mValMin -
trunk/ArchTOIPipe/TestPipes/tstktoibad.cc
r1736 r1739 9 9 #include "sophyainit.h" 10 10 #include "ktoibad.h" 11 #include "smoothtoi.h" 11 12 12 13 void usage(void); … … 18 19 <<" -g lg,lm,nsg,bupd" 19 20 <<" -a lmaround" 21 <<" -S lsmooth,sdeg" 20 22 <<" -p lp,sn1,sn2" 21 23 <<endl; … … 27 29 int_4 lp=1,sn1=-1,sn2=-1; 28 30 uint_4 lg=3,lm=15,bupd=1000,lmaround=10; 31 uint_4 lsmooth=1024,sdeg=2; 29 32 r_8 nsg=5.; 30 33 r_8 vmin=1.,vmax=-1.; 31 34 char *label_bolomuv = "boloMuV"; 32 35 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) { 34 37 switch (c) { 35 38 case 's' : … … 44 47 case 'a' : 45 48 sscanf(optarg,"%d",&lmaround); 49 break; 50 case 'S' : 51 sscanf(optarg,"%d,%d",&lsmooth,&sdeg); 46 52 break; 47 53 case 'b' : … … 90 96 flgaround.Print(); 91 97 98 DataSmooth dsmooth(lsmooth,sdeg); 99 dsmooth.Print(); 100 92 101 ////// Creation des tuyaux et des connections associees 93 102 int taille = 8192; … … 108 117 flgaround.addInput("DataIn",toi2); 109 118 110 // tuyau bolo pour entreefits writer119 // tuyau bolo pour smooth DataSmooth et fits writer 111 120 TOISegmented * toi3 = new TOISegmented("tuyau_bolo_3",taille); 112 121 flgaround.addOutput("DataOut",toi3); 122 dsmooth.addInput("DataIn",toi3); 113 123 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); 114 129 115 130 // Print de status avant lancement des taches: … … 123 138 toi2->PrintStatus(cout); 124 139 toi3->PrintStatus(cout); 140 toi31->PrintStatus(cout); 125 141 cout<<"-----FlagOutOfRange ::PrintStatus() : -----"<<endl; 126 142 flgout.PrintStatus(cout); … … 129 145 cout<<"-----FlagAround ::PrintStatus() : -----"<<endl; 130 146 flgaround.PrintStatus(cout); 147 cout<<"-----DataSmooth ::PrintStatus() : -----"<<endl; 148 dsmooth.PrintStatus(cout); 131 149 132 150 // Lancement des taches … … 137 155 deglitch.start(); 138 156 flgaround.start(); 157 dsmooth.start(); 139 158 140 159 // Gestion de la re-connection des threads -
trunk/ArchTOIPipe/TestPipes/tsttoi2map.cc
r1723 r1739 85 85 cout<<"Requested Samples from "<<sdeb<<" , "<<sfin<<endl; 86 86 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);} 88 88 break; 89 89 case 'w' : -
trunk/ArchTOIPipe/files_sophya
r1733 r1739 10 10 ktoibad.h 11 11 ktoibad.cc 12 smoothtoi.h 13 smoothtoi.cc
Note:
See TracChangeset
for help on using the changeset viewer.