Changeset 2029 in Sophya for trunk/ArchTOIPipe/ProcWSophya


Ignore:
Timestamp:
May 30, 2002, 2:32:45 PM (23 years ago)
Author:
ansari
Message:

Correction de pb divers (6) - Reza 30/5/2002

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ArchTOIPipe/ProcWSophya/simoffset.cc

    r2014 r2029  
    8282
    8383  bool fgoffset = checkOutputTOIIndex(0);
     84  bool fgbgal = checkOutputTOIIndex(1);
    8485  bool fgout = checkOutputTOIIndex(1);
    8586  bool fgincopie = checkOutputTOIIndex(2);
     
    9495    throw ParmError("SimpleOffsetEstimator::run() Input TOI (in) not connected!");
    9596  }
    96   if (bgalcut && !checkInputTOIIndex(1)) {
     97  if (bgalcut && !fgbgal) {
    9798    cerr << " SimpleOffsetEstimator::run() - Input TOI bgal not connected! "
    9899         << endl;
    99100    throw ParmError("SimpleOffsetEstimator::run() Input TOI bgal not connected!");
    100101  }
     102  if (fgbgalcopie && !fgbgal) {
     103    cerr << " SimpleOffsetEstimator::run() - Output TOI bgalcopie connected without input TOI bgal!"
     104         << endl;
     105    throw ParmError("SimpleOffsetEstimator::run() Output TOI bgalcopie connected without input TOI bgal!");
     106  }
    101107  if (!fgoffset && !fgout) {
    102     cerr << " SimpleOffsetEstimator::run() - No Output TOI (offset/in-offset) connected! "
     108    cerr << " SimpleOffsetEstimator::run() - No output TOI (offset/in-offset) connected!"
    103109         << endl;
    104110    throw ParmError(" SimpleOffsetEstimator::run() No output TOI (offset/in-offset) connected!");
     
    169175
    170176      getData(0, k, wsize, vin.Data(), vfg.Data());
    171       if (bgalcut) {
     177      if (fgbgal) {
    172178        getData(1, k, wsize, bgal.Data());
    173179        if (fgbgalcopie) putData(3, k, wsize, bgal.Data());
     
    367373      getData(0, k, wsize, vin.Data(), vfg.Data());
    368374
    369       if (bgalcut) {
     375      if (fgbgal) {
    370376        getData(1, k, wsize, bgal.Data());
    371377        if (fgbgalcopie) putData(3, k, wsize, bgal.Data());
Note: See TracChangeset for help on using the changeset viewer.