- Timestamp:
- 02/27/13 12:25:30 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
fact/tools/rootmacros/PulseTemplates/FCalcPulseTemplate.C
r14943 r14962 102 102 // TString InRootFileName = "20120802_200mV_Stacking_G13B-2AWW8.root", 103 103 TString InputPath = "analysis/PulsTemplateAnalysis/20120802/", 104 TString OutputRootFileName = "20120802_0mV_Extraction_G11B-2AWW8_model 2.root",104 TString OutputRootFileName = "20120802_0mV_Extraction_G11B-2AWW8_model1.root", 105 105 // TString OutputRootFileName = "20120802_200mV_Extraction_G13B-2AWW8_model0.root", 106 106 TString OutPutPath = "analysis/PulsTemplateAnalysis/20120802/", … … 113 113 int npixel = 1, 114 114 int pixelSetSize = 200, 115 int maxPulseOrder = 6,115 int maxPulseOrder = 1, 116 116 // ------------{ analysis parameters }------------ 117 117 float meanGain = 11., 118 118 float meanBsl = -2.5, 119 119 int bootstrapIt = 10, 120 int pulseModell = 0,120 int pulseModell = 1, 121 121 float pixelOverlayXaxisLeft = 0, 122 122 float pixelOverlayXaxisRight = 400, … … 381 381 title += i; 382 382 hMedianErrors[i].SetNameTitle(title, title); 383 hMedianErrors[i].SetBins(roi, -0.5, roi +0.5);383 hMedianErrors[i].SetBins(roi, -0.5, roi - 0.5); 384 384 385 385 //hMeanErrors … … 388 388 title += i; 389 389 hMeanErrors[i].SetNameTitle(title, title); 390 hMeanErrors[i].SetBins(roi, -0.5, roi +0.5);390 hMeanErrors[i].SetBins(roi, -0.5, roi - 0.5); 391 391 392 392 //hMaxErrors … … 395 395 title += i; 396 396 hMaxErrors[i].SetNameTitle(title, title); 397 hMaxErrors[i].SetBins(roi, -0.5, roi +0.5);397 hMaxErrors[i].SetBins(roi, -0.5, roi - 0.5); 398 398 } 399 399 … … 547 547 } 548 548 549 // shifting stacking in y TEST 550 //------------------------------------- 551 552 TH2* temporary = pixel[pixelID]->hEdgeOverlay[pulse_order]; 553 temporary->GetYaxis()->UnZoom(); 554 temporary->GetYaxis()->SetLimits( 555 temporary->GetYaxis()->GetBinLowEdge( temporary->GetYaxis()->GetFirst() ) - 0.25, 556 temporary->GetYaxis()->GetBinUpEdge( temporary->GetYaxis()->GetLast() ) - 0.25 557 ); 558 559 549 560 // Calculate Max Prop. Value of each slice 550 561 //-------------------------------------
Note:
See TracChangeset
for help on using the changeset viewer.