Changeset 1787 in Sophya for trunk/ArchTOIPipe/Kernel
- Timestamp:
- Nov 26, 2001, 4:13:48 PM (24 years ago)
- Location:
- trunk/ArchTOIPipe/Kernel
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/ArchTOIPipe/Kernel/fitstoirdr.cc
r1772 r1787 3 3 // Christophe Magneville 4 4 // Reza Ansari 5 // $Id: fitstoirdr.cc,v 1.2 1 2001-11-16 11:28:45aubourg Exp $5 // $Id: fitstoirdr.cc,v 1.22 2001-11-26 15:13:48 aubourg Exp $ 6 6 7 7 #include "fitstoirdr.h" … … 112 112 113 113 snBegin = firstSn; 114 114 /* if (forceMinIn > 0 && forceMinIn > snBegin) { 115 snBegin = forceMinIn; 116 } 117 */ 115 118 openFile(allfn.back()); 116 119 snEnd = firstSn+nrows-1; 120 /* if (forceMaxIn > 0 && forceMaxIn < snEnd) { 121 snEnd = forceMaxIn; 122 }*/ 117 123 cout << "FITSTOIReader range " << snBegin << " -> " << snEnd << endl; 118 124 } … … 252 258 long sn = (long) (samplenum[ip]+.1); 253 259 TOIManager* mgr = TOIManager::getManager(); 254 #if 0255 if(sn > mgr->getRequestedEnd()) break;256 if(sn < mgr->getRequestedBegin()) continue;257 for(int k=0; k<getNOut(); k++) {258 if(colval[k]==NULL) continue;259 uint_8 flg = (colflg[k]==NULL)? 0: colflg[k][ip];260 putData(k,sn,colval[k][ip],flg);261 }262 #else263 260 if(samplenum[0] > mgr->getRequestedEnd()) break; 264 261 if(samplenum[ifin-ideb] < mgr->getRequestedBegin()) continue; … … 276 273 } 277 274 } 278 #endif279 275 totnscount++; 280 276 } -
trunk/ArchTOIPipe/Kernel/toiprocessor.cc
r1773 r1787 3 3 // Christophe Magneville 4 4 // Reza Ansari 5 // $Id: toiprocessor.cc,v 1.2 0 2001-11-16 14:10:42aubourg Exp $5 // $Id: toiprocessor.cc,v 1.21 2001-11-26 15:13:48 aubourg Exp $ 6 6 7 7 #include "toiprocessor.h" … … 39 39 minOut = -1; 40 40 maxOut = -1; 41 forcedMinIn = -1; 42 forcedMaxIn = -1; 41 43 neededHistory = 1000; 42 44 lastAWN = 0; … … 72 74 int TOIProcessor::getMinOut() { 73 75 //cout << name << "minout" << endl; 74 if (minOut < 0) minOut = calcMinOut();76 if (minOut < 0) minOut = calcMinOut(); 75 77 //cout << name << "minout=" << minOut << endl; 76 78 return minOut; … … 101 103 if (x > minIn) minIn = x; 102 104 } 105 if (forcedMinIn > 0 && forcedMinIn > minIn) minIn = forcedMinIn; 103 106 return minIn; 104 107 } … … 113 116 if (x < maxIn) maxIn = x; 114 117 } 118 if (forcedMaxIn > 0 && forcedMaxIn < maxIn) maxIn = forcedMaxIn; 115 119 return maxIn; 116 120 } -
trunk/ArchTOIPipe/Kernel/toiprocessor.h
r1765 r1787 5 5 // Christophe Magneville 6 6 // Reza Ansari 7 // $Id: toiprocessor.h,v 1.1 6 2001-11-14 14:12:32aubourg Exp $7 // $Id: toiprocessor.h,v 1.17 2001-11-26 15:13:48 aubourg Exp $ 8 8 9 9 … … 81 81 82 82 // Gestion des bornes pour les transformations de TOIs... 83 virtual int calcMinOut(); 84 virtual int calcMaxOut(); 83 virtual int calcMinOut(); // Protected ? 84 virtual int calcMaxOut(); // Protected ? 85 85 86 86 virtual int getMinOut(); 87 87 virtual int getMaxOut(); 88 int minOut; 89 int maxOut; 88 int minOut; // Cache for calcMinOut() value. Protected ? 89 int maxOut; // Cache for calcMaxOut() value. Protected ? 90 90 91 91 virtual int getMinIn(); 92 92 virtual int getMaxIn(); 93 93 // Implementation par defaut 94 int upExtra; 95 int lowExtra; 94 int upExtra; // MaxIn - MaxOut : extra samples for processing 95 int lowExtra; // MinOut - MinIn : extra samples for processing 96 97 int forcedMinIn; // to process a subset of data 98 int forcedMaxIn; // to process a subset of data 99 void setSampleSubset(int min, int max); 96 100 97 101 int neededHistory; -
trunk/ArchTOIPipe/Kernel/toisegment.h
r1774 r1787 5 5 // Christophe Magneville 6 6 // Reza Ansari 7 // $Id: toisegment.h,v 1.1 6 2001-11-16 14:11:34aubourg Exp $7 // $Id: toisegment.h,v 1.17 2001-11-26 15:13:48 aubourg Exp $ 8 8 9 9 #ifndef TOISEGMENT_H … … 26 26 class TOISegmented : public TOIRegular { 27 27 public: 28 TOISegmented(int bufsz= 256, int maxseg=20);29 TOISegmented(string nm, int bufsz= 256, int maxseg=20);30 TOISegmented(char* cnm, int bufsz= 256, int maxseg=20);28 TOISegmented(int bufsz=1024, int maxseg=20); 29 TOISegmented(string nm, int bufsz=1024, int maxseg=20); 30 TOISegmented(char* cnm, int bufsz=1024, int maxseg=20); 31 31 ~TOISegmented(); 32 32
Note:
See TracChangeset
for help on using the changeset viewer.