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/mraw/MRawEvtData.cc

    r1004 r1030  
    209209void MRawEvtData::Draw(Option_t *opt)
    210210{
    211     // ----- AppendPad(opt);
    212 
    213     //
    214     // FIXME: BIG MEMORY LEAK! (( How and when are the objects deleted?)
    215     //
     211    if (GetNumPixels()==0)
     212    {
     213        *fLog << "Sorry, no pixel to draw!" << endl;
     214        return;
     215    }
    216216
    217217    TString str(opt);
     
    247247        graph->Draw("AC*");
    248248
     249        TH1F *hist = graph->GetHistogram();
     250
     251        hist->SetXTitle("Time/FADC Slices");
     252        hist->SetYTitle("Signal/FADC Units");
     253
    249254        return;
    250255    }
     
    269274
    270275        TH1F *hist = new TH1F(name, "Hi Gain Samples FADC", n, 0, n);
     276        hist->SetXTitle("Time/FADC Slices");
     277        hist->SetYTitle("Signal/FADC Units");
    271278
    272279        for (int i=0; i<n; i++)
Note: See TracChangeset for help on using the changeset viewer.