Changeset 4225


Ignore:
Timestamp:
05/27/04 18:02:18 (21 years ago)
Author:
rico
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/mtemp/mifae
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mtemp/mifae/Changelog

    r4211 r4225  
    2121       
    2222 2004/05/27 Javier Rico
    23    * programs/makeHillas.cc
     23   * programs/makeHillas.cc, programs/makehillas.datacard
    2424     - Remove unneeded MCalibrationQECam and MBadPixelsCam objects,
    2525       trying to trace back a bug in the calibration
     26     - Add possibility to interpolate bad pixels
    2627
    2728   * library/MHillasDisplay.cc
  • 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)
  • trunk/MagicSoft/Mars/mtemp/mifae/programs/makehillas.datacard

    r4139 r4225  
     1/////////////////////////////////////////////////////////
     2// Data card template for makeHillas executable        //
     3//                                                     //
     4// *** Compulsory cards are:                           //
     5// PRUNS, CRUNS, DRUNS, OUTFILE                        //
     6//                                                     //
     7// the rest are optional                               //
     8// *** Do NEVER add a datacard with no value after it  //
     9/////////////////////////////////////////////////////////
     10
    111
    212// Maximun number of (data) events to be processed)
    3 NEVENTS 10
     13NEVENTS 9999999
    414
    515// data file directory
     
    919PRUNS 16743
    1020CRUNS 16744
    11 DRUNS 16745-16767
     21DRUNS 16745
    1222
    1323// output file name
     
    1929// Enclose all conditions between brakets, like: "(x<y) && (z<5)"
    2030// (see MF description class for more details)
    21 FILTER (MHillas.fLength<100) && (MHillas.fLength>50)
     31// FILTER (MHillas.fLength<100) && (MHillas.fLength>50)
    2232
    2333// Display flag
     
    2535// DISPLAY 1 will show event display and produce ps file
    2636// DISPLAY 2 will produce the ps files, no display
    27 DISPLAY 0
     37DISPLAY 1
    2838
    2939// PS file name
     
    3444//  0: kNone
    3545//  1: kDefault
    36 CALFLAG 0
     46// 11: kDefault + bad pixel interpolation
     47CALFLAG 11
    3748
    3849// Cleaning level
Note: See TracChangeset for help on using the changeset viewer.