Changeset 8985 for trunk/MagicSoft/Mars
- Timestamp:
- 06/20/08 13:45:16 (16 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/Changelog
r8978 r8985 19 19 -*-*- END OF LINE -*-*- 20 20 21 2008/06/10 Thomas Bretz 22 23 * macros/dohtml.C: 24 - added missing mmovie directory 25 26 * mhflux/MHEnergyEst.cc: 27 - changed the fit range to adapt to the new plot 28 - exchanged the two plots on the right to have the correct plot 29 near the 1D histogram 30 - fixed the title of the plot in the top right 31 - call SetNoExponent and SetMoreLoglabels 32 33 * mjobs/MJSpectrum.[h,cc]: 34 - outsources producing the spectral function as string to 35 a new static function FormFlux 36 37 * mpointing/MPointingDevCalc.cc: 38 - added some info 39 40 41 21 42 2008/06/19 Thomas Bretz 22 43 … … 29 50 - added Format member function 30 51 52 * datacenter/macros/plotstat.C: 53 - fixed some axis titles 54 31 55 32 56 … … 34 58 35 59 * RELEASE 2.1 60 61 62 63 2008/06/19 Thomas Bretz 64 65 * mraw/MRawRunHeader.cc: 66 - fixed that the line reading the fNumEventsRead vanished 36 67 37 68 -
trunk/MagicSoft/Mars/NEWS
r8975 r8985 11 11 12 12 * introduced average temperature and wind speed from star-files 13 14 * introduced average values from Pyrometer (mainly Cloudiness) 13 15 14 16 * introduced the ratio of accepted calibration events in the … … 122 124 to distinguish them from each other (MPedestalCam, MPedestalExtracted) 123 125 124 * Both pedestal cams now con atain the number of events processed126 * Both pedestal cams now contain the number of events processed 125 127 126 128 * In Mars V2.0 the extraction of the fundamental pedestal was broken, -
trunk/MagicSoft/Mars/macros/dohtml.C
r8110 r8985 84 84 sourcedir += "mmontecarlo:"; 85 85 sourcedir += "mmuon:"; 86 sourcedir += "mmovie:"; 86 87 sourcedir += "mpointing:"; 87 88 sourcedir += "mpedestal:"; -
trunk/MagicSoft/Mars/mhflux/MHEnergyEst.cc
r8938 r8985 332 332 } 333 333 334 hx->Fit("gaus", "Q", "", - 1.0, 0.25);334 hx->Fit("gaus", "Q", "", -0.25, 1.0); 335 335 hx->GetFunction("gaus")->SetLineColor(kBlue); 336 336 hx->GetFunction("gaus")->SetLineWidth(2); … … 363 363 364 364 pad->GetPad(2)->cd(2); 365 UpdateProf(fHResolutionMC, kFALSE); 366 367 pad->GetPad(2)->cd(3); 365 368 UpdateProf(fHResolutionEst, kFALSE); 366 367 pad->GetPad(2)->cd(3);368 UpdateProf(fHResolutionMC, kFALSE);369 369 } 370 370 } … … 451 451 h->Draw(); 452 452 453 h->GetXaxis()->SetMoreLogLabels(); 454 h->GetXaxis()->SetNoExponent(); 455 453 456 h = MakeProj("ex"); 454 457 h->SetLineColor(kBlue); … … 511 514 h2->SetBit(kCanDelete); 512 515 h2->SetFillColor(kBlue); 513 h2->SetTitle("Estimated energy E_{est} vs Monte Carlo energy E_{mc}"); 514 515 TH1 *h1 = MakeProf(*h2); 516 h2->SetTitle("Estimated energy E_{mc} vs Monte Carlo energy E_{est}"); 516 517 517 518 h2->Draw(""); 518 h1->Draw("E0 same"); 519 MakeProf(*h2)->Draw("E0 same"); 520 521 h2->GetXaxis()->SetMoreLogLabels(); 522 h2->GetXaxis()->SetNoExponent(); 519 523 520 524 TLine line; … … 528 532 529 533 pad2->cd(2); 534 gPad->SetBorderMode(0); 535 gPad->SetLogx(); 536 gPad->SetGridx(); 537 gPad->SetGridy(); 538 fHResolutionMC.Draw(); 539 MakeProf(fHResolutionMC)->Draw("E0 same"); 540 541 fHResolutionMC.GetXaxis()->SetMoreLogLabels(); 542 fHResolutionMC.GetXaxis()->SetNoExponent(); 543 544 line.DrawLine(fHResolutionMC.GetXaxis()->GetXmin(), 0, fHResolutionMC.GetXaxis()->GetXmax(), 0); 545 546 // ---------------------------------------- 547 548 pad2->cd(3); 530 549 gPad->SetBorderMode(0); 531 550 gPad->SetLogx(); … … 539 558 540 559 line.DrawLine(fHResolutionEst.GetXaxis()->GetXmin(), 0, fHResolutionEst.GetXaxis()->GetXmax(), 0); 541 542 // ----------------------------------------543 544 pad2->cd(3);545 gPad->SetBorderMode(0);546 gPad->SetLogx();547 gPad->SetGridx();548 gPad->SetGridy();549 fHResolutionMC.Draw();550 MakeProf(fHResolutionMC)->Draw("E0 same");551 552 fHResolutionMC.GetXaxis()->SetMoreLogLabels();553 fHResolutionMC.GetXaxis()->SetNoExponent();554 555 line.DrawLine(fHResolutionMC.GetXaxis()->GetXmin(), 0, fHResolutionMC.GetXaxis()->GetXmax(), 0);556 560 } 557 561 -
trunk/MagicSoft/Mars/mjobs/MJSpectrum.cc
r8978 r8985 870 870 */ 871 871 872 TString MJSpectrum::FormString(const TF1 &f, Byte_t type) 872 TString MJSpectrum::FormFloat(Double_t d) 873 { 874 TString s; 875 s += d; 876 return s.Strip(TString::kLeading); 877 } 878 879 TString MJSpectrum::FormFlux(const TF1 &f, const char *unit) 873 880 { 874 881 Double_t p0 = f.GetParameter(0); … … 881 888 MMath::Format(p1, e1); 882 889 883 TString str; 890 const Int_t i = TMath::FloorNint(TMath::Log10(p1)); 891 const Double_t exp = TMath::Power(10, i); 892 893 TString str = Form("(%s #pm %s)·10^{%d} ", 894 FormFloat(p1/exp).Data(), FormFloat(e1/exp).Data(), i); 895 896 str += Form("#left(#frac{E}{%s}#right)^{%s #pm %s}", unit, 897 FormFloat(p0).Data(), FormFloat(e0).Data()); 898 899 str += " TeV^{-1} m^{-2} s^{-1}"; 900 901 return str; 902 } 903 904 TString MJSpectrum::FormString(const TF1 &f, Byte_t type) 905 { 884 906 switch (type) 885 907 { 886 908 case 0: 887 { 888 const Int_t i = TMath::FloorNint(TMath::Log10(p1)); 889 const Double_t exp = TMath::Power(10, i); 890 891 str = Form("(%f#pm%f)\\bullet10^{%d}", p1/exp, e1/exp, i); 892 str += Form("(\\frac{E}{500GeV})^{%f#pm%f}", p0, e0); 893 str += "\\frac{ph}{TeVm^{2}s}"; 894 } 895 break; 909 return FormFlux(f, "500GeV"); 896 910 case 1: 897 str = Form("\\chi^{2}/NDF=%.2f/%d", f.GetChisquare(),f.GetNDF()); 898 break; 911 return Form("\\chi^{2}/NDF=%.2f/%d", f.GetChisquare(),f.GetNDF()); 899 912 case 2: 900 str = Form("P=%.0f%%", 100*TMath::Prob(f.GetChisquare(), f.GetNDF())); 901 break; 902 } 903 return str; 913 return Form("P=%.0f%%", 100*TMath::Prob(f.GetChisquare(), f.GetNDF())); 914 } 915 return ""; 904 916 } 905 917 -
trunk/MagicSoft/Mars/mjobs/MJSpectrum.h
r8940 r8985 78 78 void SetEnergyEstimator(const MTask *task); 79 79 80 static TString FormFloat(Double_t d); 81 static TString FormFlux(const TF1 &f, const char *unit); 80 82 static TString FormString(const TF1 &f, Byte_t type=0); 81 83 -
trunk/MagicSoft/Mars/mpointing/MPointingDevCalc.cc
r8947 r8985 159 159 // 18. Oct. 2007 291104 // Correction for the offsets introduced by AMC 160 160 // 14. Jan. 2008 328198 // Complete new pointing model 161 // 11. Jun. 2008 (ca. 23:00) 161 // 11. Jun. 2008 (ca. 23:00) // Before new TPoints 162 // 19. Jun. 2008 (ca. 15:00) // From new TPoints 162 163 // 163 164 // From 2.2.2006 beginnig of the night (21:05h, run >=81855) to 24.2.2006
Note:
See TracChangeset
for help on using the changeset viewer.