Changeset 1479 in Sophya for trunk/ArchTOIPipe/ProcWSophya/simtoipr.h
- Timestamp:
- Apr 27, 2001, 2:52:15 AM (24 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/ArchTOIPipe/ProcWSophya/simtoipr.h
r1478 r1479 14 14 class SimpleDeglitcher : public TOIProcessor { 15 15 public: 16 SimpleDeglitcher(int wsz=64, double ns=3, int maxnpt=5); 16 SimpleDeglitcher(int wsz=64, double ns=3, 17 int maxnpt=5, int minnpt=2); 17 18 virtual ~SimpleDeglitcher(); 18 19 … … 26 27 27 28 28 void SetDetectionParam(double ns, double ns2, int maxnpt, int wszrec=0); 29 void SetDetectionParam(double ns, double ns2, int maxnpt, 30 int minnpt, int wszrec=0); 29 31 30 32 inline void RepBadSamples(bool gl_samples, bool out_range_samples, bool use_wrec=true) … … 40 42 inline double NbSigmas2() const { return nsig2; } 41 43 inline int MaxPoints() const { return maxpoints; } 44 inline int MinPoints() const { return minpoints; } 42 45 43 46 inline int_8 ProcessedSampleCount() const { return totnscount; } … … 61 64 double nsig2; // Seuil en nb de sigmas, pour les points suivants le 1er 62 65 int maxpoints; // Nb maxi de points > ns sigmas 66 int minpoints; // Nb mini de points > ns sigmas pour avoir un glitch 63 67 double range_min, range_max; // Range acceptable pour in 64 68 … … 136 140 137 141 142 // Un filtre simple, dans le domaine de Fourier 143 // InverseFFT ( FFT(Vecteur(in)) * FilterCoefficient ) 144 145 class SimpleFourierFilter : public TOIProcessor { 146 public: 147 SimpleFourierFilter(Vector const & vc); 148 ~SimpleFourierFilter(); 149 150 inline int WSize() const { return wsize; } 151 inline int_8 ProcessedSampleCount() const { return totnscount; } 152 inline Vector FilterCoefficients() const 153 { Vector rcv; rcv = ffcoef; return(rcv); } 154 155 virtual void PrintStatus(ostream & os) ; // const plus tard 156 157 virtual void init(); 158 virtual void run(); 159 160 inline void KeepSpectra(int nb=0) 161 { nb_keep = nb; } 162 protected: 163 int_8 totnscount; // Nombre total d'echantillon processe 164 int wsize; // Taille de fenetre de travail 165 Vector ffcoef; // Coefficients du filtre 166 int nb_keep; 167 }; 168 169 138 170 // Classe SimpleFanOut 139 // Transforme recopie chaque entree sur M lignes de sortie171 // Recopie chaque entree sur M lignes de sortie 140 172 141 173 class SimpleFanOut : public TOIProcessor { … … 159 191 }; 160 192 193 161 194 #endif
Note:
See TracChangeset
for help on using the changeset viewer.