From: Dennis Doering Date: Mon, 7 Sep 2015 13:48:54 +0000 (+0200) Subject: FSBB: Set fRows and fColumns in MAPS.C to the fixed values 8 and 208 to read the... X-Git-Url: https://jspc29.x-matter.uni-frankfurt.de/git/?a=commitdiff_plain;h=e2801c1330cb71e2d76b24481f5592874bfcf3b6;p=radhard.git FSBB: Set fRows and fColumns in MAPS.C to the fixed values 8 and 208 to read the data from file --- diff --git a/MABS_run_analyzer/MAPS.c b/MABS_run_analyzer/MAPS.c index 1f0f2dd..03373ae 100644 --- a/MABS_run_analyzer/MAPS.c +++ b/MABS_run_analyzer/MAPS.c @@ -223,6 +223,13 @@ Bool_t MAPS::initMapsRun( ) { cout<<" Save/Overwrite data : "<sensorinfocur.columns*run->sensorinfocur.rows; + fPixelsData = fColumns*fRows; //----------------------------------------------- cout<<"-----------------------"< Load default config file ..."<(fCdsmatrix, fPixels, fColumns, 0, 39); + Float_t cdsmatrixCorrPed[fPixels]; + for(Int_t i=0; i(cdsmatrixCorrPed, fPixels, fColumns, 0, 10); // cout<(fHittedPixel, fPixels, fColumns, 1, 1); @@ -2406,7 +2420,7 @@ void MAPS::reorderMi29a() { //#################################################################### void MAPS::reorderFSBB() { - Float_t CDSMATRIX2 [4*208]; + Float_t CDSMATRIX2 [4*208*2]; Float_t CDSMATRIX [fPixels]; Int_t F0MATRIX [fPixels]; Int_t F1MATRIX [fPixels]; @@ -2417,21 +2431,25 @@ void MAPS::reorderFSBB() { F1MATRIX [i] = fF1matrix [i]; } fRows = 4; - fColumns = 208; + fColumns = 416; fPixels = fRows*fColumns; + // cout<<"Changed parameters for FSBB, fRows is now: "<getFrame(i); - processed->filterCommonMode(); + // processed->filterCommonMode(); // cout << "hitana " << i << endl; processed->hitana(); // cout << "regetDynNoise " << endl; @@ -571,7 +571,7 @@ void Run::setSensorInSystemParam() sensorinfostruct sensorinfoMi34USB( 8, 64 ); sensorinfostruct sensorinfoMi34PXI( 16, /* rows */ 64 /* columns */ ); sensorinfostruct sensorinfoPegasus( 8, 56 ); - sensorinfostruct sensorinfoFSBB( 8, 208 ); + sensorinfostruct sensorinfoFSBB( 4, 416 ); if (labbook.system.EqualTo("USB") && labbook.chipGen.EqualTo("Mi34") ) sensorinfocur=sensorinfoMi34USB; @@ -606,14 +606,15 @@ void Run::setSubMatrixBorders(u_int x_start, u_int x_end, u_int y_start, u_int y } void Run::selectSubMatrixFSBB(TString matrixname) -{ +{ + if (matrixname.EqualTo("A0")) { - setSubMatrixBorders(0, sensorinfocur.columns, 0, sensorinfocur.rows/2-2, false); + setSubMatrixBorders(0, sensorinfocur.columns/2-2, 0, sensorinfocur.rows, false); runcodesuffix += "_A0_"; humanreadablesuffix += "A0, "; } else if (matrixname.EqualTo("A1")) { - setSubMatrixBorders(0, sensorinfocur.columns, sensorinfocur.rows/2+2, sensorinfocur.rows, false); + setSubMatrixBorders(sensorinfocur.columns/2+2, sensorinfocur.columns, 0, sensorinfocur.rows, false); runcodesuffix += "_A1_"; humanreadablesuffix += "A1, "; } @@ -804,7 +805,7 @@ Bool_t Run::binSeedSumVeto() notSeedSum = 0; if(labbook.chipGen=="FSBB") { - Float_t clusterArray[processed->clustersize*processed->clustersize]; + Float_t clusterArray[processed->clustersize*processed->clustersize];// temp variable clusterArray necessary, because Sort only accepts 1-dim arrays Int_t index[processed->clustersize*processed->clustersize]; for (Int_t clusteri=0; clustericlustersize*processed->clustersize; clusteri++) {