Changeset 3566 for trunk/MagicSoft
- Timestamp:
- 03/20/04 00:30:10 (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/macros/calibration.C
r3551 r3566 27 27 { 28 28 29 //const TString inpath = "/mnt/Data/rootdata/CrabNebula/2004_02_10/";30 //const TString inpath = "/mnt/Data/rootdata/CrabNebula/2004_01_26/";31 29 const TString inpath = "/mnt/Data/rootdata/CrabNebula/2004_01_27/"; 32 //const TString inpath = "/mnt/Data/rootdata/Miscellaneous/2003_12_19/"; 33 // const TString inpath = "/mnt/Data/rootdata/Miscellaneous/2004_03_03/"; 34 // const TString inpath = "/home/rootdata/BlindPixel/"; 35 36 // const TString inpath = "."; 30 37 31 MRunIter pruns; 38 32 MRunIter cruns; 39 33 40 // pruns.AddRun(20491,inpath);41 // pruns.AddRun(20123,inpath);42 43 34 pruns.AddRun(12386,inpath); 44 // pruns.AddRun(14400,inpath);45 // cruns.AddRuns(14401,14409,inpath);46 // pruns.AddRuns(15487,15494,inpath);47 // cruns.AddRuns(12525,12529,inpath);48 35 cruns.AddRun(12525,inpath); 49 // cruns.AddRuns(15495,15508,inpath);50 // cruns.AddRun(20491,inpath);51 // cruns.AddRun(20129,inpath);52 36 53 37 gStyle->SetOptStat(1111); … … 77 61 // 78 62 /* 79 MJCalibration calloop; 80 calloop.SetInput(&cruns); 81 calloop.SetDisplay(display); 82 if (!calloop.Process(pedloop.GetPedestalCam())) 83 return; 84 // #if 0 63 MJCalibration calloop; 64 calloop.SetInput(&cruns); 65 calloop.SetDisplay(display); 66 calloop.SetBadPixels(badcam); 67 if (!calloop.Process(pedloop.GetPedestalCam())) 68 return; 69 #if 0 85 70 */ 86 71 // … … 206 191 // print the most important results of all pixels to a file 207 192 // 193 /* 208 194 MLog gauglog; 209 195 gauglog.SetOutputFile(Form("%s%s",calcam.GetName(),".txt"),1); 210 196 calcam.SetLogStream(&gauglog); 211 197 badcam.Print(); 212 // calcam.Print();213 198 calcam.SetLogStream(&gLog); 199 */ 214 200 // 215 201 // just one example how to get the plots of individual pixels 216 202 // 217 203 // histblind.DrawClone("all"); 218 // histcharge[5].DrawClone("all");204 // histcharge[5].DrawClone("all"); 219 205 // histcharge(5).DrawClone("all"); 220 206 // histtime[5].DrawClone("fourierevents"); … … 226 212 MHCamera disp4 (geomcam, "Cal;RSigma", "Reduced Sigmas"); 227 213 MHCamera disp5 (geomcam, "Cal;RSigma/Charge", "Reduced Sigma per Charge"); 228 MHCamera disp6 (geomcam, "Cal;FFactorPh ","Nr. of Photo-electrons (F-Factor Method)");214 MHCamera disp6 (geomcam, "Cal;FFactorPhe", "Nr. of Photo-electrons (F-Factor Method)"); 229 215 MHCamera disp7 (geomcam, "Cal;FFactorConv", "Conversion Factor to photons (F-Factor Method)"); 230 216 MHCamera disp8 (geomcam, "Cal;FFactorFFactor", "Total F-Factor (F-Factor Method)"); … … 254 240 MHCamera disp30 (geomcam, "time;Oscillating", "Oscillating Pixels"); 255 241 256 MHCamera disp31 (geomcam, "Cal;AbsTimeMean", "Abs. Arrival Times");257 MHCamera disp32 (geomcam, "Cal;AbsTimeRms", "RMS of Arrival Times");242 MHCamera disp31 (geomcam, "Cal;AbsTimeMean", "Abs. Arrival Times"); 243 MHCamera disp32 (geomcam, "Cal;AbsTimeRms", "RMS of Arrival Times"); 258 244 259 245 // Fitted charge means and sigmas … … 294 280 // Pixels with defects 295 281 disp13.SetCamContent(calcam,26); 296 disp14.SetCamContent( calcam,27);282 disp14.SetCamContent(badcam,7); 297 283 disp15.SetCamContent(badcam,9); 298 284 disp16.SetCamContent(badcam,16); 299 285 disp17.SetCamContent(badcam,15); 300 disp18.SetCamContent(calcam,2 8);301 disp19.SetCamContent(calcam,2 9);286 disp18.SetCamContent(calcam,27); 287 disp19.SetCamContent(calcam,28); 302 288 303 289 // Lo Gain calibration 304 disp20.SetCamContent(calcam, 30);290 disp20.SetCamContent(calcam,29); 305 291 306 292 // Valid flags … … 310 296 311 297 // Pedestals 312 disp24.SetCamContent(calcam,3 1);313 disp24.SetCamError( calcam,3 2);314 disp25.SetCamContent(calcam,3 3);315 disp25.SetCamError( calcam,3 4);298 disp24.SetCamContent(calcam,30); 299 disp24.SetCamError( calcam,31); 300 disp25.SetCamContent(calcam,32); 301 disp25.SetCamError( calcam,33); 316 302 317 303 // Relative Times … … 325 311 326 312 // Absolute Times 327 disp31.SetCamContent(calcam,3 5);313 disp31.SetCamContent(calcam,34); 328 314 disp31.SetCamError( calcam,35); 329 disp32.SetCamContent(calcam,3 6);315 disp32.SetCamContent(calcam,35); 330 316 331 317 disp1.SetYTitle("Charge [FADC units]"); … … 472 458 CamDraw(c13,disp31,calcam,1,2,2); 473 459 CamDraw(c13,disp32,calcam,2,2,2); 460 #endif 474 461 475 462 } … … 516 503 if (fit != 0) 517 504 { 518 519 505 c.cd(i+2*j); 520 506 gPad->SetBorderMode(0); … … 541 527 hprof[k]->Fit("pol1","Q","",min,max); 542 528 hprof[k]->GetFunction("pol1")->SetLineColor(kRed+k); 529 hprof[k]->GetFunction("pol1")->SetLineWidth(1); 543 530 } 544 531
Note:
See TracChangeset
for help on using the changeset viewer.