From: Benjamin Linnik Date: Wed, 3 Jun 2015 14:07:37 +0000 (+0200) Subject: Anylyzer: Added column to represent the number of frames really found in folder to... X-Git-Url: https://jspc29.x-matter.uni-frankfurt.de/git/?a=commitdiff_plain;h=c6ab8d723ad40160c8847e479e5f6e57b34f362c;p=radhard.git Anylyzer: Added column to represent the number of frames really found in folder to database, account for USB system crashes --- diff --git a/MABS_run_analyzer/ChargeSpektrum.c b/MABS_run_analyzer/ChargeSpektrum.c index 7944e4e..231d85f 100644 --- a/MABS_run_analyzer/ChargeSpektrum.c +++ b/MABS_run_analyzer/ChargeSpektrum.c @@ -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); diff --git a/MABS_run_analyzer/MAPS.c b/MABS_run_analyzer/MAPS.c index f9ebc41..495bda4 100644 --- a/MABS_run_analyzer/MAPS.c +++ b/MABS_run_analyzer/MAPS.c @@ -445,7 +445,7 @@ bool MAPS::checkDataFiles( Int_t MaxFiles ) { bool MAPS::checkDataFile( UInt_t FileNr, UInt_t &Frames ) { TString FILENAME = fInDir+Form("/RUN_%i_%i.rz",fRunNumber,FileNr); - cout << FILENAME<< endl; +// cout << FILENAME<< endl; ifstream inn(FILENAME, ios::binary); // Int_t Pixels=0; if( !inn.good() ) @@ -1222,7 +1222,7 @@ void MAPS::hitana() { // Begin loop over all negative CDS pixel // Determine clusters around them - for(Int_t rechargingpixeli=0; rechargingpixeliinitNewRootFile()) return 1; + frames_found = processed->GetNumberFrames(); /// progress meter, temporal variable ULong_t progress_tmp=-1; /// progress meter @@ -590,6 +591,8 @@ void Run::constructUpdateString(string *sqlupdatequery, const string databaseval } void Run::updateDatabase() { + + string sqlupdatequery = ""; constructUpdateString(&sqlupdatequery, "Gain", gain); constructUpdateString(&sqlupdatequery, "SumPeak", histogram.posSum, 4); @@ -600,6 +603,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, "Frames_found", frames_found,100000000); if (sqlupdatequery.length()>0) { diff --git a/MABS_run_analyzer/Run.h b/MABS_run_analyzer/Run.h index a31fe6c..bab9734 100644 --- a/MABS_run_analyzer/Run.h +++ b/MABS_run_analyzer/Run.h @@ -117,6 +117,9 @@ private: /// see #devided_lower_matr_min const Float_t devided_upper_matr_max = 16.0; + /// number of frames found in given folder + ULong_t frames_found = 0; + /** * @brief Generates a human readable string with information about the run * @@ -206,7 +209,7 @@ private: }; systemparam systemparamUSB { 2800, // maxbin; - 2800/16,// nbins; + 2800/8,// nbins; 25, //vetothreshold 10, 100