Changeset 1737 in Sophya
- Timestamp:
- Nov 7, 2001, 7:44:18 PM (24 years ago)
- Location:
- trunk/ArchTOIPipe/ProcWSophya
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/ArchTOIPipe/ProcWSophya/ktoibad.cc
r1736 r1737 106 106 LSide = lm; 107 107 NSCut = nsg; 108 Slpb[0] = Slpb[1] = NULL;109 108 DoNotLookAt(); 110 109 SetFlag(); … … 114 113 FlagGlitch::~FlagGlitch() 115 114 { 116 for(int i=0;i<2;i++) {if(Slpb[i]) delete Slpb[i]; Slpb[i]=NULL;}117 115 } 118 116 … … 132 130 declareOutput("DataOut"); // output index 0 133 131 134 for(int i=0;i<2;i++)135 Slpb[i] = new SLinParBuff(LSide,BuffUpdate,0.,0.,true);136 137 132 int_4 lbuff = 2*LSide + LGlitch +10; 138 133 if(neededHistory<lbuff) setNeededHistory(lbuff); … … 159 154 //--------------------------------------------------------- 160 155 try { 156 157 SLinParBuff Slpb0(LSide,BuffUpdate,0.,0.,true); 158 SLinParBuff Slpb1(LSide,BuffUpdate,0.,0.,true); 159 SLinParBuff* Slpb[2] = {&Slpb0,&Slpb1}; 161 160 162 161 char* nament_[8] = {"s","bol","sg","sd","slg","sld","ypg","ypd"}; … … 172 171 int_4 lm = LSide; 173 172 int_4 lmmin = lm/2; if(lmmin<2) lmmin=2; 173 174 174 175 175 176 for(int_4 sn=snb;sn<=sne;sn++) { -
trunk/ArchTOIPipe/ProcWSophya/ktoibad.h
r1736 r1737 1 1 // This may look like C code, but it is really -*- C++ -*- 2 #ifndef TOI2MAP_H3 #define TOI2MAP_H2 #ifndef KTOIBAD_H 3 #define KTOIBAD_H 4 4 5 5 #include "toiprocessor.h" … … 41 41 42 42 //! Ne pas traiter les sample deja flaggues par la valeur flag 43 inline void DoNotLookAt(uint_8 flag= 0) {flgNotLookAt = flag;}43 inline void DoNotLookAt(uint_8 flag=FlgToiAll) {flgNotLookAt = flag;} 44 44 //! Flagguer les glitches avec la valeur flag 45 45 inline void SetFlag(uint_8 flag=FlgToiSpike) {flgGlitch = flag;} 46 46 //! Frequency to update SLinParBuff buffer 47 void SetBuffUpd(uint_4 bupd=1000) {BuffUpdate = bupd;}47 inline void SetBuffUpd(uint_4 bupd=1000) {BuffUpdate = bupd;} 48 48 //! Print 49 49 void Print(ostream & os); … … 62 62 uint_4 BuffUpdate; 63 63 uint_4 LGlitch,LSide; 64 SLinParBuff* Slpb[2];65 64 }; 66 65
Note:
See TracChangeset
for help on using the changeset viewer.