Changeset 2599 for trunk/MagicSoft/Mars/macros
- Timestamp:
- 12/04/03 12:17:22 (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/macros/calibration.C
r2581 r2599 62 62 tlist.AddToList(&fill); 63 63 64 MStatusDisplay *d1 = new MStatusDisplay;64 // MStatusDisplay *d1 = new MStatusDisplay; 65 65 66 66 // Set update time to 3s 67 d1->SetUpdateTime(3000);67 // d1->SetUpdateTime(3000); 68 68 69 69 // … … 72 72 MEvtLoop evtloop; 73 73 evtloop.SetParList(&plist); 74 evtloop.SetDisplay(d1);74 // evtloop.SetDisplay(d1); 75 75 76 76 // … … 82 82 tlist.PrintStatistics(); 83 83 84 MPedestalCam *ped = plist.FindObject("MPedestalCam");85 ped.Print();86 84 87 85 // … … 122 120 123 121 MHCamEvent hist2; 124 hist2.SetType( 0);122 hist2.SetType(8); 125 123 plist2.AddToList(&hist2); 126 124 MFillH fill2("MHCamEvent", "MCalibrationCam"); … … 145 143 // 146 144 MCalibrationCam *cam = plist2.FindObject("MCalibrationCam"); 147 MCalibrationPix *pix = cam->GetCalibrationPix(523); 148 pix->Draw(); 149 145 cam.Print(); 146 147 Int_t pixnr; 148 149 while (1) 150 { 151 152 cout << "Which pixel number do you want to display? (Press 0 to exit)" << endl; 153 cin >> pixnr; 154 if (pixnr == 0) 155 break; 156 157 if (pixnr >= 577) 158 break; 159 160 MCalibrationPix *pix = cam->GetCalibrationPix(pixnr); 161 pix->Draw(); 162 163 } 164 150 165 // 151 166 // Here we are confronted to a serious bug in ROOT: … … 170 185 MHCamera disp11 (geomcam, "MCalibrationCam;rq", "Reduced Charges"); 171 186 MHCamera disp12 (geomcam, "MCalibrationCam;errrq", "Error of Reduced Charges"); 187 MHCamera disp13 (geomcam, "MCalibrationCam;phe", "Nr. of Phe's (F-Factor Method)"); 188 MHCamera disp14 (geomcam, "MCalibrationCam;convphe", "Conversion Factor (F-Factor Method)"); 172 189 173 190 disp1.SetCamContent(*cam, 0); … … 183 200 disp11.SetCamContent(*cam, 10); 184 201 disp12.SetCamContent(*cam, 11); 202 disp12.SetCamContent(*cam, 12); 203 disp13.SetCamContent(*cam, 13); 185 204 186 205 disp1.SetYTitle("Q [FADC counts]"); … … 196 215 disp11.SetYTitle("Q [FADC counts]"); 197 216 disp12.SetYTitle("\\Delta_{Q} [FADC counts]"); 217 disp13.SetYTitle("Nr Phe's"); 218 disp14.SetYTitle("Conversion Factor [Phe/FADC count]"); 198 219 199 220 MStatusDisplay *d2 = new MStatusDisplay; … … 202 223 d2->SetUpdateTime(1000); 203 224 204 TCanvas *c1 = &d2->AddTab(" Fitted Charges");205 c1->Divide( 5, 2);225 TCanvas *c1 = &d2->AddTab("Charges Mean"); 226 c1->Divide(2, 2); 206 227 207 228 TObject *obj; … … 211 232 obj=disp1.DrawCopy("hist"); 212 233 213 c1->cd( 6);234 c1->cd(3); 214 235 gPad->SetBorderMode(0); 215 236 obj->Draw(); … … 219 240 obj=disp2.DrawCopy("hist"); 220 241 221 c1->cd(7); 222 gPad->SetBorderMode(0); 223 obj->Draw(); 224 225 c1->cd(3); 242 c1->cd(4); 243 gPad->SetBorderMode(0); 244 obj->Draw(); 245 246 TCanvas *c11 = &d2->AddTab("Charges Sigma"); 247 c11->Divide(2, 2); 248 249 c11->cd(1); 226 250 gStyle->SetOptStat(1101); 227 251 obj=disp3.DrawCopy("hist"); 228 252 229 c1 ->cd(8);230 gPad->SetBorderMode(0); 231 obj->Draw(); 232 233 c1 ->cd(4);253 c11->cd(3); 254 gPad->SetBorderMode(0); 255 obj->Draw(); 256 257 c11->cd(2); 234 258 gStyle->SetOptStat(1101); 235 259 obj=disp4.DrawCopy("hist"); 236 260 237 c1->cd(9); 238 gPad->SetBorderMode(0); 239 obj->Draw(); 240 241 c1->cd(5); 261 c11->cd(4); 262 gPad->SetBorderMode(0); 263 obj->Draw(); 264 265 266 TCanvas *c12 = &d2->AddTab("Fit Prob."); 267 c12->Divide(1, 2); 268 269 c12->cd(1); 242 270 gStyle->SetOptStat(1101); 243 271 obj=disp5.DrawCopy("hist"); 244 272 245 c1 ->cd(10);273 c12->cd(2); 246 274 gPad->SetBorderMode(0); 247 275 obj->Draw(); … … 282 310 283 311 c3->cd(2); 284 gStyle->SetOptStat(11 01);312 gStyle->SetOptStat(1111); 285 313 obj=disp10.DrawCopy("hist"); 286 314 … … 305 333 obj->Draw(); 306 334 335 TCanvas *c5 = &d2->AddTab("F-Factor Method"); 336 c5->Divide(2, 2); 337 338 c5->cd(1); 339 gStyle->SetOptStat(1111); 340 obj=disp13.DrawCopy("hist"); 341 342 c5->cd(3); 343 obj->Draw(); 344 345 c5->cd(2); 346 gStyle->SetOptStat(1101); 347 obj=disp14.DrawCopy("hist"); 348 349 c5->cd(4); 350 obj->Draw(); 351 352 307 353 #endif 308 354
Note:
See TracChangeset
for help on using the changeset viewer.