Changeset 6313 for trunk/MagicSoft


Ignore:
Timestamp:
02/09/05 16:36:50 (20 years ago)
Author:
gaug
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/Changelog

    r6306 r6313  
    3535     - allow exclusion of bad pixels from the beginning (default is
    3636       Pixel 0 and 559).
     37 
     38   * mjobs/MJCalibration.cc
     39     - write display and containers also in case of failure of eventloop
    3740
    3841   * mhcalib/MHGausEvents.cc
  • trunk/MagicSoft/Mars/mjobs/MJCalibration.cc

    r6281 r6313  
    18011801      fTimeExtractor = &timehigh;
    18021802
     1803    const Bool_t istimecharge = fExtractor->InheritsFrom("MExtractTimeAndCharge");
    18031804    //
    18041805    // Look if the extractor is a pure charge or also a time extractor
    18051806    //
    1806     if (fExtractor->InheritsFrom("MExtractTimeAndCharge"))
     1807    if (istimecharge)
    18071808    {
    18081809        if (fExtractorCam.GetSize() == pedcam.GetSize())
     
    18421843
    18431844    MTaskEnv taskenv2("ExtractTime");
    1844     if (!fExtractor->InheritsFrom("MExtractTimeAndCharge"))
    1845     {
    1846         taskenv2.SetDefault(fTimeExtractor);
    1847    
    1848         if (IsRelTimes())
    1849             tlist.AddToList(&taskenv2);
     1845    if (!istimecharge)
     1846    {
     1847      taskenv2.SetDefault(fTimeExtractor);
     1848      
     1849      if (IsRelTimes())
     1850        tlist.AddToList(&taskenv2);
    18501851    }
    18511852   
     
    18941895    }
    18951896
    1896     if (!WriteTasks(taskenv.GetTask(), IsRelTimes() ? taskenv2.GetTask() : 0))
     1897    if (!WriteTasks(taskenv.GetTask(), istimecharge ? 0 : taskenv2.GetTask()))
    18971898        return kFALSE;
    18981899
     
    19001901    if (!evtloop.Eventloop())
    19011902    {
    1902       //        DisplayResult(plist);
    1903       //        WriteResult(plist);
    1904         *fLog << err << GetDescriptor() << ": Failed." << endl;
    1905         return kFALSE;
     1903      DisplayResult(plist);
     1904      WriteResult(plist);
     1905      *fLog << err << GetDescriptor() << ": Failed." << endl;
     1906      return kFALSE;
    19061907    }
    19071908
    19081909    tlist.PrintStatistics();
    19091910
    1910     /*
    1911 
    1912     MHCalibrationRelTimeCam *hcam = (MHCalibrationRelTimeCam*)plist.FindObject("MHCalibrationRelTimeCam");
    1913     MHCalibrationPix &pix1 = (*hcam)[100];
    1914     pix1.DrawClone("");
    1915     gPad->SaveAs("test_time_100.ps");
    1916 
    19171911    MHCalibrationChargeCam *hccam = (MHCalibrationChargeCam*)plist.FindObject("MHCalibrationChargeCam");
    1918     MHCalibrationPix &pix11 = (*hccam)[100];
     1912    MHCalibrationPix &pix11 = (*hccam)[0];
    19191913    pix11.DrawClone("");
    1920     gPad->SaveAs("test_charge_100.ps");
    1921 
    1922     MHCalibrationPix &pix2 = (MHCalibrationPix&)(*hcam)[400];
    1923     pix2.DrawClone("");   
    1924     gPad->SaveAs("test_time_400.ps");
    1925 
    1926     MHCalibrationPix &pix22 = (*hccam)[400];
    1927     pix22.DrawClone("");
    1928     gPad->SaveAs("test_charge_400.ps");
    1929 
    1930     *fLog << err << "Blackout 100: " << fRelTimeCam[100].GetNumBlackout() << endl;
    1931     *fLog << err << "Picup    100: " << fRelTimeCam[100].GetNumPickup  () << endl;   
    1932     *fLog << err << "Blackout 400: " << fRelTimeCam[400].GetNumBlackout() << endl;
    1933     *fLog << err << "Picup    400: " << fRelTimeCam[400].GetNumPickup  () << endl;   
    1934 
    1935     */
     1914    gPad->SaveAs("test_charge_0.ps");
    19361915
    19371916    if (!fCalibrationPINDiode.IsValid())
Note: See TracChangeset for help on using the changeset viewer.