Changeset 2282 in Sophya
- Timestamp:
- Nov 28, 2002, 4:49:21 PM (23 years ago)
- Location:
- trunk/ArchTOIPipe
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/ArchTOIPipe/Kernel/Makefile.in
r2227 r2282 56 56 SRCFILES = toi.cc toimanager.cc toiprocessor.cc \ 57 57 fitstoirdr.cc fitstoiwtr.cc asciitoiwtr.cc \ 58 toisegment.cc toiseqbuff.cc cgt.cc 58 toisegment.cc toiseqbuff.cc cgt.cc \ 59 fitsringwtr.cc 59 60 60 61 FILES=$(patsubst %.c,%.o,$(SRCFILES:.cc=.o)) -
trunk/ArchTOIPipe/Kernel/toiprocessor.cc
r2187 r2282 3 3 // Christophe Magneville 4 4 // Reza Ansari 5 // $Id: toiprocessor.cc,v 1.2 6 2002-09-09 15:33:15aubourg Exp $5 // $Id: toiprocessor.cc,v 1.27 2002-11-28 15:49:21 aubourg Exp $ 6 6 7 7 #include "toiprocessor.h" … … 94 94 95 95 int TOIProcessor::getMinOut() { 96 /* 97 //cout << name << "minout" << endl; 98 if (minOut < 0) minOut = calcMinOut(); 99 //cout << name << "minout=" << minOut << endl; 100 return minOut; 101 */ 102 return snBegin + lowExtra; 96 // return snBegin + lowExtra; 97 return snBegin; 103 98 } 104 99 105 100 int TOIProcessor::getMaxOut() { 106 /* 107 //cout << name << "maxout" << endl; 108 if (maxOut < 0) maxOut = calcMaxOut(); 109 //cout << name << "maxout=" << maxOut << endl; 110 return maxOut; 111 */ 112 return snEnd - upExtra; 101 // return snEnd - upExtra; 102 return snEnd; 113 103 } 114 104 … … 122 112 123 113 int TOIProcessor::getMinIn() { 124 /* 125 int nIn = inIx.size(); 126 int minIn = 0; 127 for (int i=0; i<nIn; i++) { 128 TOI* toi = inTOIs[i]; 129 if (toi == NULL) continue; // Protection - Reza 13/3/2001 130 int x = toi->getMinSn(); 131 if (x > minIn) minIn = x; 132 } 133 if (forcedMinIn > 0 && forcedMinIn > minIn) minIn = forcedMinIn; 134 return minIn; 135 */ 136 return snBegin; 114 // return snBegin; 115 return snBegin - lowExtra; 137 116 } 138 117 139 118 int TOIProcessor::getMaxIn() { 140 /* 141 int_4 nIn = inIx.size(); 142 int_4 maxIn = MAXINT; 143 for (int i=0; i<nIn; i++) { 144 TOI* toi = inTOIs[i]; 145 if (toi == NULL) continue; // Protection - Reza 13/3/2001 146 int_4 x = toi->getMaxSn(); 147 if (x < maxIn) maxIn = x; 148 } 149 if (forcedMaxIn > 0 && forcedMaxIn < maxIn) maxIn = forcedMaxIn; 150 return maxIn; 151 */ 152 return snEnd; 119 // return snEnd; 120 return snEnd + upExtra; 153 121 } 154 122 -
trunk/ArchTOIPipe/Kernel/toisegment.cc
r1964 r2282 3 3 // Christophe Magneville 4 4 // Reza Ansari 5 // $Id: toisegment.cc,v 1.2 7 2002-04-16 08:28:53aubourg Exp $5 // $Id: toisegment.cc,v 1.28 2002-11-28 15:49:21 aubourg Exp $ 6 6 7 7 #include "toisegment.h" … … 290 290 void TOISegmented::BufferView::ensure(int sn) { /* Single-thread, reader thread */ 291 291 if (sn < sn0) { 292 cout << "TOISegmented::BufferView::ensure requested sample before first" << endl;292 cout << "TOISegmented::BufferView::ensure : requested sample before first" << endl; 293 293 cout << "sn " << sn << " sn0 " << sn0 << endl; 294 cout << "name : " << master->name << endl; 294 295 abort(); 295 296 } … … 622 623 << endl; 623 624 624 abort(); 625 cout << "lets try something before failing, but the program may block" << endl; 626 pthread_cond_broadcast(&read_wait_condv); 627 //usleep(1000); 628 // abort(); 625 629 } 626 630 } -
trunk/ArchTOIPipe/Processors/toimedfilter.cc
r2222 r2282 3 3 // Christophe Magneville 4 4 // Reza Ansari 5 // $Id: toimedfilter.cc,v 1. 3 2002-10-23 21:08:27aubourg Exp $5 // $Id: toimedfilter.cc,v 1.4 2002-11-28 15:49:21 aubourg Exp $ 6 6 7 7 #include <algorithm> … … 33 33 int j = i+window-1; 34 34 if (j>=sne) j = sne; 35 // 35 // cout << "median: fetching " << i << " -> " << j << endl; 36 36 getData(0, i, j-i+1, data); 37 37 for (int ii=i+w/2; ii<=j-w/2; ii++) { … … 50 50 51 51 void TOIMedFilter::run() { 52 cout << "TOIMedFilter in : " << getMinIn() << " - " << getMaxIn() 53 << " out : " << getMinOut() << " - " << getMaxOut() << endl; 52 54 multiset<double> low; // w/2 53 55 multiset<double> high; // w/2 … … 70 72 71 73 putData(0, snb+w/2, mid); 72 //cout << snb+w/2<< " -> " << mid << endl;74 cout << snb+w/2<< " -> " << mid << endl; 73 75 74 76 {for (int i=snb+w; i<=sne; i ++) {
Note:
See TracChangeset
for help on using the changeset viewer.