Changeset 1737 in Sophya for trunk/ArchTOIPipe/ProcWSophya


Ignore:
Timestamp:
Nov 7, 2001, 7:44:18 PM (24 years ago)
Author:
cmv
Message:

details sur FlagGlitch cmv 07/11/2001

Location:
trunk/ArchTOIPipe/ProcWSophya
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/ArchTOIPipe/ProcWSophya/ktoibad.cc

    r1736 r1737  
    106106 LSide =  lm;
    107107 NSCut = nsg;
    108  Slpb[0] = Slpb[1] = NULL;
    109108 DoNotLookAt();
    110109 SetFlag();
     
    114113FlagGlitch::~FlagGlitch()
    115114{
    116  for(int i=0;i<2;i++) {if(Slpb[i]) delete Slpb[i]; Slpb[i]=NULL;}
    117115}
    118116
     
    132130  declareOutput("DataOut");     // output index 0
    133131
    134   for(int i=0;i<2;i++)
    135     Slpb[i] = new SLinParBuff(LSide,BuffUpdate,0.,0.,true);
    136 
    137132  int_4 lbuff = 2*LSide + LGlitch +10;
    138133  if(neededHistory<lbuff) setNeededHistory(lbuff);
     
    159154//---------------------------------------------------------
    160155try {
     156
     157SLinParBuff Slpb0(LSide,BuffUpdate,0.,0.,true);
     158SLinParBuff Slpb1(LSide,BuffUpdate,0.,0.,true);
     159SLinParBuff* Slpb[2] = {&Slpb0,&Slpb1};
    161160
    162161char* nament_[8] = {"s","bol","sg","sd","slg","sld","ypg","ypd"};
     
    172171int_4 lm = LSide;
    173172int_4 lmmin = lm/2; if(lmmin<2) lmmin=2;
     173
     174
    174175
    175176for(int_4 sn=snb;sn<=sne;sn++) {
  • trunk/ArchTOIPipe/ProcWSophya/ktoibad.h

    r1736 r1737  
    11// This may look like C code, but it is really -*- C++ -*-
    2 #ifndef TOI2MAP_H
    3 #define TOI2MAP_H
     2#ifndef KTOIBAD_H
     3#define KTOIBAD_H
    44
    55#include "toiprocessor.h"
     
    4141
    4242  //! 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;}
    4444  //! Flagguer les glitches avec la valeur flag
    4545  inline void SetFlag(uint_8 flag=FlgToiSpike) {flgGlitch = flag;}
    4646  //! Frequency to update SLinParBuff buffer
    47   void SetBuffUpd(uint_4 bupd=1000) {BuffUpdate = bupd;}
     47  inline void SetBuffUpd(uint_4 bupd=1000) {BuffUpdate = bupd;}
    4848  //! Print
    4949  void Print(ostream & os);
     
    6262  uint_4 BuffUpdate;
    6363  uint_4 LGlitch,LSide;
    64   SLinParBuff* Slpb[2];
    6564};
    6665
Note: See TracChangeset for help on using the changeset viewer.