Changeset 2000 in Sophya for trunk/ArchTOIPipe/Kernel/cgt.cc


Ignore:
Timestamp:
May 14, 2002, 3:06:58 PM (23 years ago)
Author:
ansari
Message:

Corrections diverses et introduction d'une classe de calcul de ligne de
base par ajustement glissant d'un polynome (SimpleOffsetEstimator)
avec son programme test - Reza 14/5/2002

File:
1 edited

Legend:

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

    r1998 r2000  
    1313#include "toiseqbuff.h"
    1414#include "toisegment.h"
     15#include "fitstoiwtr.h"
    1516
    1617#ifdef WITH_SOPHYA
     
    6364
    6465TOI& CGT::Connect(TOIProcessor& prout, string& out,
    65                   TOIProcessor& prin, string& in, string nom, int wbsz)
     66                  TOIProcessor& prin, string& in, string nom, int wbsz, bool withFlag)
    6667{
    6768  int id1 = findProcId(&prout);
     
    8283  lesTuyaux.push_back(tuy);
    8384  prout.addOutput(out, toi);
    84   prin.addInput(in, toi);
     85  if (withFlag) { // Si c'est un FITSTOIWriter
     86    FITSTOIWriter* ftw = dynamic_cast< FITSTOIWriter* >(&prin);
     87    if (ftw) ftw->addInput(in, toi, withFlag);
     88    else prin.addInput(in, toi);
     89  }
     90  else prin.addInput(in, toi);
    8591  if (dbgLevel > 1)
    8692    cout << " CGT::Connect() TOI " << toi->getName() << " created " << endl;
     
    8995
    9096TOI& CGT::Connect(TOIProcessor& prout, const char* out,
    91                   TOIProcessor& prin, const char* in, string nom, int wbsz)
     97                  TOIProcessor& prin, const char* in, string nom, int wbsz, bool withFlag)
    9298{
    9399  string outs = out; 
    94100  string ins = in;
    95   return Connect(prout, outs, prin, ins, nom, wbsz);
     101  return Connect(prout, outs, prin, ins, nom, wbsz, withFlag);
    96102}
    97103
Note: See TracChangeset for help on using the changeset viewer.