Ignore:
Timestamp:
05/27/04 18:02:18 (20 years ago)
Author:
rico
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mtemp/mifae/programs/makeHillas.cc

    r4218 r4225  
    1010#include "MPedestalCam.h"
    1111#include "MBadPixelsCam.h"
     12#include "MBadPixelsTreat.h"
    1213#include "MReadMarsFile.h"
    1314#include "MGeomApply.h"
     
    130131  extractor.SetRange(hifirst,hilast,lofirst,lolast);
    131132
    132   //  MCalibrationQECam   qecam;
    133   //  MBadPixelsCam       badcam;
    134133  MGeomCamMagic       geomcam;
    135134  MGeomApply          geomapl;
     
    159158  calloop.SetExtractor(&extractor);
    160159  calloop.SetInput(&caliter);
    161   //  calloop.SetQECam(qecam);
    162160  calloop.SetBadPixels(pedloop.GetBadPixels());
    163161
     
    184182  plist3.AddToList(&calloop.GetQECam());
    185183  plist3.AddToList(&calloop.GetRelTimeCam());
    186   //  plist3.AddToList(&badcam);
     184  plist3.AddToList(&calloop.GetBadPixels());
    187185  plist3.AddToList(&sigcam);
    188186  plist3.AddToList(&nphot);
     
    201199  read3.DisableAutoScheme();
    202200 
    203   //  MExtractSignal  extsig;
    204   //  extsig.SetRange(hifirst,hilast,lofirst,lolast);
    205201  MCalibrate      photcalc(calMode);
    206202  MPedPhotCalc    photrmscalc;
     
    258254  plist4.AddToList(&calloop.GetQECam());
    259255  plist4.AddToList(&calloop.GetRelTimeCam());
    260   //  plist4.AddToList(&badcam);
     256  plist4.AddToList(&calloop.GetBadPixels());
    261257  plist4.AddToList(&nphot);
    262258  plist4.AddToList(&nphotrms);
     
    274270  read4.DisableAutoScheme();
    275271 
    276   // set bad pixels
    277   MBlindPixelCalc   blind;
    278   MBlindPixelCalc   blind2;
    279   const Short_t x[16] = {330,395,329,396,389,
    280                          323,388,322,384,385,
    281                          386,387,321,320,319,
    282                          394};
    283   const TArrayS bp(16,(Short_t*)x);
    284   blind.SetPixelIndices(bp);
    285   blind2.SetPixelIndices(bp);
    286  
    287272  MImgCleanStd      clean(lcore,ltail);
    288273
     
    291276  MIslandCalc       island;
    292277  island.SetOutputName("MIslands1");
     278
     279  MBadPixelsTreat   interpolatebadpixels;
     280  interpolatebadpixels.SetUseInterpolation();
    293281
    294282  MIslandClean      islclean(lnew);
     
    331319      if (islflag == 2)
    332320        disphillas->SetIslandsName("MIslands2");
    333 
    334321    }     
    335322
     
    338325  tlist4.AddToList(&extractor);
    339326  tlist4.AddToList(&photcalc);
    340   //tlist4.AddToList(&blind);
     327  if(calflag==11)
     328    tlist4.AddToList(&interpolatebadpixels);
    341329  tlist4.AddToList(&clean);
    342330
     
    523511  if(display)
    524512    cout << "Generating PS file: " << psfilename << endl;
    525   cout << "Calibration flag: " << calflag << endl;
     513  cout << "Calibration: ";
     514  if(calflag==0)   
     515    cout << "Pixel area proportional intercalibration" << endl;
     516  else if(calflag==-1)   
     517    cout << "No calibration whatsoever" << endl;
     518  else if(calflag==1)
     519    cout << "Default calibration" << endl;
     520  else if(calflag==11)
     521    cout << "Default calibration + bad pixels interpolation" << endl;
    526522  cout << "Cleaning level: ("<<lcore<<","<<ltail<<")" << endl;
    527523  if (islflag == 1 || islflag == 2)
Note: See TracChangeset for help on using the changeset viewer.