From 952dec5a77127b7bbf5dbaaf99c62e26f60aa989 Mon Sep 17 00:00:00 2001 From: Dennis Doering Date: Thu, 7 May 2015 10:43:29 +0200 Subject: [PATCH] =?utf8?q?Bevor=20Reinigung=20mit=20s=C3=A4mtlichen=20Debu?= =?utf8?q?g-couts?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- MABS_run_analyzer/Run.c | 67 +++++++++++++++++++++++++++++++++++++++-- 1 file changed, 65 insertions(+), 2 deletions(-) diff --git a/MABS_run_analyzer/Run.c b/MABS_run_analyzer/Run.c index 737fe95..acf8e06 100644 --- a/MABS_run_analyzer/Run.c +++ b/MABS_run_analyzer/Run.c @@ -8,6 +8,7 @@ */ #include "Run.h" + using namespace std; Run::Run( void ) @@ -596,7 +597,8 @@ Bool_t Run::binSeedSumVeto() Float_t pixelSum = 0; Float_t notSeedSum = 0; - for (Int_t framei=0; frameifHitTree->GetEntries(); framei++) // loop over all frames + //for (Int_t framei=0; frameifHitTree->GetEntries(); framei++) // loop over all frames + for (Int_t framei=0; framei<100; framei++) // loop over all frames { processed->fHitTree->GetEntry(framei); // account only frames with less then 10 hits @@ -604,9 +606,69 @@ Bool_t Run::binSeedSumVeto() { for(Int_t hiti=0; hitifFrameInfo.hits;hiti++) { +//------------------------------------------------------------------------------------ + + cout<<"hit"<fFrameInfo.p[6][hiti]<<","<< processed->fFrameInfo.p[7][hiti]<<","<< processed->fFrameInfo.p[8][hiti]<<","<< processed->fFrameInfo.p[8][hiti]<<","<< processed->fFrameInfo.p[10][hiti]<fFrameInfo.p[10][hiti]<<","<< processed->fFrameInfo.p[11][hiti]<<","<< processed->fFrameInfo.p[12][hiti]<<","<< processed->fFrameInfo.p[13][hiti]<<","<< processed->fFrameInfo.p[14][hiti]<fFrameInfo.p[15][hiti]<<","<< processed->fFrameInfo.p[16][hiti]<<","<< processed->fFrameInfo.p[17][hiti]<<","<< processed->fFrameInfo.p[18][hiti]<<","<< processed->fFrameInfo.p[19][hiti]<clustersize*processed->clustersize]; +Int_t arraySort[processed->clustersize*processed->clustersize]; + for (Int_t clusteri=0; clustericlustersize*processed->clustersize; clusteri++) + { + array[clusteri]=processed->fFrameInfo.p[clusteri][hiti]; + } + for (Int_t clusteri=0; clustericlustersize*processed->clustersize; clusteri++) + { + cout<clustersize*processed->clustersize; clusteri++) + { + cout<clustersize*processed->clustersize; clusteri++) + { + cout<fNoiseTree->SetBranchAddress("noise", &noise, &noiseBranch); + + cout<<"Pixelnr"<fFrameInfo.pixel[hiti]<fNoiseTree->GetEntry(processed->fFrameInfo.pixel[hiti]);//Set &noise to the index of the seed pixel + Double_t cutValue=3*noise*TMath::Sqrt(clusterSizeForCut);//Calculate cutvalue, 3=3*sigma, Sqrt(clusterSizeForCut) counts for the noise of the summed pixel, in ideal case: Sqrt(noise_Pixel1^2+noise_Pixel2^2+noise_Pixel3^2+noise_Pixel4^2), so far simplified to the noise of seed pixel and assume the others have the same noise, therefore Sqrt(4) + cout<<"Cutwert"<cutValue) + cout<<"Yes"<fNoiseTree->GetEntry(clusteri); + cout<Fill(processed->fFrameInfo.p[12][hiti]); - + // sum histogram pixelSum = 0; notSeedSum = 0; @@ -624,6 +686,7 @@ Bool_t Run::binSeedSumVeto() } } } + gROOT->SetBatch(kTRUE); if (labbook.source.Contains("Fe")) histogram.posVeto=FitPerform(histogram.Veto, "gaus"); -- 2.43.0