Ignore:
Timestamp:
05/01/04 12:34:15 (21 years ago)
Author:
gaug
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/macros/calibration.C

    r3913 r3925  
    5757static const TString inpath = "/mnt/Data/rootdata/Miscellaneous/2004_03_03/";
    5858static const Int_t pedrun  = 20123;
    59 static const Int_t calrun1 = 20126;
     59static const Int_t calrun1 = 20125;
    6060static const Int_t calrun2 = 0;
    6161
     
    6363{
    6464
     65
     66  //
     67  // Choose the signal Extractor:
     68  //
    6569  MExtractFixedWindowPeakSearch extractor;
    66   //  extractor.SetRange(0,14,0,14);
     70  //  MExtractSlidingWindow  extractor;   
     71  //  MExtractFixedWindow    extractor;   
    6772
    68   // MExtractSlidingWindow  extractor;   
    69   // MExtractFixedWindow    extractor;   
     73  //
     74  // Set Ranges or Windows
     75  //
     76  //  extractor.SetRange(2,14,5,14);
     77  //  extractor.SetWindows(8,8);
    7078
     79  //
     80  // Choose the arrival time Extractor:
     81  //
    7182  MExtractTimeHighestIntegral timeext;
     83  // MExtractTimeSpline timeext;
     84  //
     85  // Set Ranges or Windows
     86  //
     87  // timeext.SetRange(0,14,6,14);
    7288
    73   // MExtractTimeSpline timeext;
    74   // timeext.SetRange(0,14,6,14);
     89  //
     90  // Tell if you want to calibrate times:
     91  //
     92  Bool_t useTimes = kTRUE;
     93  //  Bool_t calibrateTimes = kFALSE; 
    7594
    7695  MRunIter pruns;
     
    103122  // an ascii-file with the corr. pixel numbers (see MBadPixelsCam)
    104123  //
    105   //  badcam.AsciiRead("badpixels.dat");
     124  badcam.AsciiRead("badpixels.dat");
    106125
    107126  MJPedestal pedloop;
     
    133152  // If you want to calibrate the times as well, choose:
    134153  //
    135   calloop.SetRelTimeCalibration();
     154  calloop.SetRelTimeCalibration(useTimes);
    136155  calloop.SetExtractor(&extractor);
    137156  calloop.SetTimeExtractor(&timeext);
     
    162181  testloop.SetDisplay(display);
    163182  testloop.SetBadPixels(calloop.GetBadPixels());
    164   if (!testloop.ProcessD(pedloop.GetPedestalCam(),calloop.GetCalibrationCam(),calloop.GetQECam()))
    165     return;
    166 
     183  testloop.ProcessD(pedloop.GetPedestalCam(),calloop.GetCalibrationCam(),calloop.GetQECam());
     184 
    167185}
    168186
Note: See TracChangeset for help on using the changeset viewer.