From cbd62c509baceac9dc7cbb559dff2018987b1424 Mon Sep 17 00:00:00 2001 From: Benjamin Linnik Date: Wed, 6 May 2015 12:32:08 +0200 Subject: [PATCH] Analyzer: Show more along the x-axis in ShowAllHistograms Plots --- MABS_run_analyzer/ChargeSpektrum.c | 8 ++++---- MABS_run_analyzer/Run.c | 4 ++-- MABS_run_analyzer/Run.h | 4 ++-- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/MABS_run_analyzer/ChargeSpektrum.c b/MABS_run_analyzer/ChargeSpektrum.c index f8a50a8..f397d89 100644 --- a/MABS_run_analyzer/ChargeSpektrum.c +++ b/MABS_run_analyzer/ChargeSpektrum.c @@ -82,18 +82,18 @@ void ChargeSpektrum(Int_t runnumber = -1) runs[runi]->upperpart = 0; } } - runs[runi]->setResultsPath("/home/blinnik/Dropbox/Promotion/MABS_Analyse/NoiseUntersuchung1014neq/"); + runs[runi]->setResultsPath("./results/"); runs[runi]->setPlotStyle(runi); runs[runi]->useDynamicalNoise(true); runs[runi]->analyzeRun(false); // creates or opens .root file, can analyze the RAW data // gROOT->SetBatch(kTRUE); -// runs[runi]->plotSeed(); +// runs[runi]->plotSeed(); // runs[runi]->plotSum(); - runs[runi]->plotVeto(); +// runs[runi]->plotVeto(); // runs[runi]->plotNoise(); if (!isBatch) gROOT->SetBatch(kFALSE); -// runs[runi]->plotAllHistograms(); + runs[runi]->plotAllHistograms(); // runs[runi]->plotAllHistogramsCalibrated(); // runs[runi]->writeAllHistogramsToFile(); } diff --git a/MABS_run_analyzer/Run.c b/MABS_run_analyzer/Run.c index 77de290..737fe95 100644 --- a/MABS_run_analyzer/Run.c +++ b/MABS_run_analyzer/Run.c @@ -701,13 +701,13 @@ Bool_t Run::plotAllHistograms(histogramstruct* histogramstructpointer) canvas->cd(1); histogramstructpointer->Seed->Draw(""); plotVerticalLine(histogramstructpointer->Seed, histogramstructpointer->posSeed); - lastbin = histogramstructpointer->Seed->GetBinCenter(histogramstructpointer->Seed->FindLastBinAbove(10,1)); + lastbin = histogramstructpointer->Seed->GetBinCenter(histogramstructpointer->Seed->FindLastBinAbove(2,1)); histogramstructpointer->Seed->SetAxisRange(0,lastbin*1.1,"X"); gPad->SetLogy(1); canvas->cd(2); histogramstructpointer->Sum->Draw(); plotVerticalLine(histogramstructpointer->Sum, histogramstructpointer->posSum); - lastbin = histogramstructpointer->Sum->GetBinCenter(histogramstructpointer->Sum->FindLastBinAbove(10,1)); + lastbin = histogramstructpointer->Sum->GetBinCenter(histogramstructpointer->Sum->FindLastBinAbove(2,1)); histogramstructpointer->Sum->SetAxisRange(0,lastbin*1.1,"X"); canvas->cd(3); histogram.Veto->Draw(); diff --git a/MABS_run_analyzer/Run.h b/MABS_run_analyzer/Run.h index f776ec9..b37c152 100644 --- a/MABS_run_analyzer/Run.h +++ b/MABS_run_analyzer/Run.h @@ -165,7 +165,7 @@ private: * @return peak position of the fit * */ - Float_t FitPerform(TH1F*, TString fitFuncType="landau"); + Float_t FitPerform(TH1F*, TString fitFuncType="landau", Bool_t verbose=true); @@ -209,7 +209,7 @@ private: systemparam systemparamUSB { 800, // maxbin; 800/4,// nbins; - 5, //vetothreshold + 25, //vetothreshold 10, 100 }; -- 2.43.0