From: Dennis Doering Date: Thu, 17 Sep 2015 14:58:20 +0000 (+0200) Subject: Improved getPixelWithFakehits X-Git-Url: https://jspc29.x-matter.uni-frankfurt.de/git/?a=commitdiff_plain;h=5e001268fda7efa38ebaa8ba0f34a3a765d86497;p=radhard.git Improved getPixelWithFakehits --- diff --git a/MABS_run_analyzer/Run.c b/MABS_run_analyzer/Run.c index 3c1b8f1..d16e39a 100644 --- a/MABS_run_analyzer/Run.c +++ b/MABS_run_analyzer/Run.c @@ -856,24 +856,9 @@ Bool_t Run::binSeedSumVeto() if (TMath::Abs(notSeedSum) < systemparamcur.vetothreshold && (labbook.source.Contains("Fe")||labbook.source.Contains("Cd"))) histogram.Veto->Fill(processed->fFrameInfo.p[12][hiti]); // histogram with the single pixel - if (processed->fFrameInfo.pixelthreshold[hiti]>0) + 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() { - Bool_t pixelfound=false; - for(int col=0;colfFrameInfo.pixel[hiti]) - { - pixelfound=true; - } - } - if(pixelfound==true) - { - continue;//If pixel is a fake hit pixel with a rate >1e-5, do not count it - } - // if(pixelfound==false) - // { - // cout<<"Pixel"<fFrameInfo.pixel[hiti]<<" NOT found in array"<Fill(processed->fFrameInfo.p[12][hiti]); @@ -2049,29 +2034,36 @@ void Run::getPixelWithFakehits() } fPixelFakeHits = new Float_t [pixels](); fcountPixelFakeHits=0; - for(int col=0;colGetBinContent(ipixel)>fakehitrate*sourceIntensity*labbook.frames_foundDB)//show only pixels with a fake hit rate above 1e-5 + { + fcountPixelFakeHits++; + fPixelFakeHits[ipixel]=0;//pixel is a fake hit pixel + + // cout<GetBinContent(ipixel)<GetBinContent(col)>fakehitrate*sourceIntensity*labbook.frames_foundDB)//show only pixels with a fake hit rate above 1e-5 - { - fPixelFakeHits[fcountPixelFakeHits]=col; - fcountPixelFakeHits++; - cout<GetBinContent(col)<