diff --git a/convertRawToAnalyzed/analyse.cpp b/convertRawToAnalyzed/analyse.cpp index 10361a1cf103731a1dd883241c8cb0c004de43b2..35e99dfbb29380a8f5a5b3bf3a10fb155bc40f6f 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 f0e745ceded412869e5b9a9cc8c24ef41d62d1e9..54e7aec6406a2908661c0d6b44a17cf9fd42baa8 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; } }