Ignore:
Timestamp:
08/17/04 23:31:30 (20 years ago)
Author:
gaug
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/msignal
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/msignal/MExtractBlindPixel.cc

    r4606 r4669  
    7070using namespace std;
    7171
    72 const Int_t   MExtractBlindPixel::fgNumBlindPixels   = 2;
    73 const UInt_t  MExtractBlindPixel::fgBlindPixelIds[3] = { 559, 560, 561 };
    7472const UInt_t  MExtractBlindPixel::fgBlindPixelIdx    = 559;
    7573const Byte_t  MExtractBlindPixel::fgHiGainFirst      =  10;
     
    140138//
    141139// Initializes:
    142 // - fModified to kFALSE
    143140// - fBlindPixelIdx to 0
    144141// - fExtractionType to 0
     
    155152{
    156153
    157   fModified       = kFALSE;
    158154  fExtractionType = 0;
    159155
     
    244240    delete [] fHiGainSecondDeriv;
    245241
    246   if (fModified)
    247   {
    248     for (Int_t i=0;i<fNumBlindPixels;i++)
    249       {
    250         SetBlindPixelIdx(fgBlindPixelIds[i],i);
    251         fBlindPixel->SetBlindPixelIdx(fgBlindPixelIds[i],i);
    252       }
    253   }
    254   else
    255     fBlindPixel->SetBlindPixelIdx(fBlindPixelIdx.At(0));
     242  for (Int_t i=0;i<fNumBlindPixels;i++)
     243    fBlindPixel->SetBlindPixelIdx(fBlindPixelIdx.At(i),i);
    256244
    257245  fBlindPixel->SetExtractionType(fExtractionType);
  • trunk/MagicSoft/Mars/msignal/MExtractBlindPixel.h

    r4605 r4669  
    1515private:
    1616
    17   static const Int_t   fgNumBlindPixels;   //! Default number of blind pixels after modification run 
    18   static const UInt_t  fgBlindPixelIds[3]; //! Default blind pixel indices after modification run
    1917  static const UInt_t  fgBlindPixelIdx;    //! Default blind pixels index before modification run
    2018  static const Byte_t  fgHiGainFirst;      //! Default First FADC slice Hi-Gain Signal (currently set to: 10   )
     
    3836  Int_t   fNSBFilterLimit;                 // Limit of sum of FADC slices for filter part
    3937
    40   Bool_t  fModified;                       // Is the run taken after the modifications?
    4138  Byte_t  fExtractionType;                 // What extraction type has been chosen?
    42 
    4339  Int_t   fNumBlindPixels;                 // Current number of blind pixels
    4440 
     
    7369  void SetExtractionType( const ExtractionType_t typ=kAmplitude );
    7470  void SetNSBFilterLimit( const Int_t   lim=fgNSBFilterLimit )  { fNSBFilterLimit = lim;   }     
    75   void SetModified     ( const Bool_t b=kTRUE)               {   fModified = b;    }
    7671 
    77   void SetNumBlindPixels( const Int_t   num=fgNumBlindPixels )  { fNumBlindPixels = num;   }
     72  void SetNumBlindPixels( const Int_t   num=1 )  { fNumBlindPixels = num;   }
    7873 
    7974  void SetRange         ( const Byte_t  hifirst=0, const Byte_t hilast=0,
Note: See TracChangeset for help on using the changeset viewer.