Changeset 7135 for trunk


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

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/Changelog

    r7134 r7135  
    5454   * msignal/MExtractTimeAndChargeDigitalFilter.cc:
    5555     - don't try to find automatic weights without template file name
     56
     57   * mjobs/MJStar.cc:
     58     - set bit MFillH::kDoNotDisplay for fillmuon
     59
     60   * mmuon/MHSingleMuon.[h,cc]:
     61     - store function in hist
     62     - added Paint member function
    5663
    5764
  • trunk/MagicSoft/Mars/mars.cc

    r7134 r7135  
    103103        new MCameraDisplay;
    104104    else
    105         new MEventDisplay(kFilename);
     105    {
     106        MEventDisplay *d = new MEventDisplay(kFilename);
     107        d->SetBit(MStatusDisplay::kExitLoopOnExit);
     108        d->SetTitle(kFilename);
     109    }
    106110
    107111    //
  • trunk/MagicSoft/Mars/mjobs/MJStar.cc

    r7115 r7135  
    407407    fillmuon.SetFilter(&fmuon2);
    408408    fillmpar.SetFilter(&fmuon3);
     409    fillmuon.SetBit(MFillH::kDoNotDisplay);
    409410
    410411    if (fMuonAnalysis)
  • trunk/MagicSoft/Mars/mmain/MEventDisplay.cc

    r7134 r7135  
    343343    MMuonCalibParCalc  *mcalc   = new MMuonCalibParCalc;
    344344    MFillH *fillmuon = new MFillH("MHSingleMuon", "", "FillMuon");
     345    fillmuon->SetNameTab("Muon");
    345346    tlist->AddToList(muscalc);
    346347    tlist->AddToList(fillmuon);
     
    351352    // Now distribute Display to all tasks
    352353    //
    353     fEvtLoop = new MEvtLoop(Form("Mars %s", gSystem->BaseName(fname)));
     354    fEvtLoop = new MEvtLoop(gSystem->BaseName(fname));
    354355    fEvtLoop->SetOwner();
    355356    fEvtLoop->SetParList(plist);
  • 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.