Changeset 2974 for trunk/MagicSoft/Mars/macros/calibration.C
- Timestamp:
- 01/30/04 10:24:49 (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/macros/calibration.C
r2952 r2974 23 23 \* ======================================================================== */ 24 24 25 const TString pedfile = "/mnt/Data/rootdata/ Mrk421/2004_01_26/20040125_12094_P_Mrk421_E.root";26 const TString calfile = "/mnt/Data/rootdata/ Mrk421/2004_01_26/20040125_1211*_C_Mrk421_E.root";25 const TString pedfile = "/mnt/Data/rootdata/CrabNebula/2004_01_27/20040126_12149_P_Cab-On_E.root"; 26 const TString calfile = "/mnt/Data/rootdata/CrabNebula/2004_01_27/20040126_1252*_C_Cab-On_E.root"; 27 27 28 28 //const TString pedfile = "/mnt/Data/rootdata/Miscellaneous/2003_12_19/20031218_03522_P_Park_E.root"; … … 52 52 MGeomApply geomapl; 53 53 MExtractSignal sigcalc; 54 sigcalc.SetRange(1,14,1,14); 54 55 MPedCalcPedRun pedcalc; 55 56 pedcalc.SetUseHists(); … … 79 80 tlist.PrintStatistics(); 80 81 81 pedcam[ 559].DrawClone();82 pedcam[17].DrawClone(); 82 83 83 84 MStatusDisplay *d1 = new MStatusDisplay; … … 85 86 d1->Resize(850,700); 86 87 87 MHCamera dispped0 (geomcam, "MPedestalPix;Pedestal", "Mean"); 88 MHCamera dispped1 (geomcam, "MPedestalPix;PedestalRms", "RMS"); 89 MHCamera dispped2 (geomcam, "MPedestalPix;Mean", "Fitted Mean"); 90 MHCamera dispped3 (geomcam, "MPedestalPix;MeanErr", "Fitted Error of Mean"); 91 MHCamera dispped4 (geomcam, "MPedestalPix;Sigma", "Fitted Sigma"); 92 MHCamera dispped5 (geomcam, "MPedestalPix;SigmaErr", "Fitted Error of Sigma"); 93 MHCamera dispped6 (geomcam, "MPedestalPix;Prob", "Probability of Fit"); 94 MHCamera dispped7 (geomcam, "MPedestalPix;DeltaPedestalMean", "Pedestal minus Fitted Mean"); 95 MHCamera dispped8 (geomcam, "MPedestalPix;DeltaRmsSigma", "Pedestal RMS minus Fitted Sigma"); 88 MHCamera dispped0 (geomcam, "MPedestalPix;Pedestal", "Mean per Slice"); 89 MHCamera dispped1 (geomcam, "MPedestalPix;PedestalErr", "Mean Error per Slice"); 90 MHCamera dispped2 (geomcam, "MPedestalPix;PedestalRms", "RMS per Slice"); 91 MHCamera dispped3 (geomcam, "MPedestalPix;PedestalRmsErr", "RMS Error per Slice"); 92 MHCamera dispped4 (geomcam, "MPedestalPix;Mean", "Fitted Mean per Slice"); 93 MHCamera dispped5 (geomcam, "MPedestalPix;MeanErr", "Fitted Error of Mean per Slice"); 94 MHCamera dispped6 (geomcam, "MPedestalPix;Sigma", "Fitted Sigma per Slice"); 95 MHCamera dispped7 (geomcam, "MPedestalPix;SigmaErr", "Fitted Error of Sigma per Slice"); 96 MHCamera dispped8 (geomcam, "MPedestalPix;Prob", "Probability of Fit"); 97 MHCamera dispped9 (geomcam, "MPedestalPix;DeltaPedestalMean", "Pedestal minus Fitted Mean per Slice"); 98 MHCamera dispped10 (geomcam, "MPedestalPix;DeltaPedestalMeanError", "Pedestal minus Fitted Mean (Error)"); 99 MHCamera dispped11 (geomcam, "MPedestalPix;DeltaRmsSigma", "Pedestal RMS minus Fitted Sigma per Slice"); 100 MHCamera dispped12 (geomcam, "MPedestalPix;DeltaRmsSigmaError", "Pedestal RMS minus Fitted Sigma (Error)"); 96 101 97 102 dispped0.SetCamContent(pedcam, 0); … … 101 106 dispped2.SetCamError(pedcam,3); 102 107 dispped3.SetCamContent(pedcam, 3); 103 dispped3.SetCamError(pedcam, 4);104 108 dispped4.SetCamContent(pedcam, 4); 109 dispped4.SetCamError(pedcam, 5); 105 110 dispped5.SetCamContent(pedcam, 5); 106 111 dispped6.SetCamContent(pedcam, 6); 112 dispped6.SetCamError(pedcam, 7); 107 113 dispped7.SetCamContent(pedcam, 7); 108 114 dispped8.SetCamContent(pedcam, 8); 109 110 dispped0.SetYTitle("Pedestal [FADC counts]"); 111 dispped1.SetYTitle("Pedestal RMS [FADC counts]"); 112 dispped2.SetYTitle("Mean Pedestal [FADC counts]"); 113 dispped3.SetYTitle("Error of Mean Pedestal [FADC counts]"); 114 dispped4.SetYTitle("Sigma Pedestal [FADC counts]"); 115 dispped5.SetYTitle("Error of Sigma Pedestal [FADC counts]"); 116 dispped6.SetYTitle("Fit Probability [1]"); 117 dispped7.SetYTitle("Pedestal - Mean [FADC counts]"); 118 dispped8.SetYTitle("RMS - Sigma [FADC counts]"); 115 dispped9.SetCamContent(pedcam, 9); 116 dispped9.SetCamError(pedcam, 10); 117 dispped10.SetCamContent(pedcam, 10); 118 dispped11.SetCamContent(pedcam, 11); 119 dispped11.SetCamError(pedcam, 12); 120 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]"); 130 dispped8.SetYTitle("Fit Probability [1]"); 131 dispped9.SetYTitle("Pedestal-Mean per slice [FADC counts]"); 132 dispped10.SetYTitle("Pedestal-Mean Error per slice [FADC counts]"); 133 dispped11.SetYTitle("RMS-Sigma per slice [FADC counts]"); 134 dispped12.SetYTitle("RMS-Sigma Error per slice [FADC counts]"); 119 135 120 136 gStyle->SetOptStat(1111); 121 137 gStyle->SetOptFit(); 122 138 123 // Charges139 // Histogram values 124 140 TCanvas &b1 = d1->AddTab("Pedestals"); 125 b1.Divide(2,3); 126 127 CamDraw(b1,dispped0,pedcam,1,2,1); 128 CamDraw(b1,dispped1,pedcam,2,2,1); 129 130 // Means 141 b1.Divide(4,3); 142 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); 147 148 // Fitted values 131 149 TCanvas &b2 = d1->AddTab("Means"); 132 b2.Divide(2,3); 133 134 CamDraw(b2,dispped2,pedcam,1,2,1); 135 CamDraw(b2,dispped3,pedcam,2,2,1); 136 137 // Sigmas 138 TCanvas &b12 = d1->AddTab("Sigmas"); 139 b12.Divide(2,3); 140 141 CamDraw(b12,dispped4,pedcam,1,2,1); 142 CamDraw(b12,dispped5,pedcam,2,2,1); 150 b2.Divide(4,3); 151 152 CamDraw(b2,dispped4,pedcam,1,4,0); 153 CamDraw(b2,dispped5,pedcam,2,4,1); 154 CamDraw(b2,dispped6,pedcam,3,4,0); 155 CamDraw(b2,dispped7,pedcam,4,4,1); 156 143 157 144 158 // Fits Probability … … 146 160 b3.Divide(1,3); 147 161 148 CamDraw(b3,dispped 6,pedcam,1,1,3);162 CamDraw(b3,dispped8,pedcam,1,1,3); 149 163 150 164 // Differences 151 165 TCanvas &c4 = d1->AddTab("Differences"); 152 c4.Divide(2,3); 153 154 CamDraw(c4,dispped7,pedcam,1,2,1); 155 CamDraw(c4,dispped8,pedcam,2,2,1); 166 c4.Divide(4,3); 167 168 CamDraw(c4,dispped9,pedcam,1,4,1); 169 CamDraw(c4,dispped10,pedcam,2,4,1); 170 CamDraw(c4,dispped11,pedcam,3,4,1); 171 CamDraw(c4,dispped12,pedcam,4,4,1); 156 172 157 173 // … … 205 221 // (This is a preliminary feature) 206 222 // 207 // 223 //calcalc.ExcludePixelsFromAsciiFile("badpixels_all.dat"); 208 224 209 225 //
Note:
See TracChangeset
for help on using the changeset viewer.