From: Dennis Doering Date: Mon, 21 Sep 2015 14:17:37 +0000 (+0200) Subject: FSBB letzte Version vor dem Merge, funktioniert ganz gut X-Git-Url: https://jspc29.x-matter.uni-frankfurt.de/git/?a=commitdiff_plain;h=b89acccdced8bae86c92310fd0f74ea1d7a6990f;p=radhard.git FSBB letzte Version vor dem Merge, funktioniert ganz gut --- diff --git a/MABS_run_analyzer/MAPS.c b/MABS_run_analyzer/MAPS.c index 8d3e6d6..4685f96 100644 --- a/MABS_run_analyzer/MAPS.c +++ b/MABS_run_analyzer/MAPS.c @@ -82,9 +82,9 @@ Bool_t MAPS::initOldRootFile() { } //----------------------------------------------- //Check and open Data Files - int MaxFiles = TMath::Ceil((Float_t) FileTotalEvNbInConfig/FileEvNbInConfig); - if( checkDataFiles(MaxFiles) ) - { + //int MaxFiles = TMath::Ceil((Float_t) FileTotalEvNbInConfig/FileEvNbInConfig); + //if( checkDataFiles(MaxFiles) ) + //{ fOutputFile = new TFile(fRootFile,"READ"); if (fOutputFile->IsZombie()) { @@ -115,7 +115,7 @@ Bool_t MAPS::initOldRootFile() { cout<<"-----------------------"< (5.*fNoise[i]) ) { + //cout< clusternoise * const if(fOrderCode=="FSBB") { + // cout<<"Chargesumme"< noisesumincluster4*5.0) + { + fFrameInfo.pixelthreshold[fHits] = Hitlist[hit]; + } else fFrameInfo.pixelthreshold[fHits] = 0; } @@ -1845,7 +1851,7 @@ void MAPS::plotFrame(Int_t FrameNumber) { cout <(fCdsmatrix, fPixels, fColumns, 0, 39); - + debugStream<>(fPedestals, fPixels, fColumns, 0, 39); Float_t cdsmatrixCorrPed[fPixels]; for(Int_t i=0; iinitOldRootFile()) return 1; + if (processed->initOldRootFile()) return 1; cout << colorwhite << "binNoise():" << endlr; binNoise(); cout << colorwhite << "binSeedSumVeto():" << endlr; @@ -456,6 +456,7 @@ Bool_t Run::analyzeFrame(Int_t frame) // processed->filterCommonMode(); processed->hitana(); processed->plotFrame(frame); + processed->plotPixSignal(0,300,795); // delete processed; // return 0; // } @@ -566,7 +567,7 @@ void Run::setSystemSpecificParameters() if (labbook.system.EqualTo("USB") && labbook.chipGen.EqualTo("Mi34") ) systemparamcur = systemparamUSB; else if (labbook.system.EqualTo("USB") && labbook.chipGen.EqualTo("FSBB") ) - systemparamcur = systemparamUSB; + systemparamcur = systemparamFSBB; else if (labbook.system.EqualTo("PXI")) // && labbook.chipGen.EqualTo("34") ) systemparamcur = systemparamPXI; else if (labbook.system.EqualTo("Pegasus")) // && labbook.chipGen.EqualTo("34") ) @@ -792,10 +793,14 @@ Bool_t Run::binSeedSumVeto() // UInt_t seedPixel[10000]; // /// Array of processed->clustersize * processed->clustersize clusters, seed pixel in the middle // Float_t pixelcluster[processed->clustersize*processed->clustersize][10000]; - + Int_t pixels=sensorinfocur.columns*sensorinfocur.rows; + histoPixelDiodeDiff = new TH1F("histoPixelDiodeDiff","histoPixelDiodeDiff",pixels,0,pixels); /// collected charge in cluster Float_t pixelSum = 0; Float_t notSeedSum = 0; + fPixelFakeHits = new Float_t [pixels](); + for(int iPixel=0;iPixelFill(processed->fFrameInfo.p[12][hiti]); // histogram with the single pixel - if (processed->fFrameInfo.pixelthreshold[hiti]*fPixelFakeHits[processed->fFrameInfo.pixel[hiti]]>0)//If clustercharge is above threshold AND pixel is NOT a fake hit pixel according getPixelWithFakehits() + if (processed->fFrameInfo.pixelthreshold[hiti]*fPixelFakeHits[processed->fFrameInfo.pixel[hiti]+1]>0)//If clustercharge is above threshold AND pixel is NOT a fake hit pixel according getPixelWithFakehits() WARUM +1? WARUM GEHT fPixelFakeHits NICHT NORMAL??? ICH HABE GERADE KEINE AHNUNG { histogramthreshold.numberofhits++; - - histogramthreshold.Seed->Fill(processed->fFrameInfo.p[12][hiti]); + if(processed->fFrameInfo.p[12][hiti]>30) + { + // cout<fFrameInfo.pixel[hiti]<<"\t"<fFrameInfo.pixel[hiti]]<Fill(processed->fFrameInfo.pixel[hiti]); + } + histogramthreshold.Seed->Fill(processed->fFrameInfo.p[12][hiti]); // cout<<"Hitnummer"<fFrameInfo.pixelthreshold[hiti]<<":"; // for(int col=0;col<25;col++) // cout<fFrameInfo.p[col][hiti]<<","; @@ -897,7 +906,13 @@ Bool_t Run::binSeedSumVeto() } } } - + +// for(int iPixel=0;iPixelGetBinContent(iPixel)<<"\t"; +// for(int iPixel=0;iPixelGetBinContent(iPixel)<<"\t"; + //cout<GetBinContent(iPixel)<<"-----"; +// cout<SetBatch(kTRUE); if (labbook.source.Contains("Fe")||labbook.source.Contains("Cd")) histogram.posVeto=FitPerform(histogram.Veto, "gaus", true); @@ -2034,7 +2049,7 @@ void Run::getPixelWithFakehits() } fPixelFakeHits = new Float_t [pixels](); fcountPixelFakeHits=0; - Float_t fakehitrate=0.00001; + Float_t fakehitrate=0.0001; Float_t sourceIntensity=1;//Adjust it depending on the intensity of the used source if(labbook.source.Contains("Fe")) { @@ -2058,7 +2073,8 @@ void Run::getPixelWithFakehits() // cout<GetBinContent(ipixel)<GetBinContent(ipixel)<<"\t"; fPixelFakeHits[ipixel]=1;//pixel is NOT a fake hit pixel } diff --git a/MABS_run_analyzer/Run.h b/MABS_run_analyzer/Run.h index bee9990..783b61c 100644 --- a/MABS_run_analyzer/Run.h +++ b/MABS_run_analyzer/Run.h @@ -273,7 +273,7 @@ private: systemparam systemparamFSBB { 2800, // maxbin; 2800/4,// nbins; - 25, //vetothreshold + 20, //vetothreshold 10, 100 }; @@ -281,6 +281,7 @@ private: Int_t* rootlinestyle; void getPixelWithFakehits(); + TH1F* histoPixelDiodeDiff; TH1F* histoPixel; Float_t* fPixelFakeHits; Int_t fcountPixelFakeHits;