- Timestamp:
- May 14, 2002, 3:06:58 PM (23 years ago)
- Location:
- trunk/ArchTOIPipe
- Files:
-
- 3 added
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/ArchTOIPipe/Kernel/cgt.cc
r1998 r2000 13 13 #include "toiseqbuff.h" 14 14 #include "toisegment.h" 15 #include "fitstoiwtr.h" 15 16 16 17 #ifdef WITH_SOPHYA … … 63 64 64 65 TOI& 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) 66 67 { 67 68 int id1 = findProcId(&prout); … … 82 83 lesTuyaux.push_back(tuy); 83 84 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); 85 91 if (dbgLevel > 1) 86 92 cout << " CGT::Connect() TOI " << toi->getName() << " created " << endl; … … 89 95 90 96 TOI& 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) 92 98 { 93 99 string outs = out; 94 100 string ins = in; 95 return Connect(prout, outs, prin, ins, nom, wbsz );101 return Connect(prout, outs, prin, ins, nom, wbsz, withFlag); 96 102 } 97 103 -
trunk/ArchTOIPipe/Kernel/cgt.h
r1994 r2000 30 30 31 31 virtual TOI& Connect(TOIProcessor& prout, string& out, 32 TOIProcessor& prin, string& in, string nom="", int wbsz=0); 32 TOIProcessor& prin, string& in, string nom="", 33 int wbsz=0, bool withFlag=false); 33 34 virtual TOI& Connect(TOIProcessor& prout, const char* out, 34 TOIProcessor& prin, const char* in, string nom="", int wbsz=0); 35 TOIProcessor& prin, const char* in, string nom="", 36 int wbsz=0, bool withFlag=false); 35 37 36 38 virtual void ListProcs(::ostream& os, bool prstat=false); // const plus tard -
trunk/ArchTOIPipe/Kernel/toimanager.h
r1999 r2000 5 5 // Christophe Magneville 6 6 // Reza Ansari 7 // $Id: toimanager.h,v 1.1 2 2002-05-13 15:50:50ansari Exp $7 // $Id: toimanager.h,v 1.13 2002-05-14 13:06:57 ansari Exp $ 8 8 9 9 … … 58 58 class ProcSampleCounter : public RzProcSampleCounter { 59 59 public: 60 ProcSampleCounter( constT & t) { _t = &t; }60 ProcSampleCounter(T & t) { _t = &t; } 61 61 virtual long ProcessedSampleCount() 62 62 { return _t->ProcessedSampleCount(); } … … 64 64 virtual long SampleEnd() { return _t->getMaxIn(); } 65 65 protected: 66 constT * _t;66 T * _t; 67 67 }; 68 68 -
trunk/ArchTOIPipe/Kernel/toiprocessor.h
r1800 r2000 5 5 // Christophe Magneville 6 6 // Reza Ansari 7 // $Id: toiprocessor.h,v 1.1 8 2001-11-29 18:19:32 aubourgExp $7 // $Id: toiprocessor.h,v 1.19 2002-05-14 13:06:57 ansari Exp $ 8 8 9 9 … … 84 84 85 85 // Gestion des bornes pour les transformations de TOIs... 86 public: 87 // Methodes passees en public par Reza, 14/5/2002 86 88 virtual int calcMinOut(); // Protected ? 87 89 virtual int calcMaxOut(); // Protected ? 90 91 virtual int getMinIn(); 92 virtual int getMaxIn(); 93 protected: 94 // Implementation par defaut 88 95 int minOut; // Cache for calcMinOut() value. Protected ? 89 96 int maxOut; // Cache for calcMaxOut() value. Protected ? 90 97 91 virtual int getMinIn();92 virtual int getMaxIn();93 // Implementation par defaut94 98 int upExtra; // MaxIn - MaxOut : extra samples for processing 95 99 int lowExtra; // MinOut - MinIn : extra samples for processing -
trunk/ArchTOIPipe/ProcWSophya/simtoipr.h
r1762 r2000 5 5 // Christophe Magneville 6 6 // Reza Ansari 7 // $Id: simtoipr.h,v 1.1 1 2001-11-13 16:22:47 aubourgExp $7 // $Id: simtoipr.h,v 1.12 2002-05-14 13:06:58 ansari Exp $ 8 8 9 9 … … 18 18 // if (val > Mean(Window)+ns*Sigma(Window)) val = Mean(Window) 19 19 // Si Pas plus de maxnpt points remplissants cette condition 20 // 21 // Structure generale : 22 // 23 // -------------------- 24 // toi in ---> | | ---> out (toi = in_deglitche) 25 // | SimpleDeglitcher | ---> mean (toi - optionnel) 26 // | | ---> sigma (toi - optionnel) 27 // | | ---> incopie ( toi = in , optionnel) 28 // | | 29 // -------------------- 30 // Si pas de toi out connecte, seul mean et sigma sont calcule 31 // les flags sont mis a jour pour le toi out en sortie 20 32 21 33 class SimpleDeglitcher : public TOIProcessor { … … 84 96 // Un filtre simple, dans le domaine temporel 85 97 // remplace val -> Somme(val(i)*coeff(i)) ds Fenetre 98 // 99 // Structure generale : 100 // 101 // ------------------ 102 // toi in ---> | | ---> out (toi = in_filtre) 103 // | SimpleFilter | 104 // | | ---> incopie ( toi = in , optionnel) 105 // | | 106 // ------------------ 86 107 87 108 class SimpleFilter : public TOIProcessor { -
trunk/ArchTOIPipe/TestPipes/mesovh2.cc
r1995 r2000 3 3 // Christophe Magneville 4 4 // Reza Ansari 5 // $Id: mesovh2.cc,v 1. 1 2002-05-13 13:12:50ansari Exp $5 // $Id: mesovh2.cc,v 1.2 2002-05-14 13:06:58 ansari Exp $ 6 6 /* mesure de performance de l'architecture 7 7 … … 44 44 << " -intoi2 toiName : chaine 2 procs with toi2->in2\n" 45 45 << " -prstat : PrintStat with ProcSampleCounter \n" 46 << " -usese g: Use TOISeqBuffered TOI's (default: TOISegmented) \n"46 << " -useseqbuff : Use TOISeqBuffered TOI's (default: TOISegmented) \n" 47 47 << endl; 48 48 exit(0);
Note:
See TracChangeset
for help on using the changeset viewer.