Ignore:
Timestamp:
06/03/05 20:36:01 (19 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/mmuon
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mmuon/MHSingleMuon.cc

    r7033 r7135  
    349349    // Setup the function and perform the fit
    350350    TF1 f1("f1", "gaus", startfitval, endfitval);
     351    f1.SetLineColor(kBlue);
    351352
    352353    // Choose starting values as accurate as possible
     
    360361    //           R  use the range specified in the function range
    361362    //           Q  quiet mode
    362     fHistWidth.Fit(&f1, "NQR");
     363    fHistWidth.Fit(&f1, "QR0");
    363364
    364365    chi = f1.GetChisquare()/f1.GetNDF();
     
    451452}
    452453*/
     454
     455void MHSingleMuon::Paint(Option_t *o)
     456{
     457    TF1 *f = fHistWidth.GetFunction("f1");
     458    if (f)
     459        f->ResetBit(1<<9);
     460}
     461
     462void MHSingleMuon::Draw(Option_t *o)
     463{
     464    TVirtualPad *pad = gPad ? gPad : MakeDefCanvas(this);
     465    pad->SetBorderMode(0);
     466
     467    AppendPad("");
     468
     469    pad->Divide(1,2);
     470
     471    pad->cd(1);
     472    gPad->SetBorderMode(0);
     473    fHistPhi.Draw();
     474
     475    pad->cd(2);
     476    gPad->SetBorderMode(0);
     477    fHistWidth.Draw();
     478
     479}
  • trunk/MagicSoft/Mars/mmuon/MHSingleMuon.h

    r7009 r7135  
    4141    const TH1F &GetHistWidth() const { return fHistWidth; }
    4242
     43    void Draw(Option_t *o="");
     44    void Paint(Option_t *o="");
     45
    4346    ClassDef(MHSingleMuon, 1)
    4447};
Note: See TracChangeset for help on using the changeset viewer.