Ignore:
Timestamp:
09/27/01 13:25:51 (23 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/mmain
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mmain/MAnalysis.cc

    r951 r952  
    230230    plist.AddToList(&hillas);
    231231
    232     MHHillas *hists = new MHHillas;
    233     plist.AddToList(hists);
    234 
    235     MHStarMap *smap = new MHStarMap;
    236     plist.AddToList(smap);
    237 
    238     // FIXME: Where do we delete this two objects???
     232    MHHillas  hists;
     233    MHStarMap smap;
     234    plist.AddToList(&hists);
     235    plist.AddToList(&smap);
    239236
    240237    //
     
    254251    //   CalEvents:  Calibration Events
    255252    //
    256     MReadTree      read("Events", fInputFile);
    257     MCerPhotCalc   ncalc;
    258     MImgCleanStd   clean(cleanlvl1, cleanlvl2);
    259     MHillasCalc    hcalc;
    260     MFillH         hfill(&hillas, hists);
    261     MFillH         sfill(&hillas, smap);
     253    MReadTree    read("Events", fInputFile);
     254    MCerPhotCalc ncalc;
     255    MImgCleanStd clean(cleanlvl1, cleanlvl2);
     256    MHillasCalc  hcalc;
    262257
    263258    tlist.AddToList(&read);
     
    265260    tlist.AddToList(&clean);
    266261    tlist.AddToList(&hcalc);
    267     tlist.AddToList(&hfill);
    268     tlist.AddToList(&sfill);
     262
     263    MFillH hfill(&hillas, &hists);
     264    MFillH sfill(&hillas, &smap);
     265
     266    if (displhillas)
     267        tlist.AddToList(&hfill);
     268
     269    if (displstarmap)
     270        tlist.AddToList(&sfill);
    269271
    270272    //
     
    283285    // After the analysis is finished we can display the histograms
    284286    //
    285 
    286287    if (displhillas)
    287         hists->Draw();
     288        hists.DrawClone();
    288289
    289290    if (displstarmap)
    290         smap->Draw();
    291 
     291        smap.DrawClone();
     292
     293    cout << endl;
    292294    cout << "Calculation of Hillas Parameters finished without error!" << endl;
    293295}
  • trunk/MagicSoft/Mars/mmain/MBrowser.cc

    r951 r952  
    255255    fInputFile[0] = '\0';
    256256
     257    fList = new TList;
    257258    fList->SetOwner();
    258259
     
    308309    fClient->FreePicture(fPic2);
    309310    fClient->FreePicture(fPic3);
     311
     312    delete fList;
    310313}
    311314
Note: See TracChangeset for help on using the changeset viewer.