]> jspc29.x-matter.uni-frankfurt.de Git - radhard.git/commitdiff
Anylyzer: fixed double run analysis
authorBenjamin Linnik <blinnik@jspc28.x-matter.uni-frankfurt.de>
Tue, 2 Jun 2015 13:18:52 +0000 (15:18 +0200)
committerBenjamin Linnik <blinnik@jspc28.x-matter.uni-frankfurt.de>
Tue, 2 Jun 2015 13:18:52 +0000 (15:18 +0200)
MABS_run_analyzer/ChargeSpektrum.c
MABS_run_analyzer/Run.c

index d43a9c23d84de486877d842f8ec708e6f168bc3d..dba54e9f19e3979ad7ad59e338aee267c5e76dca 100644 (file)
@@ -132,8 +132,6 @@ void ChargeSpektrum(TString runnumber = "")
         /// number of runs to be analyzed, number of lines read by @c ReadRunList() 
         ReadRunList(&runList);
     }
-    numberRuns=2;
-    runList.push_back(runList.front());
     runs = new Run*[numberRuns];
     
     cout << "Found " << numberRuns << " run(s) in 'runlist.txt' or given as parameters." << endl;
@@ -165,14 +163,7 @@ void ChargeSpektrum(TString runnumber = "")
                 }
                 runs[runi]->setResultsPath("./results/");
                 runs[runi]->error=runs[runi]->initRun();
-//                 if (runi%2)
-//                 {
-                    if(runs[runi]->setDynamicalNoiseMode("simple")) cout << coloryellow << "Passed noise mode not recognized, using simple moving average" << endlr;
-//                 }
-//                 else
-//                 {
-//                     if(runs[runi]->setDynamicalNoiseMode("exponential")) cout << coloryellow << "Passed noise mode not recognized, using simple moving average" << endlr;
-//                 }
+                runs[runi]->setDynamicalNoiseMode("simple");
                 runs[runi]->useDynamicalNoise(true);
                                 
 //                 runs[runi]->analyzeFrame(15684);
index e9059d898eecf68d01deddc5016f7ef5fb23e880..ae515ba07d47197453eb4852c794b60569df0ee7 100644 (file)
@@ -209,6 +209,7 @@ Bool_t Run::setDynamicalNoiseMode(TString mode)
         processed->useexponentialdecayingnoisewindow = 0;
         return 0;
     }
+    cout << coloryellow << "Passed noise mode not recognized, using simple moving average" << endlr;
     return 1;
 }