From c08c6a3427860f9a1e42724a5141ff4d38d4e4b4 Mon Sep 17 00:00:00 2001 From: Dennis Doering Date: Wed, 17 Jun 2015 14:01:29 +0200 Subject: [PATCH] Dennis Version ChargeSpektrum --- MABS_run_analyzer/ChargeSpektrum.c | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/MABS_run_analyzer/ChargeSpektrum.c b/MABS_run_analyzer/ChargeSpektrum.c index 2068760..90d46b8 100644 --- a/MABS_run_analyzer/ChargeSpektrum.c +++ b/MABS_run_analyzer/ChargeSpektrum.c @@ -176,7 +176,7 @@ void ChargeSpektrum(TString runnumber = "") { // gROOT->SetBatch(kTRUE); // runs[runi]->plotSeed(); - runs[runi]->plotSeedThresholdCalibrated(); + // runs[runi]->plotSeedThresholdCalibrated(); // runs[runi]->plotSeedThreshold(); // runs[runi]->plotSeed(); // runs[runi]->plotSum(); @@ -198,6 +198,7 @@ void ChargeSpektrum(TString runnumber = "") // writeObservableToFile("seed threshold calibrated"); writeObservableToFile("seed threshold"); writeObservableToFile("seed threshold calibrated"); + writeObservableToFile("sum threshold"); } Int_t ReadRunList(std::vector* runlist) @@ -284,7 +285,8 @@ Bool_t writeObservableToFile() for(Int_t runi=0;runilabbook.tempSens); - headerInfo+=runs[runi]->runcode+"\t"+labbookTempSens+"\t"; + TString labbookFrames=Form("%d",runs[runi]->labbook.frames_foundDB); + headerInfo+=runs[runi]->runcode+"\t"+labbookTempSens+labbookFrames+"\t\t"; } TH1F* plothistogrampointer = *runs[0]->plothistogrampointer; TString runnumberListe=Form("%s_",plothistogrampointer->GetName()); @@ -297,7 +299,7 @@ Bool_t writeObservableToFile() { plothistogrampointer = *runs[runi]->plothistogrampointer; runnumberListe+=Form("%d_",runs[runi]->labbook.runnumber); - header+=Form("%d\t%d_%s\t", runs[runi]->labbook.runnumber, runs[runi]->labbook.runnumber, plothistogrampointer->GetName()); + header+=Form("%d\t%d_%s\t\t", runs[runi]->labbook.runnumber, runs[runi]->labbook.runnumber, plothistogrampointer->GetName()); } } } @@ -305,17 +307,19 @@ Bool_t writeObservableToFile() fstream* fout = new fstream(filename,ios::out); *fout << headerInfo << endl; *fout << header << endl; - for(Int_t bini=0;biniGetNbinsX();bini++) + for(Int_t bini=0;biniGetNbinsX();bini++) { for(Int_t runi=0;runierror) { plothistogrampointer = *runs[runi]->plothistogrampointer; TString outline; - outline=Form("%.1f\t%.1f\t",plothistogrampointer->GetBinCenter(bini),plothistogrampointer->GetBinContent(bini)); + Float_t histoNorm=plothistogrampointer->GetBinContent(bini)/runs[runi]->labbook.frames_foundDB*10000000; + outline=Form("%.1f\t%.1f\t%.1f\t",plothistogrampointer->GetBinCenter(bini),plothistogrampointer->GetBinContent(bini),histoNorm); *fout<