Changeset 10281 for trunk/Mars/mhist


Ignore:
Timestamp:
04/04/11 10:08:59 (14 years ago)
Author:
tbretz
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Mars/mhist/MHCamera.cc

    r10166 r10281  
    23232323    case 4:
    23242324        obj2->Fit("pol0", "Q");
    2325         obj2->GetFunction("pol0")->SetLineColor(kBlue);
     2325        if (obj2->GetFunction("pol0"))
     2326            obj2->GetFunction("pol0")->SetLineColor(kBlue);
    23262327        break;
    23272328
     
    23312332    default:
    23322333        obj2->Fit("gaus", "Q");
    2333         obj2->GetFunction("gaus")->SetLineColor(kBlue);
     2334        if (obj2->GetFunction("gaus"))
     2335            obj2->GetFunction("gaus")->SetLineColor(kBlue);
    23342336        break;
    23352337    }
     
    24022404    obj2->SetBit(kCanDelete);
    24032405    obj2->Fit("pol0","Q","");
    2404     obj2->GetFunction("pol0")->SetLineWidth(1);
     2406    if (obj2->GetFunction("pol0"))
     2407        obj2->GetFunction("pol0")->SetLineWidth(1);
    24052408/*
    24062409    if (GetGeomCam().InheritsFrom("MGeomCamMagic"))
Note: See TracChangeset for help on using the changeset viewer.