- Timestamp:
- 06/17/04 20:13:02 (20 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/Changelog
r4303 r4304 23 23 * mjobs/MJPedestal.[h,cc] 24 24 - adapted display for the datacheck 25 26 * mcalib/MHCalibrationChargeCam.[h,cc] 27 - new function Draw for the datacheck 25 28 26 29 -
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(); -
trunk/MagicSoft/Mars/mjobs/MJCalibration.cc
r4285 r4304 442 442 // Defects 443 443 TCanvas &c4 = fDisplay->AddTab("Defect"); 444 // c4.Divide(3,2);445 444 c4.Divide(2,2); 446 447 // CamDraw(c4, 1, 3, disp23, 0); 448 // CamDraw(c4, 2, 3, disp24, 0); 449 // CamDraw(c4, 3, 3, disp25, 0); 445 450 446 disp24.CamDraw(c4, 1, 2, 0); 451 447 disp25.CamDraw(c4, 2, 2, 0); … … 1027 1023 filltme.SetNameTab("RelTimes"); 1028 1024 1025 if (fDataCheck) 1026 { 1027 fillcam.SetDrawOption("datacheck"); 1028 fillbnd.SetDrawOption("datacheck"); 1029 fillpin.SetDrawOption("datacheck"); 1030 filltme.SetDrawOption("datacheck"); 1031 } 1032 1029 1033 if (fDisplayType == kFullDisplay) 1030 1034 {
Note:
See TracChangeset
for help on using the changeset viewer.