- Timestamp:
- 06/03/05 20:36:01 (20 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/Changelog
r7134 r7135 54 54 * msignal/MExtractTimeAndChargeDigitalFilter.cc: 55 55 - 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 56 63 57 64 -
trunk/MagicSoft/Mars/mars.cc
r7134 r7135 103 103 new MCameraDisplay; 104 104 else 105 new MEventDisplay(kFilename); 105 { 106 MEventDisplay *d = new MEventDisplay(kFilename); 107 d->SetBit(MStatusDisplay::kExitLoopOnExit); 108 d->SetTitle(kFilename); 109 } 106 110 107 111 // -
trunk/MagicSoft/Mars/mjobs/MJStar.cc
r7115 r7135 407 407 fillmuon.SetFilter(&fmuon2); 408 408 fillmpar.SetFilter(&fmuon3); 409 fillmuon.SetBit(MFillH::kDoNotDisplay); 409 410 410 411 if (fMuonAnalysis) -
trunk/MagicSoft/Mars/mmain/MEventDisplay.cc
r7134 r7135 343 343 MMuonCalibParCalc *mcalc = new MMuonCalibParCalc; 344 344 MFillH *fillmuon = new MFillH("MHSingleMuon", "", "FillMuon"); 345 fillmuon->SetNameTab("Muon"); 345 346 tlist->AddToList(muscalc); 346 347 tlist->AddToList(fillmuon); … … 351 352 // Now distribute Display to all tasks 352 353 // 353 fEvtLoop = new MEvtLoop( Form("Mars %s", gSystem->BaseName(fname)));354 fEvtLoop = new MEvtLoop(gSystem->BaseName(fname)); 354 355 fEvtLoop->SetOwner(); 355 356 fEvtLoop->SetParList(plist); -
trunk/MagicSoft/Mars/mmuon/MHSingleMuon.cc
r7033 r7135 349 349 // Setup the function and perform the fit 350 350 TF1 f1("f1", "gaus", startfitval, endfitval); 351 f1.SetLineColor(kBlue); 351 352 352 353 // Choose starting values as accurate as possible … … 360 361 // R use the range specified in the function range 361 362 // Q quiet mode 362 fHistWidth.Fit(&f1, " NQR");363 fHistWidth.Fit(&f1, "QR0"); 363 364 364 365 chi = f1.GetChisquare()/f1.GetNDF(); … … 451 452 } 452 453 */ 454 455 void MHSingleMuon::Paint(Option_t *o) 456 { 457 TF1 *f = fHistWidth.GetFunction("f1"); 458 if (f) 459 f->ResetBit(1<<9); 460 } 461 462 void 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 41 41 const TH1F &GetHistWidth() const { return fHistWidth; } 42 42 43 void Draw(Option_t *o=""); 44 void Paint(Option_t *o=""); 45 43 46 ClassDef(MHSingleMuon, 1) 44 47 };
Note:
See TracChangeset
for help on using the changeset viewer.