Changeset 7001 for trunk/MagicSoft/Mars/mjobs/MJSpectrum.cc
- Timestamp:
- 05/09/05 10:15:41 (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mjobs/MJSpectrum.cc
r6994 r7001 178 178 return -1; 179 179 180 TObject *hist = arr.FindObjectInCanvas("Hist", "MHAlpha", "Hist"); 181 cout << "HIST: " << hist << endl; 182 if (hist) 183 cout << "TYPE: " << hist->ClassName() << endl; 184 arr.Print(); 185 180 186 vstime->Copy(h1); 181 187 size->Copy(h2); … … 344 350 taskenv1.SetDefault(fEstimateEnergy ? fEstimateEnergy : &est); 345 351 346 MFillH fill1("Hist Off [MHAlpha]", "MHillasSrc", "FillHistOff");347 MFillH fill2("Hist On [MHAlpha]", "MHillasSrc", "FillHistOn");352 MFillH fill1("HistEOff [MHAlpha]", "MHillasSrc", "FillHistEOff"); 353 MFillH fill2("HistE [MHAlpha]", "MHillasSrc", "FillHistE"); 348 354 349 355 MFDataMember f0("DataType.fVal", '<', 0.5, "FilterOffData"); … … 382 388 } 383 389 384 const MHAlpha *halpha = (MHAlpha *)plist.FindObject("Hist On");390 const MHAlpha *halpha = (MHAlpha *)plist.FindObject("HistE"); 385 391 if (!halpha) 386 392 { 387 *fLog << err << GetDescriptor() << ": Hist On[MHAlpha] not found... abort." << endl;393 *fLog << err << GetDescriptor() << ": HistE [MHAlpha] not found... abort." << endl; 388 394 return kFALSE; 389 395 } … … 597 603 *fLog << inf << "Reading from file: " << fPathIn << endl; 598 604 599 cout << "Opening..." << endl;600 605 TFile file(fPathIn, "READ"); 601 606 if (!file.IsOpen()) … … 605 610 } 606 611 607 cout << "Reading..." << endl;608 612 file.cd(); 609 613 MStatusArray arr; … … 614 618 } 615 619 616 cout << "Searching..." << endl;617 618 620 TH1 *excess = (TH1D*)arr.FindObjectInCanvas("Excess", "TH1D", "Hist"); 619 621 if (!excess) 620 622 return kFALSE; 621 622 cout << "Displaying..." << endl;623 623 624 624 // ------------------- Plot excess versus size ------------------- … … 638 638 // Don't do this on the original object! 639 639 excess->SetStats(kFALSE); 640 641 cout << "ExcessSize..." << endl;642 640 643 641 TObject *o=0; … … 656 654 } 657 655 658 cout << "Dist..." << endl;659 660 656 // -------------- Comparison of Image Parameters -------------- 661 657 c.cd(2); 662 658 PlotSame(arr, plist, "Dist", "HilSrc", "MHHilSrcMCPost"); 663 659 664 cout << "Length..." << endl;665 666 660 c.cd(3); 667 661 PlotSame(arr, plist, "Length", "PostCut", "MHHillasMCPost"); 668 662 669 cout << "M3l..." << endl;670 671 663 c.cd(4); 672 664 PlotSame(arr, plist, "M3l", "HilExt", "MHHilExtMCPost"); 673 665 674 cout << "Conc1..." << endl;675 676 666 c.cd(5); 677 667 PlotSame(arr, plist, "Conc1", "NewPar", "MHNewParMCPost"); 678 679 cout << "Width..." << endl;680 668 681 669 c.cd(6); … … 710 698 MBinning bins7("BinningDist"); 711 699 MBinning bins8("BinningMaxDist"); 700 MBinning bins9("BinningM3Long"); 701 MBinning bins0("BinningConc1"); 712 702 713 703 MAlphaFitter fit; … … 722 712 plist.AddToList(&bins7); 723 713 plist.AddToList(&bins8); 714 plist.AddToList(&bins9); 715 plist.AddToList(&bins0); 724 716 plist.AddToList(&fit); 725 717
Note:
See TracChangeset
for help on using the changeset viewer.