Changeset 952 for trunk/MagicSoft/Mars/mmain
- Timestamp:
- 09/27/01 13:25:51 (23 years ago)
- Location:
- trunk/MagicSoft/Mars/mmain
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mmain/MAnalysis.cc
r951 r952 230 230 plist.AddToList(&hillas); 231 231 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); 239 236 240 237 // … … 254 251 // CalEvents: Calibration Events 255 252 // 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; 262 257 263 258 tlist.AddToList(&read); … … 265 260 tlist.AddToList(&clean); 266 261 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); 269 271 270 272 // … … 283 285 // After the analysis is finished we can display the histograms 284 286 // 285 286 287 if (displhillas) 287 hists ->Draw();288 hists.DrawClone(); 288 289 289 290 if (displstarmap) 290 smap->Draw(); 291 291 smap.DrawClone(); 292 293 cout << endl; 292 294 cout << "Calculation of Hillas Parameters finished without error!" << endl; 293 295 } -
trunk/MagicSoft/Mars/mmain/MBrowser.cc
r951 r952 255 255 fInputFile[0] = '\0'; 256 256 257 fList = new TList; 257 258 fList->SetOwner(); 258 259 … … 308 309 fClient->FreePicture(fPic2); 309 310 fClient->FreePicture(fPic3); 311 312 delete fList; 310 313 } 311 314
Note:
See TracChangeset
for help on using the changeset viewer.