Ignore:
Timestamp:
09/28/04 12:18:47 (20 years ago)
Author:
tbretz
Message:
*** empty log message ***
File:
1 edited

Legend:

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

    r4834 r5142  
    8888    MBinning bins;
    8989
    90     bins.SetEdges(61, 0, 60);
     90    bins.SetEdges(60, -0.5, 59.5);
    9191    bins.Apply(fHistSatHi);
    9292    bins.Apply(fHistSatHi);
    9393
    94     bins.SetEdges(16, 0, 15);
     94    bins.SetEdges(15, 0.5, 15.5);
    9595    bins.Apply(fHistIslands);
    9696}
     
    134134}
    135135
    136 void MHImagePar::Paint(Option_t *)
     136void MHImagePar::Paint(Option_t *o)
    137137{
    138     TVirtualPad *savepad = gPad;
    139     if (fHistSatHi.GetEntries()>0)
    140     {
    141         gPad->cd(1);
     138    if (TString(o)==(TString)"log1" && fHistSatHi.GetMaximum()>0)
    142139        gPad->SetLogy();
    143     }
    144     gPad = savepad;
     140    if (TString(o)==(TString)"log2" && fHistIslands.GetMaximum()>0)
     141        gPad->SetLogy();
    145142}
    146143
     
    163160    gPad->SetBorderMode(0);
    164161    MH::DrawSame(fHistSatHi, fHistSatLo, "Saturating Pixels");
    165 
    166     fHistSatHi.SetMinimum(-1111); // switch off to allow log-scale
    167     fHistSatLo.SetMinimum(-1111); // switch off to allow log-scale
     162    fHistSatHi.SetMinimum(); // switch off to allow log-scale
     163    fHistSatLo.SetMinimum(); // switch off to allow log-scale
    168164    fHistSatLo.SetMaximum(0.1);   // dummy value to allow log-scale
     165    AppendPad("log1");
    169166
    170167    pad->cd(2);
    171168    gPad->SetBorderMode(0);
    172169    fHistIslands.Draw();
    173 
    174     pad->Modified();
    175     pad->Update();
     170    AppendPad("log2");
    176171}
    177172
Note: See TracChangeset for help on using the changeset viewer.