From 1b0fa3c67b5fa5e904b0b87ef86fd640fd937895 Mon Sep 17 00:00:00 2001 From: Vratislav Chudoba Date: Thu, 19 Jan 2017 17:13:26 +0300 Subject: [PATCH] Unimportant fixes. --- convertRawToAnalyzed/analyse.cpp | 2 +- dataClasses/AEvent.cpp | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/convertRawToAnalyzed/analyse.cpp b/convertRawToAnalyzed/analyse.cpp index 10361a1..35e99df 100644 --- a/convertRawToAnalyzed/analyse.cpp +++ b/convertRawToAnalyzed/analyse.cpp @@ -16,7 +16,7 @@ int main(int argc, char* argv[]) //to be extracted from the source as parameters const Int_t noBranches = 4; const Double_t cfRatio = 0.7; - const Int_t cfTD = 3; + const Double_t cfTD = 3; Double_t noiseMin = 5; Double_t noiseMax = 25; diff --git a/dataClasses/AEvent.cpp b/dataClasses/AEvent.cpp index f0e745c..54e7aec 100644 --- a/dataClasses/AEvent.cpp +++ b/dataClasses/AEvent.cpp @@ -64,7 +64,7 @@ void AEvent::ProcessEvent() { SetGraphs(); FindFrontProperties(); - SetGraphs(); +// SetGraphs(); SetCFD(); SetChargeCFD(); @@ -132,14 +132,14 @@ void AEvent::SetGraphs() { void AEvent::SetCFD() { - Double_t level = 100.; //is necessary to find cfd amplitude value closest to zero +// Double_t level = 100.; //is necessary to find cfd amplitude value closest to zero Double_t time = 0; fGraphCFD->Set(fNPoints); //working variables Double_t maxCFD = 0., minCFD = 0.; Double_t TmaxCFD = 0., TminCFD = 0.; - Int_t imax = 0, imin = 0; +// Int_t imax = 0, imin = 0; const Double_t timeStep = 0.05; for (Int_t i=0; i maxCFD) { maxCFD = fAmpCFD[i]; TmaxCFD = fTime[i]; - imax = i; +// imax = i; } //point for min CFD amplitude if(fAmpCFD[i] < minCFD) { minCFD = fAmpCFD[i]; TminCFD = fTime[i]; - imin = i; +// imin = i; } } -- 2.18.1