source: Sophya/trunk/ArchTOIPipe/ProcWSophya/ktoibad.h@ 1733

Last change on this file since 1733 was 1733, checked in by cmv, 24 years ago

intro deglitcheur FlagGlitch et prog de test cmv 5/11/2001

File size: 1.2 KB
RevLine 
[1733]1// This may look like C code, but it is really -*- C++ -*-
2#ifndef TOI2MAP_H
3#define TOI2MAP_H
4
5#include "toiprocessor.h"
6#include "flagtoidef.h"
7#include "slinparbuff.h"
8
9//-- Pour rechercher les glitches
10// toi BoloIn ---> |FlagGlitch | ---> toi BoloOut
11
12class FlagGlitch : public TOIProcessor {
13public:
14 FlagGlitch(uint_4 lg,uint_4 lm,r_8 nsg);
15 virtual ~FlagGlitch();
16
17 virtual void init(void);
18 virtual void run(void);
19
20 //! Ne pas traiter les sample deja flaggues par la valeur flag
21 inline void DoNotLookAt(uint_8 flag=0) {flgNotLookAt = flag;}
22 //! Flagguer les glitches avec la valeur flag
23 inline void SetFlag(uint_8 flag=FlgToiSpike) {flgGlitch = flag;}
24 //! Frequency to update SLinParBuff buffer
25 void SetBuffUpd(uint_4 bupd=1000) {BuffUpdate = bupd;}
26 //! Print
27 void Print(ostream & os);
28 inline void Print(void) {Print(cout);}
29 //! Debugging print lp=ab
30 // a>0 ntuple entre snb,sne
31 // b>0 print general
32 // >1 print debug entre snb,sne
33 inline void SetDebug(int_4 lp,int_4 snb,int_4 sne)
34 {mLP=(lp>=0)?lp:0; mLPsnb=snb; mLPsne=sne;}
35
36protected:
37 int_4 mLP,mLPsnb,mLPsne;
38 uint_8 flgNotLookAt,flgGlitch;
39 r_8 NSCut;
40 uint_4 BuffUpdate;
41 uint_4 LGlitch,LSide;
42 SLinParBuff* Slpb[2];
43};
44
45#endif
Note: See TracBrowser for help on using the repository browser.