Ignore:
Timestamp:
04/25/03 09:55:58 (22 years ago)
Author:
tbretz
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mdatacheck/MGDisplayAdc.cc

    r1916 r2010  
    304304
    305305    for (Int_t i=0; i<nhi; i++)
    306         if (fHists->Exists(i))
     306        if (fHists->HasHi(i))
    307307            fHistoList->AddEntry(fHists->GetHistHi(i)->GetName(), i+1);
    308308
     
    327327    fCanvas->Clear();
    328328
    329     if (!fHists->Exists(selected-1))
     329    const Int_t idx = selected-1;
     330
     331    if (!fHists->HasHi(idx))
    330332        return;
    331333
    332     const Int_t type = fHists->HasLo(selected-1) ? fHistoType : M_RADIO_HI;
     334    const Int_t type = fHists->HasLo(idx) ? fHistoType : M_RADIO_HI;
    333335
    334336    switch (type)
     
    340342        fCanvas->cd();
    341343        if (type==M_RADIO_HI)
    342             fHists->DrawHi(selected-1);
     344            fHists->DrawHi(idx);
    343345        else
    344             fHists->DrawLo(selected-1);
     346            fHists->DrawLo(idx);
    345347        break;
    346348
     
    349351
    350352        fCanvas->cd(1);
    351         fHists->DrawHi(selected-1);
     353        fHists->DrawHi(idx);
    352354
    353355        fCanvas->cd(2);
    354         fHists->DrawLo(selected-1);
     356        fHists->DrawLo(idx);
    355357        break;
    356358    }
Note: See TracChangeset for help on using the changeset viewer.