Changeset 5544 for trunk/MagicSoft/Mars/mhcalib
- Timestamp:
- 12/01/04 20:49:05 (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mhcalib/MHGausEvents.cc
r5477 r5544 487 487 488 488 Int_t win = 1; 489 Int_t nofit = 0; 489 490 490 491 if (option.Contains("events")) 491 win += 1; 492 { 493 option.ReplaceAll("events",""); 494 win += 1; 495 } 492 496 if (option.Contains("fourier")) 493 win += 2; 497 { 498 option.ReplaceAll("fourier",""); 499 win += 2; 500 } 501 494 502 if (IsEmpty()) 495 503 win--; 496 504 505 if (option.Contains("nofit")) 506 { 507 option.ReplaceAll("nofit",""); 508 nofit++; 509 } 510 497 511 pad->SetBorderMode(0); 498 512 pad->Divide(1,win); … … 510 524 511 525 fHGausHist.Draw(option); 512 513 if (fFGausFit) 514 { 515 fFGausFit->SetLineColor(IsGausFitOK() ? kGreen : kRed); 516 fFGausFit->Draw("same"); 517 } 526 527 if (!nofit) 528 if (fFGausFit) 529 { 530 fFGausFit->SetLineColor(IsGausFitOK() ? kGreen : kRed); 531 fFGausFit->Draw("same"); 532 } 518 533 } 519 534
Note:
See TracChangeset
for help on using the changeset viewer.