Changeset 7533 for trunk/MagicSoft/Mars


Ignore:
Timestamp:
02/27/06 11:17:27 (19 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/Changelog

    r7532 r7533  
    2424       standard Disp-parametrization
    2525
     26   * mhflux/MHEffectiveOnTime.[h,cc]:
     27     - added showing the axis range of the time evolution histogram
     28
    2629
    2730
  • trunk/MagicSoft/Mars/NEWS

    r7532 r7533  
    55   - macros: fixed a typo optimwoble.C (SetThetaCut instead SetAlphaCut)
    66     and added the standard Disp-parametrization
     7
     8   - star: The time-evolution shown in the effective on-time plot now displays
     9     the axis range (if there are no holes it should be similar to the
     10     effective on-time)
    711
    812   - showplot: path inflation for ganymed files was broken
  • trunk/MagicSoft/Mars/macros/optim/optimwobble.C

    r7531 r7533  
    66
    77    // ------------------- Xi -----------------------
    8     opt.SetParameter(0, 0.6);
    9     opt.FixParameter(6, 0.137);
    10 
     8    opt.FixParameter(0, 1.221);
     9    opt.FixParameter(6, 13.425);
     10    opt.FixParameter(7, 1.04343);
     11                 
    1112    // --------------- Theta Sq ---------------------
    1213    opt.SetParameter(1, 0.23);
  • trunk/MagicSoft/Mars/mhflux/MHEffectiveOnTime.cc

    r7178 r7533  
    759759//  Paint the integral and the error on top of the histogram
    760760//
    761 void MHEffectiveOnTime::PaintText(Double_t val, Double_t error) const
    762 {
    763     TLatex text(0.45, 0.94, Form("T_{eff} = %.1fs \\pm %.1fs", val, error));
     761void MHEffectiveOnTime::PaintText(Double_t val, Double_t error, Double_range) const
     762{
     763    TLatex text;
    764764    text.SetBit(TLatex::kTextNDC);
    765765    text.SetTextSize(0.04);
    766     text.Paint();
     766    text.PaintLatex(0.45, 0.94, Form("T_{eff} = %.1fs \\pm %.1fs", val, error));
     767
     768    if (range>=0)
     769        text.PaintLatex(0.66, 0.94, Form("T_{axe} = %.1fs", range));
    767770}
    768771
     
    891894
    892895    h=0;
     896
     897    Double_t range=-1;
    893898    if (o==(TString)"theta")
    894899    {
     
    900905        h = &fHTimeEffOn;
    901906        UpdateRightAxis(fHTimeLambda);
     907        range = h->GetXaxis()->GetXmax()->h->GetXaxis()->GetXmin();
    902908    }
    903909
     
    909915        error += h->GetBinError(i);
    910916
    911     PaintText(h->Integral(), error);
     917    PaintText(h->Integral(), error, range);
    912918}
    913919
  • trunk/MagicSoft/Mars/mhflux/MHEffectiveOnTime.h

    r5620 r7533  
    5757    void FitTimeBin();
    5858    void PaintProb(TH1 &h) const;
    59     void PaintText(Double_t val, Double_t error) const;
     59    void PaintText(Double_t val, Double_t error, Double_t range=-1) const;
    6060    void PaintText(Double_t *res) const;
    6161    void DrawRightAxis(const char *title);
Note: See TracChangeset for help on using the changeset viewer.