]> jspc29.x-matter.uni-frankfurt.de Git - radhard.git/commitdiff
integrateSr90 in
authorDennis Doering <doering@physik.uni-frankfurt.de>
Tue, 25 Aug 2015 09:51:33 +0000 (11:51 +0200)
committerDennis Doering <doering@physik.uni-frankfurt.de>
Tue, 25 Aug 2015 09:51:33 +0000 (11:51 +0200)
MABS_run_analyzer/ChargeSpektrum.c
MABS_run_analyzer/MAPS.c
MABS_run_analyzer/Run.c

index bf8ded8ccdc117a9350ff4d04dbe8051902a7d9f..29ee298744b7dce0d16d42a7ccdfc57dea1f0d5b 100644 (file)
@@ -142,10 +142,10 @@ void ChargeSpektrum(TString runnumber = "")
                                 
 //                 runs[runi]->analyzeFrame(15684);
 //                 runs[runi]->analyzeFrame(803316);
-//                 runs[runi]->analyzeFrame(8319);
-                
+             //    runs[runi]->analyzeFrame(734);
+       //           runs[runi]->analyzeFrame(4072);  
                 // 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
+              runs[runi]->error=runs[runi]->analyzeRun(false); // creates or opens .root file, can analyze the RAW data
                 if (!runs[runi]->error)
                 {
             //         gROOT->SetBatch(kTRUE);
@@ -159,10 +159,10 @@ void ChargeSpektrum(TString runnumber = "")
                     //         runs[runi]->plotNoise();
                     if (!isBatch)
                         gROOT->SetBatch(kFALSE);
-                            runs[runi]->plotAllHistograms();
-//                    runs[runi]->plotAllHistogramsThresholdCluster();
-                    runs[runi]->plotAllHistogramsThresholdClusterCalibrated();
-                     runs[runi]->plotAllHistogramsCalibrated(); 
+              //              runs[runi]->plotAllHistograms();
+                    runs[runi]->plotAllHistogramsThresholdCluster();
+//                    runs[runi]->plotAllHistogramsThresholdClusterCalibrated();
//                    runs[runi]->plotAllHistogramsCalibrated(); 
                     runs[runi]->writeAllHistogramsToFile(); 
                 }
             }
@@ -172,5 +172,6 @@ void ChargeSpektrum(TString runnumber = "")
     plotAllRuns("seed calibrated");
 //     writeObservableToFile("seed threshold calibrated");
 //    writeObservableToFile("seed threshold");
-       writeObservableToFile("seed threshold calibrated");
+       writeObservableToFile("seed threshold");
+       writeObservableToFile("sum threshold");
 }
index 6d21333e44ef652b9111e34ba39f9034669ca8a4..ff434a238bbb46bcdae9567af165bdd3a0dfb37a 100644 (file)
@@ -1642,7 +1642,7 @@ void MAPS::hitana() {
                     }
                     // if(fFrameInfo.pixelthreshold[fHits]!=0)
                                        // {
-                                               
+                                               // cout<<"Charge"<<chargesumincluster4<<"must bigger than NOISE"<<noisesumincluster4*6.0<<endl;
                                               // debugStream<>(fHittedPixel, fPixels, fColumns, 1, 1);
                                                // for(Int_t row=0; row<5; row++)
                                                // {
index 41b31cfdbbadfc6e20dad111113d05c753064535..959df9eae74e17dda8da4f124922116cbcfc4abe 100644 (file)
@@ -98,7 +98,6 @@ Run::Run(Int_t runnumber, Int_t loopi)
             labbook.CCE_in_Perc_1DB = (rowsql->GetField(17) != NULL)?atoi(rowsql->GetField(17)):-1;
             labbook.CCE_in_Perc_25DB = (rowsql->GetField(18) != NULL)?atoi(rowsql->GetField(18)):-1;
             labbook.frames_foundDB = (rowsql->GetField(19) != NULL)?atoi(rowsql->GetField(19)):-1;
-               //      labbook.frames_Analyzed = (rowsql->GetField(20) != NULL)?atoi(rowsql->GetField(20)):-1;
             delete res;
             if (labbook.chip.Length() > 0 && labbook.chipGen.Length() > 0) // versuche infos zum Chip aus der ChipDatenbank zu bekommen
             {
@@ -244,7 +243,7 @@ Bool_t Run::analyzeRun(Bool_t force)
             processed->InitialDynNoise();
             int start   = 0;
             int nframes = processed->GetNumberFrames();
-         //    for(int i=0; i<1000000;i++) // TODO remove 100000 run 342272
+          //   for(int i=0; i<1000;i++) // TODO remove 100000 run 342272
            for(int i=0; i<nframes;i++) // TODO remove 100000 run 342272
             {
 //                 cout << "getframe " << i << endl;
@@ -284,11 +283,11 @@ Bool_t Run::analyzeRun(Bool_t force)
         histogramthresholdCalibrated.calibrated = histogramCalibrated.calibrated;
         cout << colorwhite << "calculateCCE():" << endlr;
         calculteCCE();
-    /*    if (labbook.source.Contains("Sr90")) {
+        if (labbook.source.Contains("Sr90")) {
             cout << colorwhite << "integrateSr90Spectra():" << endlr;
             integrateSr90Spectra(histogramthresholdCalibrated.Seed);
         }
-       */      
+               
         cout << colorwhite << "updateDatabase():" << endlr;
         updateDatabase();
         cout << colorwhite << "delete MAPS class:" << endlr;