Changeset 4304 for trunk/MagicSoft/Mars/mcalib
- Timestamp:
- 06/17/04 20:13:02 (21 years ago)
- Location:
- trunk/MagicSoft/Mars/mcalib
- Files:
-
- 3 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 } -
trunk/MagicSoft/Mars/mcalib/MHCalibrationChargeCam.h
r4128 r4304 49 49 void DrawPixelContent( Int_t num ) const; 50 50 51 // Draw 52 void Draw(const Option_t *opt); 53 51 54 ClassDef(MHCalibrationChargeCam, 1) // Histogram class for Charge Camera Calibration 52 55 }; -
trunk/MagicSoft/Mars/mcalib/MHCalibrationChargePix.cc
r4249 r4304 263 263 pad->cd(1); 264 264 } 265 else 265 else if (option.Contains("datacheck")) 266 { 267 MHGausEvents::Draw("events"); 268 return; 269 } 270 else 266 271 { 267 272 pad = oldpad; … … 269 274 pad->cd(1); 270 275 } 271 276 /* 277 else 278 { 279 option.ReplaceAll("time",""); 280 pad = oldpad; 281 pad->Divide(1,2); 282 pad->cd(1); 283 } 284 */ 272 285 if (!IsEmpty()) 273 286 gPad->SetLogy();
Note:
See TracChangeset
for help on using the changeset viewer.