Changeset 2983 for trunk/MagicSoft/Mars/macros/calibration.C
- Timestamp:
- 01/30/04 14:27:46 (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/macros/calibration.C
r2974 r2983 95 95 MHCamera dispped7 (geomcam, "MPedestalPix;SigmaErr", "Fitted Error of Sigma per Slice"); 96 96 MHCamera dispped8 (geomcam, "MPedestalPix;Prob", "Probability of Fit"); 97 MHCamera dispped9 (geomcam, "MPedestalPix;DeltaPedestalMean", " Pedestal minus Fitted Mean per Slice");98 MHCamera dispped1 0 (geomcam, "MPedestalPix;DeltaPedestalMeanError", "Pedestal minus Fitted Mean (Error)");99 MHCamera dispped1 1 (geomcam, "MPedestalPix;DeltaRmsSigma", "Pedestal RMS minus Fitted Sigma per Slice");100 MHCamera dispped1 2 (geomcam, "MPedestalPix;DeltaRmsSigmaError", "Pedestal RMS minus Fitted Sigma (Error)");97 MHCamera dispped9 (geomcam, "MPedestalPix;DeltaPedestalMean", "Rel. Diff. Mean per Slice (Calc.-Fitte)"); 98 MHCamera dispped11 (geomcam, "MPedestalPix;DeltaPedestalMeanError", "Rel. Diff. Mean Error per Slice (Calc.-Fitted)"); 99 MHCamera dispped12 (geomcam, "MPedestalPix;DeltaRmsSigma", "Rel. Diff. RMS per Slice (Calc.-Fitted)"); 100 MHCamera dispped14 (geomcam, "MPedestalPix;DeltaRmsSigmaError", "Rel. Diff. RMS Error per Slice (Calc.-Fitted)"); 101 101 102 102 dispped0.SetCamContent(pedcam, 0); … … 115 115 dispped9.SetCamContent(pedcam, 9); 116 116 dispped9.SetCamError(pedcam, 10); 117 dispped10.SetCamContent(pedcam, 10);118 117 dispped11.SetCamContent(pedcam, 11); 119 dispped11.SetCamError(pedcam, 12);120 118 dispped12.SetCamContent(pedcam, 12); 121 122 dispped0.SetYTitle("Pedestal per slice [FADC counts]"); 123 dispped1.SetYTitle("Pedestal Error per slice [FADC counts]"); 124 dispped2.SetYTitle("Pedestal RMS per slice [FADC counts]"); 125 dispped3.SetYTitle("Pedestal RMS Error per slice [FADC counts]"); 126 dispped4.SetYTitle("Mean Pedestal per slice [FADC counts]"); 127 dispped5.SetYTitle("Error of Mean Pedestal per slice [FADC counts]"); 128 dispped6.SetYTitle("Sigma Pedestal per slice [FADC counts]"); 129 dispped7.SetYTitle("Error of Sigma Pedestal per slice [FADC counts]"); 119 dispped12.SetCamError(pedcam, 13); 120 dispped14.SetCamContent(pedcam, 14); 121 122 dispped0.SetYTitle("Calc. Pedestal per slice [FADC counts]"); 123 dispped1.SetYTitle("Calc. Pedestal Error per slice [FADC counts]"); 124 dispped2.SetYTitle("Calc. Pedestal RMS per slice [FADC counts]"); 125 dispped3.SetYTitle("Calc. Pedestal RMS Error per slice [FADC counts]"); 126 dispped4.SetYTitle("Fitted Mean per slice [FADC counts]"); 127 dispped5.SetYTitle("Error of Fitted Mean per slice [FADC counts]"); 128 dispped6.SetYTitle("Fitted Sigma per slice [FADC counts]"); 129 dispped7.SetYTitle("Error of Fitted Sigma per slice [FADC counts]"); 130 130 dispped8.SetYTitle("Fit Probability [1]"); 131 dispped9.SetYTitle(" Pedestal-Mean per slice [FADC counts]");132 dispped1 0.SetYTitle("Pedestal-Mean Error per slice [FADC counts]");133 dispped1 1.SetYTitle("RMS-Sigma per slice [FADC counts]");134 dispped1 2.SetYTitle("RMS-Sigma Error per slice [FADC counts]");131 dispped9.SetYTitle("Rel. Diff. Pedestal Calc.-Fitted per slice [1]"); 132 dispped11.SetYTitle("Rel. Diff. Pedestal Error Calc.-Fitted per slice [1]"); 133 dispped12.SetYTitle("Rel. Diff. Pedestal RMS Calc.-Fitted per slice [1]"); 134 dispped14.SetYTitle("Rel. Diff. Pedestal RMS Error Calc.-Fitted per slice [1]"); 135 135 136 136 gStyle->SetOptStat(1111); … … 138 138 139 139 // Histogram values 140 TCanvas &b1 = d1->AddTab(" Pedestals");140 TCanvas &b1 = d1->AddTab("Direct Calculation"); 141 141 b1.Divide(4,3); 142 142 143 143 CamDraw(b1,dispped0,pedcam,1,4,0); 144 CamDraw(b1,dispped1,pedcam,2,4, 1);145 CamDraw(b1,dispped2,pedcam,3,4, 1);146 CamDraw(b1,dispped3,pedcam,4,4, 1);144 CamDraw(b1,dispped1,pedcam,2,4,2); 145 CamDraw(b1,dispped2,pedcam,3,4,2); 146 CamDraw(b1,dispped3,pedcam,4,4,2); 147 147 148 148 // Fitted values 149 TCanvas &b2 = d1->AddTab(" Means");149 TCanvas &b2 = d1->AddTab("Fits"); 150 150 b2.Divide(4,3); 151 151 … … 163 163 164 164 // Differences 165 TCanvas &c4 = d1->AddTab(" Differences");165 TCanvas &c4 = d1->AddTab("Relative Difference Calculation-Fits"); 166 166 c4.Divide(4,3); 167 167 168 168 CamDraw(c4,dispped9,pedcam,1,4,1); 169 CamDraw(c4,dispped1 0,pedcam,2,4,1);170 CamDraw(c4,dispped1 1,pedcam,3,4,1);171 CamDraw(c4,dispped1 2,pedcam,4,4,1);169 CamDraw(c4,dispped11,pedcam,2,4,1); 170 CamDraw(c4,dispped12,pedcam,3,4,1); 171 CamDraw(c4,dispped14,pedcam,4,4,1); 172 172 173 173 // … … 247 247 MCalibrationBlindPix *bp = calcam.GetBlindPixel(); 248 248 // bp->ChangeFitFunc(MHCalibrationBlindPixel::kEPolya); 249 bp->ChangeFitFunc(MHCalibrationBlindPixel::kEPoisson5);249 // bp->ChangeFitFunc(MHCalibrationBlindPixel::kEPoisson4); 250 250 251 251 tlist2.AddToList(&read2);
Note:
See TracChangeset
for help on using the changeset viewer.