Changeset 4704 for trunk/MagicSoft/Mars/mhist
- Timestamp:
- 08/23/04 13:11:40 (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mhist/MHFalseSource.cc
r4358 r4704 344 344 345 345 // Source dependant hillas parameters 346 if (!hsrc.Calc( hil))346 if (!hsrc.Calc(*hil)) 347 347 { 348 348 *fLog << warn << "Calculation of MHillasSrc failed for x=" << cx[ix] << " y=" << cy[iy] << endl; … … 566 566 567 567 // Create catalog... 568 MAstroCatalog stars; 569 stars.SetLimMag(9); 570 stars.SetGuiActive(kFALSE); 571 stars.SetRadiusFOV(maxr); 572 stars.SetRaDec(fRa*TMath::DegToRad()*15, fDec*TMath::DegToRad()); 573 stars.ReadBSC("bsc5.dat"); 574 575 TObject *o = (MAstroCatalog*)stars.Clone(); 576 o->SetBit(kCanDelete); 577 578 return o; 568 MAstroCatalog *stars = new MAstroCatalog; 569 stars->SetLimMag(9); 570 stars->SetGuiActive(kFALSE); 571 stars->SetRadiusFOV(maxr); 572 stars->SetRaDec(fRa*TMath::DegToRad()*15, fDec*TMath::DegToRad()); 573 stars->ReadBSC("bsc5.dat"); 574 575 *fLog << err << "FIXME - The catalog will never be deleted, because this crashes!" << endl; 576 577 stars->SetBit(kCanDelete); 578 579 return stars; 579 580 } 580 581 … … 591 592 592 593 pad->Divide(1, 2, 0, 0.03); 594 595 *fLog << err << "FIXME - Plotting the catalog is broken!" << endl; 593 596 594 597 TObject *catalog = GetCatalog(); … … 610 613 h3->Draw("colz"); 611 614 h3->SetBit(kCanDelete); 612 catalog->Draw("mirror same ");615 catalog->Draw("mirror same *"); 613 616 614 617 // PAD #2 … … 624 627 h4->Draw("colz"); 625 628 h4->SetBit(kCanDelete); 626 catalog->Draw("mirror same ");629 catalog->Draw("mirror same *"); 627 630 628 631 // PAD #3 … … 636 639 h2->Draw("colz"); 637 640 h2->SetBit(kCanDelete); 638 catalog->Draw("mirror same ");641 catalog->Draw("mirror same *"); 639 642 640 643 // Initialize lower part … … 663 666 h5->Draw("colz"); 664 667 h5->SetBit(kCanDelete); 665 catalog->Draw("mirror same ");668 catalog->Draw("mirror same *"); 666 669 667 670 // PAD #6 … … 674 677 h0->Draw("colz"); 675 678 h0->SetBit(kCanDelete); 676 catalog->Draw("mirror same ");679 catalog->Draw("mirror same *"); 677 680 } 678 681 … … 961 964 hists->Draw("colz"); 962 965 hists->SetBit(kCanDelete); 963 catalog->Draw("mirror same ");966 catalog->Draw("mirror same *"); 964 967 c->cd(2); 965 968 gPad->SetBorderMode(0); 966 969 hist->Draw("colz"); 967 970 hist->SetBit(kCanDelete); 968 catalog->Draw("mirror same ");971 catalog->Draw("mirror same *"); 969 972 c->cd(3); 970 973 gPad->SetBorderMode(0); 971 974 histb->Draw("colz"); 972 975 histb->SetBit(kCanDelete); 973 catalog->Draw("mirror same ");976 catalog->Draw("mirror same *"); 974 977 c->cd(4); 975 978 gPad->Divide(1,3, 0, 0);
Note:
See TracChangeset
for help on using the changeset viewer.