Ignore:
Timestamp:
05/08/03 18:00:03 (22 years ago)
Author:
tbretz
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/macros/collarea.C

    r1660 r2098  
    1616!
    1717!
    18 !   Author(s): Thomas Bretz  12/2000 (tbretz@uni-sw.gwdg.de)
     18!   Author(s): Thomas Bretz, 12/2000 <mailto:tbretz@astro.uni-wuerzburg.de>
    1919!
    20 !   Copyright: MAGIC Software Development, 2000-2001
     20!   Copyright: MAGIC Software Development, 2000-2003
    2121!
    2222!
     
    2525
    2626void collarea(TString filename="camera.root", TString outname="")
    27 {
     27{
     28    MStatusDisplay *d = new MStatusDisplay;
     29    // redirect logging output to GUI, kFALSE to disable stream to stdout
     30    d->SetLogStream(&gLog, kTRUE);
     31
    2832    //
    2933    // first we have to create our empty lists
     
    5458    // Start to loop over all events
    5559    //
    56     MProgressBar bar;
    57     magic.SetProgressBar(&bar);
     60    magic.SetDisplay(d);
    5861    if (!magic.Eventloop())
    5962        return;
     
    6568    // filled and can be displayed
    6669    //
    67     parlist.FindObject("MHMcCollectionArea")->DrawClone();
     70    if ((d = magic.GetDisplay()))
     71        d->AddTab("Collection Area");
     72    else
     73        new TCanvas("CollArea", "Result of the collection area calculation");
     74
     75    parlist.FindObject("MHMcCollectionArea")->DrawClone("nonew");
    6876
    6977
Note: See TracChangeset for help on using the changeset viewer.