Changeset 4304 for trunk/MagicSoft/Mars/mcalib/MHCalibrationChargeCam.cc
- Timestamp:
- 06/17/04 20:13:02 (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mcalib/MHCalibrationChargeCam.cc
r4128 r4304 138 138 #include "MExtractedSignalPix.h" 139 139 140 #include <TPad.h> 141 #include <TVirtualPad.h> 142 #include <TCanvas.h> 143 140 144 ClassImp(MHCalibrationChargeCam); 141 145 … … 794 798 } 795 799 800 801 // ----------------------------------------------------------------------------- 802 // 803 // Default draw: 804 // 805 // Displays the averaged areas, both High Gain and Low Gain 806 // 807 // Calls the Draw of the fAverageHiGainAreas and fAverageLoGainAreas objects with options 808 // 809 void MHCalibrationChargeCam::Draw(const Option_t *opt) 810 { 811 812 const Int_t nareas = fAverageHiGainAreas->GetEntries(); 813 if (nareas == 0) 814 return; 815 816 TString option(opt); 817 option.ToLower(); 818 819 if (!option.Contains("datacheck")) 820 { 821 MHCalibrationCam::Draw(opt); 822 return; 823 } 824 825 TVirtualPad *pad = gPad ? gPad : MH::MakeDefCanvas(this); 826 pad->SetBorderMode(0); 827 828 pad->Divide(2,nareas); 829 830 for (Int_t i=0; i<nareas;i++) 831 { 832 833 pad->cd(2*(i+1)-1); 834 GetAverageHiGainArea(i).Draw("datacheck"); 835 pad->cd(2*(i+1)); 836 GetAverageLoGainArea(i).Draw("datacheck"); 837 } 838 }
Note:
See TracChangeset
for help on using the changeset viewer.