Changeset 6200 for trunk/MagicSoft
- Timestamp:
- 02/02/05 15:02:35 (20 years ago)
- Location:
- trunk/MagicSoft/Mars/mjobs
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mjobs/MJCalibTest.cc
r6199 r6200 129 129 MHCamera disp3 (geomcam, "Test;PhotonsPerArea", "Equiv. Cherenkov Photons per Area"); 130 130 MHCamera disp4 (geomcam, "Test;SigmaPhotPerArea", "Sigma equiv. Cher. Photons per Area"); 131 MHCamera disp5 (geomcam, "Test;Phot", "Calibrated Photons ");132 MHCamera disp6 (geomcam, "Test;PhotPerArea", "Calibrated Photons per Area ");131 MHCamera disp5 (geomcam, "Test;Phot", "Calibrated Photons from Fit"); 132 MHCamera disp6 (geomcam, "Test;PhotPerArea", "Calibrated Photons per Area from Fit"); 133 133 MHCamera disp7 (geomcam, "Test;NotInterpolate", "Not interpolated pixels"); 134 134 MHCamera disp8 (geomcam, "Test;DeviatingPhots", "Deviating Number Photons"); 135 MHCamera disp9 (geomcam, "Test;Arr.Times", "Mean of calibrated Arr.Times"); 136 MHCamera disp10(geomcam, "Test;SigmaArr.Times", "Sigma of calibrated Arr.Times"); 137 135 138 136 139 // Fitted charge means and sigmas … … 152 155 disp8.SetCamError( fBadPixels, 22); 153 156 157 disp9.SetCamContent(fTestTimeCam, 0); 158 disp9.SetCamError( fTestTimeCam, 1); 159 disp10.SetCamContent(fTestTimeCam, 2); 160 disp10.SetCamError( fTestTimeCam, 3); 161 154 162 155 163 disp1.SetYTitle("Photons"); … … 163 171 disp8.SetYTitle("[1]"); 164 172 165 gStyle->SetOptStat(1111); 166 gStyle->SetOptFit(); 167 168 if (fDisplayType == kNormalDisplay) 169 { 170 171 TCanvas &c = fDisplay->AddTab("TestCharges"); 172 c.Divide(4,4); 173 174 disp1.CamDraw(c, 1, 4, 2, 1); 175 disp2.CamDraw(c, 2, 4, 2, 1); 176 disp3.CamDraw(c, 3, 4, 1, 1); 177 disp4.CamDraw(c, 4, 4, 2, 1); 178 } 173 disp9.SetYTitle("Mean Arr.Times [FADC units]"); 174 disp10.SetYTitle("\\sigma_{t} [FADC units]"); 175 176 TCanvas &c = fDisplay->AddTab("TestCharges"); 177 c.Divide(4,4); 178 179 disp1.CamDraw(c, 1, 4, 2, 1); 180 disp2.CamDraw(c, 2, 4, 2, 1); 181 disp3.CamDraw(c, 3, 4, 1, 1); 182 disp4.CamDraw(c, 4, 4, 2, 1); 179 183 180 184 TCanvas &c2 = fDisplay->AddTab("TestResult"); … … 190 194 disp8.CamDraw(c3, 2, 2, 0); 191 195 192 return;193 194 }195 196 197 void MJCalibTest::DisplayResultT(MParList &plist)198 {199 if (!fDisplay)200 return;201 202 196 // 203 // Update display 204 // 205 TString title = fDisplay->GetTitle(); 206 title += "-- Extraction-Calibration-Test-Time"; 207 title += fRuns->GetRunsAsString(); 208 title += " --"; 209 fDisplay->SetTitle(title); 210 211 // 212 // Get container from list 213 // 214 MGeomCam &geomcam = *(MGeomCam*)plist.FindObject("MGeomCam"); 215 216 // Create histograms to display 217 MHCamera disp1 (geomcam, "Test;Arr.Times", "Mean of calibrated Arr.Times"); 218 MHCamera disp2 (geomcam, "Test;SigmaArr.Times", "Sigma of calibrated Arr.Times"); 219 220 // Fitted charge means and sigmas 221 disp1.SetCamContent(fTestTimeCam, 0); 222 disp1.SetCamError( fTestTimeCam, 1); 223 disp2.SetCamContent(fTestTimeCam, 2); 224 disp2.SetCamError( fTestTimeCam, 3); 225 226 disp1.SetYTitle("Mean Arr.Times [FADC units]"); 227 disp2.SetYTitle("\\sigma_{t} [FADC units]"); 228 229 gStyle->SetOptStat(1111); 230 gStyle->SetOptFit(); 231 232 TCanvas &c = fDisplay->AddTab("TestTimes"); 233 c.Divide(2,4); 234 235 disp1.CamDraw(c, 1, 2, 5, 1); 236 disp2.CamDraw(c, 2, 2, 5, 1); 197 // Display times 198 // 199 TCanvas &c4 = fDisplay->AddTab("TestTimes"); 200 c4.Divide(2,4); 201 202 disp9.CamDraw(c4, 1, 2, 5, 1); 203 disp10.CamDraw(c4, 2, 2, 5, 1); 237 204 238 205 return; … … 556 523 MFillH fill2(&evt2, "MArrivalTime","FillTimes"); 557 524 558 MFillH fillcam("MHCalibrationTestCam", "MCerPhotEvt");559 fillcam.SetNameTab("Test");560 MFillH filltme("MHCalibrationTestTimeCam", "MArrivalTime");561 filltme.Set NameTab("TestTime");525 MFillH fillcam("MHCalibrationTestCam", "MCerPhotEvt" ,"FillTest"); 526 MFillH filltme("MHCalibrationTestTimeCam", "MArrivalTime","FillTestTime"); 527 fillcam.SetBit(MFillH::kDoNotDisplay); 528 filltme.SetBit(MFillH::kDoNotDisplay); 562 529 563 530 MFCosmics cosmics; -
trunk/MagicSoft/Mars/mjobs/MJCalibTest.h
r6198 r6200 55 55 56 56 void DisplayResult(MParList &plist); 57 void DisplayResultT(MParList &plist);58 57 59 58 Bool_t WriteResult();
Note:
See TracChangeset
for help on using the changeset viewer.