Changeset 2098 for trunk/MagicSoft/Mars/macros
- Timestamp:
- 05/08/03 18:00:03 (22 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/macros/collarea.C
r1660 r2098 16 16 ! 17 17 ! 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> 19 19 ! 20 ! Copyright: MAGIC Software Development, 2000-200 120 ! Copyright: MAGIC Software Development, 2000-2003 21 21 ! 22 22 ! … … 25 25 26 26 void 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 28 32 // 29 33 // first we have to create our empty lists … … 54 58 // Start to loop over all events 55 59 // 56 MProgressBar bar; 57 magic.SetProgressBar(&bar); 60 magic.SetDisplay(d); 58 61 if (!magic.Eventloop()) 59 62 return; … … 65 68 // filled and can be displayed 66 69 // 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"); 68 76 69 77
Note:
See TracChangeset
for help on using the changeset viewer.