]> jspc29.x-matter.uni-frankfurt.de Git - radhard.git/commitdiff
FSBB added (not bugfree so far)
authorDennis Doering <doering@physik.uni-frankfurt.de>
Tue, 21 Jul 2015 09:41:29 +0000 (11:41 +0200)
committerDennis Doering <doering@physik.uni-frankfurt.de>
Tue, 21 Jul 2015 09:41:29 +0000 (11:41 +0200)
MABS_run_analyzer/MAPS.c
MABS_run_analyzer/Run.c
MABS_run_analyzer/Run.h

index fcc3d52bb50b04f6f23f25730fb9d3d255e8c58b..64659623021b7b1bedb7e76236bbc9e409af0a8f 100644 (file)
@@ -1649,7 +1649,7 @@ void MAPS::plotFrame(Int_t FrameNumber) {
     else {
         cout <<endl <<endl << colorwhite << "---------------- FRAME " << fFrameNumber << " ----------------" << colorreset << endl << endl;
         cout<<"CDS matrix:"<<endl;
-        debugStream<>(fCdsmatrix, fPixels, fColumns, 0, 19);
+        debugStream<>(fCdsmatrix, fPixels, fColumns, 0, 39);
         
         cout<<"Hitted pixel discriminator matrix:"<<endl;
         debugStream<>(fHittedPixel, fPixels, fColumns, 1, 1);
index 103c449669f9b385b6aeead9f53f4a5cd7ebbb9c..b805a681de6753de8ef91d5269448c0a906e8442 100644 (file)
@@ -98,6 +98,7 @@ 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
             {
@@ -283,10 +284,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;
@@ -499,7 +501,9 @@ Float_t Run::stringToNumber ( string Text )
 
 void Run::setSystemSpecificParameters()
 {    
-    if (labbook.system.EqualTo("USB")) // && labbook.chipGen.EqualTo("34") )
+    if (labbook.system.EqualTo("USB")  && labbook.chipGen.EqualTo("Mi34") )
+        systemparamcur = systemparamUSB;
+       else if (labbook.system.EqualTo("USB")  && labbook.chipGen.EqualTo("FSBB") )
         systemparamcur = systemparamUSB;
     else if (labbook.system.EqualTo("PXI")) // && labbook.chipGen.EqualTo("34") )
         systemparamcur = systemparamPXI;
@@ -514,8 +518,11 @@ void Run::setSensorInSystemParam()
     sensorinfostruct sensorinfoMi34USB( 8, 64 );
     sensorinfostruct sensorinfoMi34PXI( 16, /* rows */  64 /* columns */   );
     sensorinfostruct sensorinfoPegasus( 8, 56 );
-    if (labbook.system.EqualTo("USB")) // && labbook.chipGen.EqualTo("34") )
+       sensorinfostruct sensorinfoFSBB( 8, 208 );
+    if (labbook.system.EqualTo("USB")  && labbook.chipGen.EqualTo("Mi34") )
         sensorinfocur=sensorinfoMi34USB;
+       else if (labbook.system.EqualTo("USB")  && labbook.chipGen.EqualTo("FSBB") )
+        sensorinfocur=sensorinfoFSBB;
     else if (labbook.system.EqualTo("PXI")) // && labbook.chipGen.EqualTo("34") )
         sensorinfocur=sensorinfoMi34PXI;
     else if (labbook.system.EqualTo("Pegasus")) // && labbook.chipGen.EqualTo("34") )
index fde690130cec170877873938d388a85c5b2ddb95..d0a688b24ce65d9d7410ce286e6a06c42a714367 100644 (file)
@@ -239,7 +239,13 @@ private:
         150,
         150
     };
-    
+        systemparam systemparamFSBB {
+        2800, // maxbin;
+        2800/4,// nbins;
+        25, //vetothreshold
+        10,
+        100
+    };
     Int_t* rootcolors;
     Int_t* rootlinestyle;