Ignore:
Timestamp:
May 6, 2001, 5:52:35 PM (24 years ago)
Author:
ansari
Message:

transformation de NoOpProcessor en double entree - Reza 6/5/2001

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ArchTOIPipe/TestPipes/mesovh.cc

    r1487 r1488  
    3232  else {
    3333    cout << "\n Usage : mesovh [-dbg] [-start snb] [-end sne] \n"
    34          << "         [-wtoi sz] [-wnoop sz] [-bipro] inFitsName \n"
     34         << "         [-intoi name] [-wtoi sz] [-wnoop sz] [-bipro] \n"
     35         << "         [-intoi2 name] inFitsName \n"
    3536         << "   -dbg : sets TOISeqBuffered debug level to 1 \n"
    3637         << "   -start snb : sets the start sample num \n"
     
    4041         << "   -wnoop sz : sets NoOpProcessor window size \n"
    4142         << "   -bipro : chain 2 processors \n"
     43         << "   -intoi2 toiName : chaine 2 procs with toi2->in2\n"
    4244         << endl;
    4345    exit(0);
     
    6466  string outppfname;
    6567  string intoi = "boloMuV_27";
     68  bool fgtoi2 = false;
     69  string intoi2;
    6670
    6771  if (narg < 4) Usage(true);
     
    8690      wnoop = atoi(arg[ia+1]); ia++;
    8791    }   
    88     else if (strcmp(arg[ia],"-keepfft") == 0) {
    89       if (ia == narg-1) Usage(true); 
    90       keepfft = atoi(arg[ia+1]); ia++;
    91     }   
    9292    else if (strcmp(arg[ia],"-intoi") == 0) {
    9393      if (ia == narg-1) Usage(true); 
    9494      intoi = arg[ia+1]; ia++;
     95    }   
     96    else if (strcmp(arg[ia],"-intoi2") == 0) {
     97      if (ia == narg-1) Usage(true);
     98      fgbipro = fgtoi2 = true;
     99      intoi2 = arg[ia+1]; ia++;
    95100    }   
    96101    else if (strcmp(arg[ia],"-bipro") == 0)  fgbipro = true;
     
    144149    r.addOutput(intoi, toiin);
    145150
     151    TOISeqBuffered * toi2 = NULL;   
     152    if (fgtoi2) {
     153      int w2 = (wnoop > 0) ? w1+wnoop : w1;
     154      toi2 = new TOISeqBuffered("toi2", w2);
     155      r.addOutput(intoi2, toi2);
     156    }
     157
    146158    NoOpProcessor noop(wnoop);
    147159    NoOpProcessor noop2(wnoop);
     
    149161    noop.addInput("in",toiin);
    150162   
    151     TOISeqBuffered * toi2 = NULL;
     163    TOISeqBuffered * toi3 = NULL;
    152164    if (fgbipro) {
    153       toi2 = new TOISeqBuffered("toi2", w1);
    154       noop.addOutput("out", toi2);
    155       noop2.addInput("in",toi2);
     165      toi3 = new TOISeqBuffered("toi3", w1);
     166      noop.addOutput("out", toi3);
     167      noop2.addInput("in",toi3);
     168      if (fgtoi2) {
     169        noop2.addInput("in2",toi2);
     170      }
    156171    }
    157172
     173    cout << noop;
     174    if (fgbipro) cout << noop2;
    158175    PrtTim("starting threads");
    159176    r.start();
     
    179196    //    w.PrintStatus(cout); 
    180197
    181     cout << " ------ toiin, toiout and toiincopie Status information ------- " << endl;
     198    cout << " ------ toiin, toi2 and toi3 Status information ------- " << endl;
    182199    cout << *toiin;
    183     if (fgbipro) cout << *toi2;
     200    if (toi2) cout << *toi2;
     201    if (toi3) cout << *toi3;
    184202    cout << noop ;
    185203    if (fgbipro) cout << noop2 ;
Note: See TracChangeset for help on using the changeset viewer.