]> jspc29.x-matter.uni-frankfurt.de Git - radhard.git/commitdiff
analyzer: commit before change
authorTobias Bus <tbus@jspc48.x-matter.uni-frankfurt.de>
Fri, 4 Nov 2016 11:50:51 +0000 (12:50 +0100)
committerTobias Bus <tbus@jspc48.x-matter.uni-frankfurt.de>
Fri, 4 Nov 2016 11:50:51 +0000 (12:50 +0100)
MABS_run_analyzer/ChargeSpektrum.c
MABS_run_analyzer/Run.c

index fa6146d8066f7c76733ed38360aaea3c1f32bf55..f0dd82193aa1b90af3762be37760478a2775cd3e 100644 (file)
@@ -103,15 +103,16 @@ void ChargeSpektrum(TString runnumber = "")
                     // Uncomment below to do classical analysis withour RTS
 //                     compareHistogramClassVector2.push_back(runs[runi]->histogramwoRTS->normalized->calibrated);
                    
-                     runs[runi]->plotAllHistograms(runs[runi]->histogram);
-                     //compareHistogramClassVector.push_back(runs[runi]->histogram->normalized->calibrated);
+                     runs[runi]->plotAllHistograms(runs[runi]->histogram->normalized->calibrated);
+//                     runs[runi]->plotAllHistograms(runs[runi]->histogramthreshold);
+                     compareHistogramClassVector.push_back(runs[runi]->histogram->normalized);
                      //compareHistogramClassVector2.push_back(runs[runi]->histogram->normalized);
 //                     compareHistogramClassVector2.push_back(runs[runi]->histogramthreshold);
                      compareHistogramVector.push_back(runs[runi]->histogram->normalized->calibrated->Seed);
                      compareHistogramVector2.push_back(runs[runi]->histogram->normalized->Seed);
                     //runs[runi]->plot1DHistogram(runs[runi]->histogram->normalized->calibrated, runs[runi]->histogram->normalized->calibrated->Seed, "landau", 1);
 //                     runs[runi]->plot1DHistogram(runs[runi]->histogramwoRTS->normalized->calibrated, runs[runi]->histogramwoRTS->normalized->calibrated->Seed, "landau", true);
-//                     runs[runi]->plot1DHistogram(runs[runi]->histogramwoRTS->normalized->calibrated, runs[runi]->histogramwoRTS->normalized->calibrated->Sum, "gaus", true);
+                     runs[runi]->plot1DHistogram(runs[runi]->histogram->normalized, runs[runi]->histogram->normalized->Seed, "gaus", true);
                     
 // //                     Uncomment below to do analysis without RTS pixel
 //                     compareHistogramClassVector2.push_back(runs[runi]->histogramwoRTSthreshold);
index 5a4a8968128e6e2aa5754413b4f56f46251b6dbf..358c544c188813f51bbdcf3cd0ffda0ece009bc3 100644 (file)
@@ -251,7 +251,7 @@ void Run::setSystemSpecificParameters()
     systemparam systemparamPXI (800*16,800,75,150,150);
     systemparam systemparamFSBB (2800,2800/4,25,10,100);
     systemparam systemparamUSBMi19 (400/*maxbin*/,400/1/*nbins*/, 25/*vetothreshold*/, 10/*maxbinnoise*/, 100/*nbinsnoise*/);
-    systemparam systemparamPipper2 (1000,1000,15,10,100);
+    systemparam systemparamPipper2 (1000,500,15,10,100);
     if (labbook.system.EqualTo("USB")  && labbook.chipGen.EqualTo("Mi34") )
         cursystemparam = systemparamUSB;
     else if (labbook.system.EqualTo("USB")  && labbook.chipGen.EqualTo("FSBB") )
@@ -965,8 +965,8 @@ void Run::updateDatabase() {
     if (histogramthreshold->normalized->calibrated != 0)
 //         if (histogramthreshold->normalized->calibrated->avgNoiseMinus < 100)
             constructUpdateString(&sqlupdatequery, "Avg.Noise-", histogramthreshold->normalized->calibrated->avgNoiseMinus, 2);
-    constructUpdateString(&sqlupdatequery, "CCE_1",      histogramthreshold->normalized->CCE_in_Perc_1);
-    constructUpdateString(&sqlupdatequery, "CCE_25",     histogramthreshold->normalized->CCE_in_Perc_25);
+    constructUpdateString(&sqlupdatequery, "CCE_1",      histogram->normalized->CCE_in_Perc_1); // because histogramthreshold didn't work well with Pipper2.... why?'
+    constructUpdateString(&sqlupdatequery, "CCE_25",     histogram->normalized->CCE_in_Perc_25);
     constructUpdateString(&sqlupdatequery, "StoN",     histogramthreshold->normalized->StoN, 3);
 //     if (histogramthreshold->normalized->avgNoise < 100)
         constructUpdateString(&sqlupdatequery, "Avg.NoiseADC",  histogramthreshold->normalized->avgNoise);
@@ -2099,7 +2099,8 @@ TCanvas* Run::plot1DHistogram(HistogramType* HistogramTypepointer, TH1F* onehist
         if (withOverflow)
             onehistogram=ShowOverflow(onehistogram);
         onehistogram->Draw();
-        
+        cout << colorcyan << "Harambe died for this" << endlr;
+
         Double_t* parameters = (Double_t *)calloc(9, sizeof(Double_t)); // allocate 9 parameters for safety, maximum 8 used at the moment     
         Float_t maxValue = 0;
         if (fitFuncType!="")