Ignore:
Timestamp:
04/04/05 10:18:01 (20 years ago)
Author:
tbretz
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mimage/MHHillasExt.cc

    r5142 r6907  
    244244// together with the canvas.
    245245//
    246 void MHHillasExt::Draw(Option_t *)
     246void MHHillasExt::Draw(Option_t *o)
    247247{
    248248    TVirtualPad *pad = gPad ? gPad : MakeDefCanvas(this);
     
    251251    AppendPad("");
    252252
    253     pad->Divide(2, 2);
     253    // FIXME: If same-option given make two independant y-axis!
     254    const TString opt(o);
     255    const Bool_t same = opt.Contains("same");
     256
     257    if (!same)
     258        pad->Divide(2,2);
     259    else
     260    {
     261        fHM3Long.SetLineColor(kMagenta);
     262        fHM3Trans.SetLineColor(kCyan);
     263
     264        fHAsym.SetLineColor(kBlue);
     265        fHMaxDist.SetLineColor(kBlue);
     266    }
    254267
    255268    pad->cd(1);
    256269    gPad->SetBorderMode(0);
    257     MH::DrawSame(fHM3Long, fHM3Trans, "3^{rd} Moments");
     270    MH::DrawSame(fHM3Long, fHM3Trans, "3^{rd} Moments", same);
    258271
    259272    pad->cd(3);
    260273    gPad->SetBorderMode(0);
    261     fHAsym.Draw();
     274    fHAsym.Draw(same?"same":"");
    262275
    263276    pad->cd(2);
    264277    gPad->SetBorderMode(0);
    265     fHMaxDist.Draw();
     278    fHMaxDist.Draw(same?"same":"");
    266279
    267280    delete pad->GetPad(4);
Note: See TracChangeset for help on using the changeset viewer.