]> jspc29.x-matter.uni-frankfurt.de Git - radhard.git/commitdiff
Noise in ADU now inserted to database
authorDennis Doering <doering@physik.uni-frankfurt.de>
Thu, 11 Jun 2015 10:54:07 +0000 (12:54 +0200)
committerDennis Doering <doering@physik.uni-frankfurt.de>
Thu, 11 Jun 2015 10:54:07 +0000 (12:54 +0200)
MABS_run_analyzer/ChargeSpektrum.c
MABS_run_analyzer/Run.c

index 7944e4eb088de98acf9a86a0e27ec29ec75687c2..164114d0180b96ae3c026d03ef623b4c0ea2f927 100644 (file)
@@ -171,7 +171,7 @@ void ChargeSpektrum(TString runnumber = "")
 //                 runs[runi]->analyzeFrame(8319);
                 
                 // creates or opens .root file, can analyze the RAW data
-                runs[runi]->error=runs[runi]->analyzeRun(true); // creates or opens .root file, can analyze the RAW data
+                runs[runi]->error=runs[runi]->analyzeRun(false); // creates or opens .root file, can analyze the RAW data
                 if (!runs[runi]->error)
                 {
             //         gROOT->SetBatch(kTRUE);
@@ -196,7 +196,8 @@ void ChargeSpektrum(TString runnumber = "")
 //     plotAllRuns("");
     plotAllRuns("threshold calibrated");
 //     writeObservableToFile("seed threshold calibrated");
-    writeObservableToFile("seed threshold calibrated");
+    writeObservableToFile("seed threshold");
+       writeObservableToFile("seed threshold calibrated");
 }
 
 Int_t ReadRunList(std::vector<int>* runlist)
@@ -282,7 +283,8 @@ Bool_t writeObservableToFile()
     TString headerInfo = "";
     for(Int_t runi=0;runi<numberRuns;runi++) // loop over runs read from file
     {
-        headerInfo+=runs[runi]->runcode+"\t\t\t";
+               TString labbookTempSens=Form("%d",runs[runi]->labbook.tempSens);
+        headerInfo+=runs[runi]->runcode+"\t"+labbookTempSens+"\t";
     }
     TH1F* plothistogrampointer = *runs[0]->plothistogrampointer;
     TString runnumberListe=Form("%s_",plothistogrampointer->GetName());
@@ -295,7 +297,7 @@ Bool_t writeObservableToFile()
             {
                 plothistogrampointer = *runs[runi]->plothistogrampointer;
                 runnumberListe+=Form("%d_",runs[runi]->labbook.runnumber);
-                header+=Form("%d\t%s\t", runs[runi]->labbook.runnumber, plothistogrampointer->GetName());
+                header+=Form("%d\t%d_%s\t", runs[runi]->labbook.runnumber, runs[runi]->labbook.runnumber, plothistogrampointer->GetName());
             }
         }
        }
index 837bffa4f2384d97c9b88f32867ce6daab66bdf9..991f9b9765b0ab61f689235729771e5fb2a88098 100644 (file)
@@ -600,6 +600,7 @@ void Run::updateDatabase() {
     constructUpdateString(&sqlupdatequery, "Avg.Noise-", histogramCalibrated.avgNoiseMinus, 2);
     constructUpdateString(&sqlupdatequery, "CCE_1",      CCE_in_Perc_1);
     constructUpdateString(&sqlupdatequery, "CCE_25",     CCE_in_Perc_25);
+       constructUpdateString(&sqlupdatequery, "Avg.NoiseADC",  histogram.avgNoise);
     
     if (sqlupdatequery.length()>0)
     {