Changeset 7135 for trunk/MagicSoft/Mars/mmuon
- Timestamp:
- 06/03/05 20:36:01 (20 years ago)
- Location:
- trunk/MagicSoft/Mars/mmuon
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
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.