Changeset 5007 for trunk/MagicSoft/Mars/mhcalib/MHGausEvents.cc
- Timestamp:
- 09/14/04 17:00:14 (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mhcalib/MHGausEvents.cc
r4994 r5007 386 386 fPowerSpectrum = fourier.PowerSpectrumDensity(&fEvents); 387 387 fHPowerProbability = ProjectArray(*fPowerSpectrum, fPowerProbabilityBins, 388 Form("%s%s","PowerProb ability",GetName()),388 Form("%s%s","PowerProb",GetName()), 389 389 "Probability of Power occurrance"); 390 390 fHPowerProbability->SetXTitle("P(f)"); … … 521 521 522 522 if (option.Contains("events")) 523 { 524 option.ReplaceAll("events",""); 525 win += 1; 526 } 523 win += 1; 527 524 if (option.Contains("fourier")) 528 { 529 option.ReplaceAll("fourier",""); 530 win += 2; 531 } 532 525 win += 2; 526 if (IsEmpty()) 527 win--; 528 533 529 pad->SetBorderMode(0); 534 530 pad->Divide(1,win); 535 pad->cd(1); 536 537 if (!IsEmpty() && !IsOnlyOverflow() && !IsOnlyUnderflow()) 538 gPad->SetLogy(); 531 532 Int_t cwin = 1; 539 533 540 534 gPad->SetTicks(); 541 535 542 fHGausHist.Draw(option); 543 544 if (fFGausFit) 545 { 546 fFGausFit->SetLineColor(IsGausFitOK() ? kGreen : kRed); 547 fFGausFit->Draw("same"); 548 } 549 switch (win) 550 { 551 case 2: 552 pad->cd(2); 536 if (!IsEmpty()) 537 { 538 pad->cd(cwin++); 539 540 if (!IsOnlyOverflow() && !IsOnlyUnderflow()) 541 gPad->SetLogy(); 542 543 fHGausHist.Draw(option); 544 545 if (fFGausFit) 546 { 547 fFGausFit->SetLineColor(IsGausFitOK() ? kGreen : kRed); 548 fFGausFit->Draw("same"); 549 } 550 } 551 552 if (option.Contains("events")) 553 { 554 pad->cd(cwin++); 553 555 DrawEvents(); 554 break; 555 case 3: 556 pad->cd(2); 557 DrawPowerSpectrum(*pad,3); 558 break; 559 case 4: 560 pad->cd(2); 561 DrawEvents(); 562 pad->cd(3); 563 DrawPowerSpectrum(*pad,4); 564 break; 556 } 557 if (option.Contains("fourier")) 558 { 559 pad->cd(cwin++); 560 DrawPowerSpectrum(*pad,cwin); 565 561 } 566 562 }
Note:
See TracChangeset
for help on using the changeset viewer.