Changeset 3255 for trunk/MagicSoft/Mars/macros/calibration.C
- Timestamp:
- 02/21/04 02:09:39 (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/macros/calibration.C
r3234 r3255 23 23 \* ======================================================================== */ 24 24 25 const TString pedfile = "../20040215_16770_P_OffCrab4_E.root"; 26 const TString calfile = "../20040215_16771_C_OffCrab4_E.root"; 27 25 28 //const TString pedfile = "/mnt/users/mdoro/Mars/Data/20040201_14418_P_OffMrk421-1_E.root"; 26 29 //const TString calfile = "/mnt/users/mdoro/Mars/Data/20040201_1441*_C_OffMrk421-1_E.root"; 27 30 28 const TString pedfile = "/mnt/Data/rootdata/CrabNebula/2004_02_10/20040210_14607_P_CrabNebula_E.root";29 const TString calfile = "/mnt/Data/rootdata/CrabNebula/2004_02_10/20040210_14608_C_CrabNebula_E.root";31 //const TString pedfile = "/mnt/Data/rootdata/CrabNebula/2004_02_10/20040210_14607_P_CrabNebula_E.root"; 32 //const TString calfile = "/mnt/Data/rootdata/CrabNebula/2004_02_10/20040210_14608_C_CrabNebula_E.root"; 30 33 31 34 //const TString pedfile = "/mnt/Data/rootdata/CrabNebula/2004_01_26/20040125_10412_P_Crab-On_E.root"; … … 43 46 44 47 MStatusDisplay *display = new MStatusDisplay; 45 display->SetUpdateTime( 3000);48 display->SetUpdateTime(500); 46 49 display->Resize(850,700); 47 50 … … 110 113 // Look at one specific pixel, after all the histogram manipulations: 111 114 // 112 hpedcam[9].DrawClone("fourier ");115 hpedcam[9].DrawClone("fourierevents"); 113 116 114 117 … … 218 221 219 222 MExtractedSignalCam sigcam; 220 MCalibrationC amcalcam;223 MCalibrationChargeCam calcam; 221 224 MHCalibrationRelTimeCam timecam; 222 225 // … … 244 247 // thus take the sliding window 245 248 // 246 MExtractPINDiode pincalc;247 MExtractBlindPixel blindcalc;248 MExtractSignal2 sigcalc2;249 MArrivalTimeCalc2 timecalc;250 MCalibrationC alccalcalc;249 MExtractPINDiode pincalc; 250 MExtractBlindPixel blindcalc; 251 MExtractSignal2 sigcalc2; 252 MArrivalTimeCalc2 timecalc; 253 MCalibrationChargeCalc calcalc; 251 254 252 255 MFillH filltime("MHCalibrationRelTimeCam", "MArrivalTime"); … … 274 277 // we have to set the color of the pulser LED by hand 275 278 // 276 calcalc.SetPulserColor(MCalibrationCalc::kECT1);279 // calcalc.SetPulserColor(MCalibrationCalc::kECT1); 277 280 278 281 // … … 338 341 // print the most important results of all pixels 339 342 // 340 //calcam.Print();343 calcam.Print(); 341 344 342 345 // 343 346 // just one example how to get the plots of individual pixels 344 347 // 345 // calcam[563].DrawClone(); 346 // calcam[564].DrawClone(); 348 calcam[564].DrawClone(); 347 349 348 350 // Create histograms to display … … 559 561 CamDraw(c9,disp21,calcam,2,2,2); 560 562 561 562 563 // Rel. Times 563 564 TCanvas &c10 = display->AddTab("Fitted Rel. Times"); … … 581 582 CamDraw(c12,disp27,calcam,1,2,2); 582 583 CamDraw(c12,disp28,calcam,2,2,2); 583 584 584 } 585 585 … … 603 603 TH1D *obj2 = (TH1D*)obj1->Projection(); 604 604 605 obj2->Sumw2(); 605 606 obj2->Draw(); 606 607 obj2->SetBit(kCanDelete); 607 608 608 609 609 const Double_t min = obj2->GetBinCenter(obj2->GetXaxis()->GetFirst());
Note:
See TracChangeset
for help on using the changeset viewer.