Changeset 8985 for trunk


Ignore:
Timestamp:
06/20/08 13:45:16 (16 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/Changelog

    r8978 r8985  
    1919                                                 -*-*- END OF LINE -*-*-
    2020
     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
    2142 2008/06/19 Thomas Bretz
    2243
     
    2950     - added Format member function
    3051
     52   * datacenter/macros/plotstat.C:
     53     - fixed some axis titles
     54
    3155
    3256
     
    3458
    3559   * 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
    3667
    3768
  • trunk/MagicSoft/Mars/NEWS

    r8975 r8985  
    1111
    1212   * introduced average temperature and wind speed from star-files
     13
     14   * introduced average values from Pyrometer (mainly Cloudiness)
    1315
    1416   * introduced the ratio of accepted calibration events in the
     
    122124      to distinguish them from each other (MPedestalCam, MPedestalExtracted)
    123125
    124     * Both pedestal cams now conatain the number of events processed
     126    * Both pedestal cams now contain the number of events processed
    125127
    126128    * In Mars V2.0 the extraction of the fundamental pedestal was broken,
  • trunk/MagicSoft/Mars/macros/dohtml.C

    r8110 r8985  
    8484    sourcedir += "mmontecarlo:";
    8585    sourcedir += "mmuon:";
     86    sourcedir += "mmovie:";
    8687    sourcedir += "mpointing:";
    8788    sourcedir += "mpedestal:";
  • trunk/MagicSoft/Mars/mhflux/MHEnergyEst.cc

    r8938 r8985  
    332332                }
    333333
    334                 hx->Fit("gaus", "Q", "", -1.0, 0.25);
     334                hx->Fit("gaus", "Q", "", -0.25, 1.0);
    335335                hx->GetFunction("gaus")->SetLineColor(kBlue);
    336336                hx->GetFunction("gaus")->SetLineWidth(2);
     
    363363
    364364        pad->GetPad(2)->cd(2);
     365        UpdateProf(fHResolutionMC, kFALSE);
     366
     367        pad->GetPad(2)->cd(3);
    365368        UpdateProf(fHResolutionEst, kFALSE);
    366 
    367         pad->GetPad(2)->cd(3);
    368         UpdateProf(fHResolutionMC, kFALSE);
    369369    }
    370370}
     
    451451    h->Draw();
    452452
     453    h->GetXaxis()->SetMoreLogLabels();
     454    h->GetXaxis()->SetNoExponent();
     455
    453456    h = MakeProj("ex");
    454457    h->SetLineColor(kBlue);
     
    511514    h2->SetBit(kCanDelete);
    512515    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}");
    516517
    517518    h2->Draw("");
    518     h1->Draw("E0 same");
     519    MakeProf(*h2)->Draw("E0 same");
     520
     521    h2->GetXaxis()->SetMoreLogLabels();
     522    h2->GetXaxis()->SetNoExponent();
    519523
    520524    TLine line;
     
    528532
    529533    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);
    530549    gPad->SetBorderMode(0);
    531550    gPad->SetLogx();
     
    539558
    540559    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);
    556560}
    557561
  • trunk/MagicSoft/Mars/mjobs/MJSpectrum.cc

    r8978 r8985  
    870870*/
    871871
    872 TString MJSpectrum::FormString(const TF1 &f, Byte_t type)
     872TString MJSpectrum::FormFloat(Double_t d)
     873{
     874    TString s;
     875    s += d;
     876    return s.Strip(TString::kLeading);
     877}
     878
     879TString MJSpectrum::FormFlux(const TF1 &f, const char *unit)
    873880{
    874881    Double_t p0 = f.GetParameter(0);
     
    881888    MMath::Format(p1, e1);
    882889
    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
     904TString MJSpectrum::FormString(const TF1 &f, Byte_t type)
     905{
    884906    switch (type)
    885907    {
    886908    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");
    896910    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());
    899912    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 "";
    904916}
    905917
  • trunk/MagicSoft/Mars/mjobs/MJSpectrum.h

    r8940 r8985  
    7878    void SetEnergyEstimator(const MTask *task);
    7979
     80    static TString FormFloat(Double_t d);
     81    static TString FormFlux(const TF1 &f, const char *unit);
    8082    static TString FormString(const TF1 &f, Byte_t type=0);
    8183
  • trunk/MagicSoft/Mars/mpointing/MPointingDevCalc.cc

    r8947 r8985  
    159159//   18. Oct. 2007    291104      // Correction for the offsets introduced by AMC
    160160//   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
    162163//
    163164// 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.