]> jspc29.x-matter.uni-frankfurt.de Git - radhard.git/commitdiff
Analyzer: Show more along the x-axis in ShowAllHistograms Plots
authorBenjamin Linnik <blinnik@jspc28.x-matter.uni-frankfurt.de>
Wed, 6 May 2015 10:32:08 +0000 (12:32 +0200)
committerBenjamin Linnik <blinnik@jspc28.x-matter.uni-frankfurt.de>
Wed, 6 May 2015 10:32:08 +0000 (12:32 +0200)
MABS_run_analyzer/ChargeSpektrum.c
MABS_run_analyzer/Run.c
MABS_run_analyzer/Run.h

index f8a50a8d4d5966eb1f1b19a450466d614decbd8f..f397d89c77a08fb96af29a5161c888915e5589ca 100644 (file)
@@ -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(); 
     }
index 77de290dbaabfbe68f817d0b5ba45bd61ad9020d..737fe955f484bf85265bbc245c0916cf687ef427 100644 (file)
@@ -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();
index f776ec9aec05b9c2a02234bfad25e68250663479..b37c152856829e520c45cba1e57d98db3d49c0fd 100644 (file)
@@ -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
     };