Changeset 1800 in Sophya for trunk/ArchTOIPipe/Kernel
- Timestamp:
- Nov 29, 2001, 7:19:32 PM (24 years ago)
- Location:
- trunk/ArchTOIPipe/Kernel
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/ArchTOIPipe/Kernel/fitstoirdr.cc
r1787 r1800 3 3 // Christophe Magneville 4 4 // Reza Ansari 5 // $Id: fitstoirdr.cc,v 1.2 2 2001-11-26 15:13:48aubourg Exp $5 // $Id: fitstoirdr.cc,v 1.23 2001-11-29 18:19:32 aubourg Exp $ 6 6 7 7 #include "fitstoirdr.h" … … 112 112 113 113 snBegin = firstSn; 114 /* if (forceMinIn > 0 && forceMinIn > snBegin) { 115 snBegin = forceMinIn; 116 } 117 */ 114 if (forcedMinIn > 0 && forcedMinIn > snBegin) { 115 snBegin = forcedMinIn; 116 } 118 117 openFile(allfn.back()); 119 118 snEnd = firstSn+nrows-1; 120 /* if (forceMaxIn > 0 && forceMaxIn < snEnd) {121 snEnd = force MaxIn;122 }*/119 if (forcedMaxIn > 0 && forcedMaxIn < snEnd) { 120 snEnd = forcedMaxIn; 121 } 123 122 cout << "FITSTOIReader range " << snBegin << " -> " << snEnd << endl; 124 123 } 125 124 126 125 int FITSTOIReader::calcMinOut() { 126 chkinit(); 127 127 TOIManager* mgr = TOIManager::getManager(); 128 128 int firstReq = mgr->getRequestedBegin(); … … 131 131 132 132 int FITSTOIReader::calcMaxOut() { 133 chkinit(); 133 134 TOIManager* mgr = TOIManager::getManager(); 134 135 int lastReq = mgr->getRequestedEnd(); … … 259 260 TOIManager* mgr = TOIManager::getManager(); 260 261 if(samplenum[0] > mgr->getRequestedEnd()) break; 262 if(samplenum[0] > forcedMaxIn) break; 261 263 if(samplenum[ifin-ideb] < mgr->getRequestedBegin()) continue; 264 if(samplenum[ifin-ideb] < forcedMinIn) continue; 262 265 if (ip == 0) { 263 266 for(int k=0; k<getNOut(); k++) { -
trunk/ArchTOIPipe/Kernel/toiprocessor.h
r1787 r1800 5 5 // Christophe Magneville 6 6 // Reza Ansari 7 // $Id: toiprocessor.h,v 1.1 7 2001-11-26 15:13:48aubourg Exp $7 // $Id: toiprocessor.h,v 1.18 2001-11-29 18:19:32 aubourg Exp $ 8 8 9 9 … … 47 47 public: 48 48 virtual void run(); 49 50 virtual int getMinOut(); 51 virtual int getMaxOut(); 49 52 // Les methodes qui suivent peut etre appelees par run 50 53 protected: … … 83 86 virtual int calcMinOut(); // Protected ? 84 87 virtual int calcMaxOut(); // Protected ? 85 86 virtual int getMinOut();87 virtual int getMaxOut();88 88 int minOut; // Cache for calcMinOut() value. Protected ? 89 89 int maxOut; // Cache for calcMaxOut() value. Protected ? … … 135 135 TOIProcessor(); 136 136 virtual ~TOIProcessor(); 137 138 void setMinSn(int n) {forcedMinIn = n;} 139 void setMaxSn(int n) {forcedMaxIn = n;} 137 140 138 141 protected:
Note:
See TracChangeset
for help on using the changeset viewer.