Ignore:
Timestamp:
02/17/05 10:34:53 (20 years ago)
Author:
gaug
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mjobs/MJCalibTest.cc

    r6281 r6563  
    283283{
    284284 
    285 
    286285  if (!fSequence.IsValid())
    287286    {
     
    454453    }
    455454
     455
    456456  MCalibrateData        photcalc;
     457  photcalc.AddPedestal("Fundamental");
     458  photcalc.SetCalibrationMode(MCalibrateData::kFfactor);
     459  photcalc.SetPedestalFlag(MCalibrateData::kEvent);
     460  photcalc.SetSignalType(MCalibrateData::kPhe);
     461
    457462  MCalibrateRelTimes    caltimes;
    458   if (IsUseMC()) // MC file
    459     {
    460       photcalc.SetCalibrationMode(MCalibrateData::kFfactor);
    461       photcalc.SetPedestalFlag(MCalibrateData::kRun);
    462       photcalc.AddPedestal("MPedestalCam", "MPedPhotFundamental");
    463     }
    464   else
    465     {
    466       photcalc.SetCalibrationMode(MCalibrateData::kFfactor);
    467       photcalc.AddPedestal("Fundamental");
    468       photcalc.SetPedestalFlag(MCalibrateData::kEvent);
    469       photcalc.SetSignalType(MCalibrateData::kPhe);
    470     }
    471 
    472463  MBadPixelsCalc        badcalc;
    473464  MBadPixelsTreat       badtreat;
     
    539530  tlist.PrintStatistics();
    540531 
    541   /*
    542   MHCalibrationTestCam *hcam = (MHCalibrationTestCam*)plist.FindObject("MHCalibrationTestCam");
    543   MHCalibrationPix &pix1 = (*hcam)[47];
    544   pix1.DrawClone("");
    545   gPad->SaveAs("test_test_100.ps");
    546  
    547   MHCalibrationTestTimeCam *hccam = (MHCalibrationTestTimeCam*)plist.FindObject("MHCalibrationTestTimeCam");
    548   MHCalibrationPix &pix11 = (*hccam)[47];
    549   pix11.DrawClone("");
    550   gPad->SaveAs("test_testtime_100.ps");
    551   */
     532  if (fPixelCheck)
     533    {
     534      MHCalibrationTestCam *hcam = (MHCalibrationTestCam*)plist.FindObject("MHCalibrationTestCam");
     535      MHCalibrationPix &pix1 = (*hcam)[fCheckedPixId];
     536      pix1.DrawClone("");
     537     
     538      MHCalibrationTestTimeCam *hccam = (MHCalibrationTestTimeCam*)plist.FindObject("MHCalibrationTestTimeCam");
     539      MHCalibrationPix &pix11 = (*hccam)[fCheckedPixId];
     540      pix11.DrawClone("");
     541    }
    552542
    553543  DisplayResult(plist);
Note: See TracChangeset for help on using the changeset viewer.