// Uncomment below to do classical analysis withour RTS
// compareHistogramClassVector2.push_back(runs[runi]->histogramwoRTS->normalized->calibrated);
-// compareHistogramClassVector.push_back(runs[runi]->histogram);
+
+ runs[runi]->plotAllHistograms(runs[runi]->histogram);
+ //compareHistogramClassVector.push_back(runs[runi]->histogram->normalized->calibrated);
+ //compareHistogramClassVector2.push_back(runs[runi]->histogram->normalized);
// compareHistogramClassVector2.push_back(runs[runi]->histogramthreshold);
-// compareHistogramVector2.push_back(runs[runi]->histogramwoRTS->normalized->calibrated->Seed);
+ compareHistogramVector.push_back(runs[runi]->histogram->normalized->calibrated->Seed);
+ compareHistogramVector2.push_back(runs[runi]->histogram->normalized->Seed);
+ //runs[runi]->plot1DHistogram(runs[runi]->histogram->normalized->calibrated, runs[runi]->histogram->normalized->calibrated->Seed, "landau", 1);
// runs[runi]->plot1DHistogram(runs[runi]->histogramwoRTS->normalized->calibrated, runs[runi]->histogramwoRTS->normalized->calibrated->Seed, "landau", true);
// runs[runi]->plot1DHistogram(runs[runi]->histogramwoRTS->normalized->calibrated, runs[runi]->histogramwoRTS->normalized->calibrated->Sum, "gaus", true);
curhistogramclone->GetXaxis()->UnZoom();
heighestval1 = (curhistogramclone->GetMaximum()>heighestval1?curhistogramclone->GetMaximum():heighestval1);
lastbin1 = (curhistogramclone->GetBinCenter(curhistogramclone->FindLastBinAbove(2,1))>lastbin1)?curhistogramclone->GetBinCenter(curhistogramclone->FindLastBinAbove(2,1)):lastbin1;
-// cout << "Last bin: " << colorcyan << lastbin1 << endlr;
+// cout << "Last bin: " << colorcyan << lastbin1 << endlr;
+// cout << "curhistogramclone->GetMaximum(): " << colorcyan << curhistogramclone->GetMaximum() << endlr;
curhistogramclone = (TH1F*) curhistogramclassp->Sum->Clone();
curhistogramclone->GetXaxis()->UnZoom();
leg1->AddEntry(curhistogramclone, legendEntry, "l");
leg1->Draw("SAME");
curhistogramclone->SetAxisRange(0,lastbin1*1.1,"X");
- curhistogramclone->GetYaxis()->SetRangeUser(1,heighestval1*4);
- gPad->SetLogy(1);
+ curhistogramclone->SetAxisRange(0,heighestval1*1.1,"Y");
+ curhistogramclone->GetYaxis()->SetRangeUser(1,heighestval1*1.0);
+ //gPad->SetLogy(1);
+ gPad->SetGrid(1);
+ gPad->SetGridy(1);
owntitle->Clear();
owntitle->AddText(trimRunnumberAtBegin(curhistogramclone->GetName()));
owntitle->Draw("SAME");
curhistogramclone->SetLineColor(rootcolors[histogrami%13]);
curhistogramclone->Draw("SAME");
hs->Add(curhistogramclone);
+ legendEntry = Form("%s", curhistogramclone->GetTitle());
leg2->AddEntry(curhistogramclone, legendEntry, "l");
leg2->Draw("SAME");
// hs->Add(leg1);
curhistogramclone->SetAxisRange(0,lastbin2*1.1,"X");
+ curhistogramclone->SetAxisRange(0,heighestval2*1.1,"Y");
// heighestval2 = (curhistogramclone->GetMaximum()>heighestval2?curhistogramclone->GetMaximum():heighestval2);
- curhistogramclone->GetYaxis()->SetRangeUser(1,heighestval2*4);
+ curhistogramclone->GetYaxis()->SetRangeUser(1,heighestval2*1.2);
curhistogramclone->Draw("SAME");
- gPad->SetLogy(1);
+// gPad->SetLogy(1);
+ gPad->SetGrid(1);
+ gPad->SetGridy(1);
owntitle2->Clear();
owntitle2->AddText(trimRunnumberAtBegin(curhistogramclone->GetName()));
// hs->Add(owntitle2);
curhistogramclone = (TH1F*) curhistogramclassp->Veto->Clone();
curhistogramclone->SetLineColor(rootcolors[histogrami%13]);
curhistogramclone->Draw("SAME");
+ legendEntry = Form("%s", curhistogramclone->GetTitle());
leg3->AddEntry(curhistogramclone, legendEntry, "l");
leg3->Draw("SAME");
- curhistogramclone->SetAxisRange(1,lastbin3*1.1,"X");
+ curhistogramclone->SetAxisRange(1,lastbin3*1.1,"X");
+ curhistogramclone->SetAxisRange(1,heighestval3*1.1,"Y");
// heighestval3 = (curhistogramclone->GetMaximum()>heighestval3?curhistogramclone->GetMaximum():heighestval3);
curhistogramclone->GetYaxis()->SetRangeUser(0,heighestval3*1.2);
+ curhistogramclone->Draw("SAME");
+ gPad->SetGrid(1);
+ gPad->SetGridy(1);
owntitle3->Clear();
owntitle3->AddText(trimRunnumberAtBegin(curhistogramclone->GetName()));
owntitle3->Draw("SAME");
legendEntry = Form("%d Noise: %.2f + %.2f - %.2f",curhistogramclassp->labbook->runnumber, curhistogramclassp->avgNoise, curhistogramclassp->avgNoisePlus, curhistogramclassp->avgNoiseMinus);
leg4->AddEntry(curhistogramclone, legendEntry, "l");
leg4->Draw();
- curhistogramclone->GetYaxis()->SetRangeUser(0,heighestval4*1.4);
+ curhistogramclone->GetYaxis()->SetRangeUser(0,heighestval4*1.2);
owntitle4->Clear();
owntitle4->AddText(trimRunnumberAtBegin(curhistogramclone->GetName()));
owntitle4->Draw("SAME");
systemparam systemparamPXI (800*16,800,75,150,150);
systemparam systemparamFSBB (2800,2800/4,25,10,100);
systemparam systemparamUSBMi19 (400/*maxbin*/,400/1/*nbins*/, 25/*vetothreshold*/, 10/*maxbinnoise*/, 100/*nbinsnoise*/);
- systemparam systemparamPipper2 (2800,2800/4,15,10,100);
+ systemparam systemparamPipper2 (1000,1000,15,10,100);
if (labbook.system.EqualTo("USB") && labbook.chipGen.EqualTo("Mi34") )
cursystemparam = systemparamUSB;
else if (labbook.system.EqualTo("USB") && labbook.chipGen.EqualTo("FSBB") )
// cout << (*curHistogramClass)->histogramdescription << ": " << colorcyan << parameters[1] << endlr;
(*curHistogramClass)->integralVeto = parameters[6];
}
- parameters = (*curHistogramClass)->FitPerform((*curHistogramClass)->Seed, "landau");
+ if (labbook.chipGen.EqualTo("Pipper2"))
+ parameters = (*curHistogramClass)->FitPerform((*curHistogramClass)->Seed, "gaus");
+ else
+ parameters = (*curHistogramClass)->FitPerform((*curHistogramClass)->Seed, "landau");
(*curHistogramClass)->posSeed = parameters[1];
parameters = (*curHistogramClass)->FitPerform((*curHistogramClass)->Sum, "gaus");
(*curHistogramClass)->posSum = parameters[1];