From: Benjamin Linnik Date: Tue, 8 Sep 2015 21:30:17 +0000 (+0200) Subject: Run analyzer: Added option to switch common mode filter on and off, default value... X-Git-Url: https://jspc29.x-matter.uni-frankfurt.de/git/?a=commitdiff_plain;h=17a9d377b9275e6588dfa3978daf8229152bae27;p=radhard.git Run analyzer: Added option to switch common mode filter on and off, default value is on, use the function Run::useCommonModeFilter(Bool_t) in ChargeSpectrum.c to change value --- diff --git a/MABS_run_analyzer/MAPS.c b/MABS_run_analyzer/MAPS.c index d0e9496..225eb52 100644 --- a/MABS_run_analyzer/MAPS.c +++ b/MABS_run_analyzer/MAPS.c @@ -1767,6 +1767,7 @@ void MAPS::plotFrame(Int_t FrameNumber) { { cdsmatrixCorrPed[i]=(float)(1.*fCdsmatrix[i]-fPedestals[i]); } + cout<<"CDS matrix minus pedestals:"<(cdsmatrixCorrPed, fPixels, fColumns, 0, 10); // cout<getFrame(i); - // processed->filterCommonMode(); + if (commonModeFilter) + processed->filterCommonMode(); // cout << "hitana " << i << endl; processed->hitana(); // cout << "regetDynNoise " << endl; @@ -444,7 +452,8 @@ Bool_t Run::analyzeFrame(Int_t frame) { processed->InitialDynNoise(100); processed->getFrame(frame); - // processed->filterCommonMode(); + if (commonModeFilter) + processed->filterCommonMode(); processed->hitana(); processed->plotFrame(frame); delete processed; diff --git a/MABS_run_analyzer/Run.h b/MABS_run_analyzer/Run.h index 590248d..bb3a74f 100644 --- a/MABS_run_analyzer/Run.h +++ b/MABS_run_analyzer/Run.h @@ -300,7 +300,10 @@ private: void initRootParameters(); + /** @brief set this variable to true, to use the dynamical noise calculation in MAPS:analyzeRun() */ Bool_t dynamicalNoise = 1; + /** @brief set this variable to true, to use the common mode noise filter in MAPS:analyzeRun() */ + Bool_t commonModeFilter = 1; const TString colorwhite = "\033[1;29m"; const TString colorred = "\033[1;31m"; @@ -393,6 +396,9 @@ public: /** @brief Turn on or off the use of dynamical noise adjustment @c MAPS::regetDynNoise() */ Bool_t useDynamicalNoise(Bool_t); + + /** @brief Turn on or off the use of common mode noise filter @c MAPS::regetDynNoise() */ + Bool_t useCommonModeFilter(Bool_t); /** * @brief set pathwhere images and data to save to