Ignore:
Timestamp:
04/27/04 19:24:37 (21 years ago)
Author:
gaug
Message:
*** empty log message ***
File:
1 edited

Legend:

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

    r3832 r3855  
    5151//  uncommented as well.
    5252//
     53//  Last, a third loop is performed over the calibration file again in order to
     54//  "calibrate" it and test the resulting outcome.
     55//
    5356/////////////////////////////////////////////////////////////////////////////
    54 const TString inpath = "/home/rootdata/Calib/2004_04_16/";
    55 const Int_t pedrun  = 22265;
    56 const Int_t calrun1 = 22299;
    57 const Int_t calrun2 = 22300;
     57static const TString inpath = "/home/rootdata/Calib/2004_04_16/";
     58static const Int_t pedrun  = 22265;
     59static const Int_t calrun1 = 22300;
     60static const Int_t calrun2 = 0;
    5861
    5962void calibration(const Int_t prun=pedrun, const Int_t crun1=calrun1, const Int_t crun2=calrun2)
    6063{
     64
    6165 
    6266  MRunIter pruns;
     
    7276  MCalibrationQECam qecam;
    7377  MBadPixelsCam     badcam;
    74 
     78  MGeomCamMagic     geomcam;
     79  MGeomApply        geomapl;
    7580  //
    7681  // If you want to exclude pixels from the beginning, read
     
    95100    return;
    96101
    97   //
    98   // Now setup the tasks and for the calibration:
    99   // ---------------------------------------------------
    100   //
     102  /****************************************/
     103  /* SECOND LOOP: CALIBRATION COMPUTATION */
     104  /****************************************/
     105
    101106  MJCalibration calloop;
    102   //  calloop.SetColor(color);
    103107
    104108  //
    105109  // If you want to run the data-check on RAW DATA!!!, choose:
    106110  // calloop.SetDataCheck();
     111  //
     112  // If you want to see the data-check plots only, choose:
     113  // calloop.SetDataCheckDisplay();
    107114  //
    108115  // For everything, you ever dreamed of, choose:
     
    119126  if (!calloop.Process(pedloop.GetPedestalCam()))
    120127    return;
    121  
     128
     129
     130  /********************************************************************/
     131  /* THIRD LOOP: APPLY CALIBRATION TO THE CALIBRATION FILES FOR TESTS */
     132  /********************************************************************/
     133
     134  MJExtractCalibTest testloop;
     135
     136  testloop.SetInput(&cruns);
     137  testloop.SetDisplay(display);
     138  testloop.SetBadPixels(calloop.GetBadPixels());
     139  if (!testloop.ProcessD(pedloop.GetPedestalCam(),calloop.GetCalibrationCam(),calloop.GetQECam()))
     140    return;
     141
     142
    122143}
    123144
Note: See TracChangeset for help on using the changeset viewer.