Changeset 6773 for trunk/MagicSoft/Mars/mhcalib/MHCalibrationHiLoCam.cc
- Timestamp:
- 03/07/05 17:53:13 (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mhcalib/MHCalibrationHiLoCam.cc
r6704 r6773 635 635 } 636 636 637 // ----------------------------------------------------------------------------- 638 // 639 // Default draw: 640 // 641 // Displays the averaged areas, both amplification ratio as time difference 642 // 643 void MHCalibrationHiLoCam::Draw(const Option_t *opt) 644 { 645 646 if (!IsAverageing()) 647 return; 648 649 const Int_t nareas = fAverageHiGainAreas->GetSize(); 650 if (nareas == 0) 651 return; 652 653 TVirtualPad *pad = gPad ? gPad : MH::MakeDefCanvas(this); 654 pad->SetBorderMode(0); 655 656 pad->Divide(IsLoGain() ? 2 : 1,nareas); 657 658 for (Int_t i=0; i<nareas;i++) 659 { 660 661 pad->cd(IsLoGain() ? 2*(i+1)-1 : i+1); 662 663 GetAverageHiGainArea(i).Draw(opt); 664 665 if (IsLoGain()) 666 { 667 pad->cd(2*(i+1)); 668 669 TH1F *hist = GetAverageLoGainArea(i).GetHGausHist(); 670 hist->SetXTitle("Extracted Time Difference [FADC sl.]"); 671 GetAverageLoGainArea(i).Draw(opt); 672 } 673 } 674 } 675
Note:
See TracChangeset
for help on using the changeset viewer.