Changeset 7015


Ignore:
Timestamp:
05/12/05 11:00:04 (20 years ago)
Author:
meyer
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/Changelog

    r7013 r7015  
    2121
    2222                                                 -*-*- END OF LINE -*-*-
     23 2005/05/12 Markus Meyer
     24
     25   * mmuon/MHMounPar[.h,.cc]
     26     - added function Paint. This function integrates the TProfile
     27       ArcWidth/Radius Vs. Radius between certain values and shows
     28       the result in the Status Display
     29
     30
     31
    2332 2005/05/11 Thomas Bretz
    2433
  • trunk/MagicSoft/Mars/mmuon/MHMuonPar.cc

    r7009 r7015  
    4646#include <TH1.h>
    4747#include <TPad.h>
     48#include <TLatex.h>
    4849#include <TCanvas.h>
    4950#include <TProfile.h>
     
    9091
    9192    fHistBroad.SetName("RingBroadening");
    92     fHistBroad.SetTitle("Profile of ArcWidth/Radius versus Radius");
     93    fHistBroad.SetTitle("Profile ArcWidth/Radius vs Radius");
    9394    fHistBroad.SetXTitle("R [\\circ]");
    9495    fHistBroad.SetYTitle("W/R [1]");
     
    9899
    99100    fHistSize.SetName("SizeVsRadius");
    100     fHistSize.SetTitle("Profile of Muon Size vs. Radius");
     101    fHistSize.SetTitle("Profile MuonSize vs Radius");
    101102    fHistSize.SetXTitle("R [\\circ]");
    102103    fHistSize.SetYTitle("S [phe]");
     
    205206    gPad->SetBorderMode(0);
    206207    fHistBroad.Draw();
    207 }
     208
     209    AppendPad("pad4");
     210}
     211
     212void MHMuonPar::Paint(Option_t *opt)
     213{
     214    if (TString(opt)!=TString("pad4"))
     215        return;
     216
     217    const Double_t lolim = 0.7;
     218    const Double_t uplim = 1.2;
     219
     220    const Int_t bin1 = fHistBroad.GetXaxis()->FindFixBin(lolim);
     221    const Int_t bin2 = fHistBroad.GetXaxis()->FindFixBin(uplim);
     222
     223    const TString txt = Form("\\Sigma_{%.2f\\circ}^{%.2f\\circ} = %.3f", lolim,
     224                             uplim, fHistBroad.Integral(bin1, bin2));
     225
     226    TLatex text(0.57, 0.93, txt);
     227    text.SetBit(TLatex::kTextNDC);
     228    text.SetTextSize(0.055);
     229    text.Paint();
     230}
  • trunk/MagicSoft/Mars/mmuon/MHMuonPar.h

    r7009 r7015  
    4242
    4343    void Draw(Option_t *opt="");
     44    void Paint(Option_t *opt="");
    4445
    4546    ClassDef(MHMuonPar, 1)
Note: See TracChangeset for help on using the changeset viewer.