Ignore:
Timestamp:
11/05/01 10:35:36 (23 years ago)
Author:
tbretz
Message:
*** empty log message ***
File:
1 edited

Legend:

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

    r961 r1030  
    279279
    280280
    281 // ======================================================================
    282 
    283281void MGDisplayAdc::CloseWindow()
    284282{
     
    289287    delete this;
    290288}
    291 
    292 
    293 
    294 // ======================================================================
    295 // ======================================================================
    296289
    297290Bool_t MGDisplayAdc::BuildHistoList()
     
    307300    //
    308301    const Int_t nhi = fHists->GetEntries();
    309     for (Int_t i=0 ; i<nhi; i++)
     302
     303    for (Int_t i=0; i<nhi; i++)
    310304        fHistoList->AddEntry(fHists->GetHistHi(i)->GetName(), i+1);
    311305
     
    316310}
    317311
    318 // ======================================================================
    319 // ======================================================================
    320312void MGDisplayAdc::UpdateHist()
    321313{
    322314    const Int_t selected = fHistoList->GetSelected();
     315
     316    if (selected<0)
     317    {
     318        cout << "MGDisplayAdc: No histograms found in list. " << endl;
     319        return;
     320    }
    323321
    324322    fHistoList->Select(selected); // ???
Note: See TracChangeset for help on using the changeset viewer.