Changeset 1787 in Sophya for trunk/ArchTOIPipe/Kernel


Ignore:
Timestamp:
Nov 26, 2001, 4:13:48 PM (24 years ago)
Author:
aubourg
Message:

parallel mapmaking

Location:
trunk/ArchTOIPipe/Kernel
Files:
4 edited

Legend:

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

    r1772 r1787  
    33//                               Christophe Magneville
    44//                               Reza Ansari
    5 // $Id: fitstoirdr.cc,v 1.21 2001-11-16 11:28:45 aubourg Exp $
     5// $Id: fitstoirdr.cc,v 1.22 2001-11-26 15:13:48 aubourg Exp $
    66
    77#include "fitstoirdr.h"
     
    112112
    113113  snBegin = firstSn;
    114 
     114  /*  if (forceMinIn > 0 && forceMinIn > snBegin) {
     115    snBegin = forceMinIn;
     116  }
     117  */
    115118  openFile(allfn.back());
    116119  snEnd = firstSn+nrows-1;
     120  /*  if (forceMaxIn > 0 && forceMaxIn < snEnd) {
     121    snEnd = forceMaxIn;
     122    }*/
    117123  cout << "FITSTOIReader range " << snBegin << " -> " << snEnd << endl;
    118124}
     
    252258   long sn = (long) (samplenum[ip]+.1);
    253259   TOIManager* mgr = TOIManager::getManager();
    254 #if 0
    255    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 #else
    263260   if(samplenum[0] > mgr->getRequestedEnd()) break;
    264261   if(samplenum[ifin-ideb] < mgr->getRequestedBegin()) continue;
     
    276273     }
    277274   }
    278 #endif
    279275   totnscount++;
    280276 }
  • trunk/ArchTOIPipe/Kernel/toiprocessor.cc

    r1773 r1787  
    33//                               Christophe Magneville
    44//                               Reza Ansari
    5 // $Id: toiprocessor.cc,v 1.20 2001-11-16 14:10:42 aubourg Exp $
     5// $Id: toiprocessor.cc,v 1.21 2001-11-26 15:13:48 aubourg Exp $
    66
    77#include "toiprocessor.h"
     
    3939  minOut = -1;
    4040  maxOut = -1;
     41  forcedMinIn = -1;
     42  forcedMaxIn = -1;
    4143  neededHistory = 1000;
    4244  lastAWN = 0;
     
    7274int TOIProcessor::getMinOut() {
    7375  //cout << name << "minout" << endl;
    74   if (minOut < 0) minOut = calcMinOut();
     76  if (minOut < 0)  minOut = calcMinOut();
    7577  //cout << name << "minout=" << minOut << endl;
    7678  return minOut;
     
    101103    if (x > minIn) minIn = x;
    102104  }
     105  if (forcedMinIn > 0 && forcedMinIn > minIn) minIn = forcedMinIn;
    103106  return minIn;
    104107}
     
    113116    if (x < maxIn) maxIn = x;
    114117  }
     118  if (forcedMaxIn > 0 && forcedMaxIn < maxIn) maxIn = forcedMaxIn;
    115119  return maxIn;
    116120}
  • trunk/ArchTOIPipe/Kernel/toiprocessor.h

    r1765 r1787  
    55//                               Christophe Magneville
    66//                               Reza Ansari
    7 // $Id: toiprocessor.h,v 1.16 2001-11-14 14:12:32 aubourg Exp $
     7// $Id: toiprocessor.h,v 1.17 2001-11-26 15:13:48 aubourg Exp $
    88
    99
     
    8181
    8282  // 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 ?
    8585
    8686  virtual int   getMinOut();
    8787  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 ?
    9090
    9191  virtual int   getMinIn();
    9292  virtual int   getMaxIn();
    9393  // 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);
    96100
    97101  int           neededHistory;
  • trunk/ArchTOIPipe/Kernel/toisegment.h

    r1774 r1787  
    55//                               Christophe Magneville
    66//                               Reza Ansari
    7 // $Id: toisegment.h,v 1.16 2001-11-16 14:11:34 aubourg Exp $
     7// $Id: toisegment.h,v 1.17 2001-11-26 15:13:48 aubourg Exp $
    88
    99#ifndef TOISEGMENT_H
     
    2626class TOISegmented : public TOIRegular {
    2727 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);
    3131  ~TOISegmented();
    3232
Note: See TracChangeset for help on using the changeset viewer.