Changeset 1800 in Sophya for trunk/ArchTOIPipe/Kernel


Ignore:
Timestamp:
Nov 29, 2001, 7:19:32 PM (24 years ago)
Author:
aubourg
Message:

GPH 424.1

Location:
trunk/ArchTOIPipe/Kernel
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/ArchTOIPipe/Kernel/fitstoirdr.cc

    r1787 r1800  
    33//                               Christophe Magneville
    44//                               Reza Ansari
    5 // $Id: fitstoirdr.cc,v 1.22 2001-11-26 15:13:48 aubourg Exp $
     5// $Id: fitstoirdr.cc,v 1.23 2001-11-29 18:19:32 aubourg Exp $
    66
    77#include "fitstoirdr.h"
     
    112112
    113113  snBegin = firstSn;
    114   /*  if (forceMinIn > 0 && forceMinIn > snBegin) {
    115     snBegin = forceMinIn;
    116   }
    117   */
     114  if (forcedMinIn > 0 && forcedMinIn > snBegin) {
     115    snBegin = forcedMinIn;
     116  }
    118117  openFile(allfn.back());
    119118  snEnd = firstSn+nrows-1;
    120   /*  if (forceMaxIn > 0 && forceMaxIn < snEnd) {
    121     snEnd = forceMaxIn;
    122     }*/
     119  if (forcedMaxIn > 0 && forcedMaxIn < snEnd) {
     120    snEnd = forcedMaxIn;
     121  }
    123122  cout << "FITSTOIReader range " << snBegin << " -> " << snEnd << endl;
    124123}
    125124
    126125int FITSTOIReader::calcMinOut() {
     126  chkinit();
    127127  TOIManager* mgr = TOIManager::getManager();
    128128  int firstReq = mgr->getRequestedBegin();
     
    131131
    132132int FITSTOIReader::calcMaxOut() {
     133  chkinit();
    133134  TOIManager* mgr = TOIManager::getManager();
    134135  int lastReq = mgr->getRequestedEnd();
     
    259260   TOIManager* mgr = TOIManager::getManager();
    260261   if(samplenum[0] > mgr->getRequestedEnd()) break;
     262   if(samplenum[0] > forcedMaxIn) break;
    261263   if(samplenum[ifin-ideb] < mgr->getRequestedBegin()) continue;
     264   if(samplenum[ifin-ideb] < forcedMinIn) continue;
    262265   if (ip == 0) {
    263266     for(int k=0; k<getNOut(); k++) {
  • trunk/ArchTOIPipe/Kernel/toiprocessor.h

    r1787 r1800  
    55//                               Christophe Magneville
    66//                               Reza Ansari
    7 // $Id: toiprocessor.h,v 1.17 2001-11-26 15:13:48 aubourg Exp $
     7// $Id: toiprocessor.h,v 1.18 2001-11-29 18:19:32 aubourg Exp $
    88
    99
     
    4747public:
    4848  virtual void run();
     49
     50  virtual int   getMinOut();
     51  virtual int   getMaxOut();
    4952  // Les methodes qui suivent peut etre appelees par run
    5053protected:
     
    8386  virtual int   calcMinOut(); // Protected ?
    8487  virtual int   calcMaxOut(); // Protected ?
    85 
    86   virtual int   getMinOut();
    87   virtual int   getMaxOut();
    8888  int           minOut;    // Cache for calcMinOut() value. Protected ?
    8989  int           maxOut;    // Cache for calcMaxOut() value. Protected ?
     
    135135  TOIProcessor();
    136136  virtual ~TOIProcessor();
     137 
     138  void setMinSn(int n) {forcedMinIn = n;}
     139  void setMaxSn(int n) {forcedMaxIn = n;}
    137140
    138141protected:
Note: See TracChangeset for help on using the changeset viewer.