From 917b7f74b80f50de6c2abd7845bec2c851099692 Mon Sep 17 00:00:00 2001 From: Vratislav Chudoba Date: Thu, 9 Feb 2017 14:58:52 +0300 Subject: [PATCH] Way to smoothing. --- dataClasses/AEvent.cpp | 11 +++++++++-- dataClasses/AEvent.h | 2 +- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/dataClasses/AEvent.cpp b/dataClasses/AEvent.cpp index 86c24aa..8db275c 100644 --- a/dataClasses/AEvent.cpp +++ b/dataClasses/AEvent.cpp @@ -28,7 +28,7 @@ AEvent::~AEvent() { } -void AEvent::ProcessEvent() { +void AEvent::ProcessEvent(Bool_t bSmooth) { if (fInputEvent == NULL) { Warning("AEvent::ProcessEvent", "Input event wasn't set. Function won't be processed."); @@ -51,6 +51,11 @@ void AEvent::ProcessEvent() { SetMaxAmplitudes(); SetGraphs(); + + if (bSmooth == kTRUE) { + SmoothGraphs(); + } + FindFrontProperties(); SetLED(); // SetGraphs(); @@ -59,7 +64,7 @@ void AEvent::ProcessEvent() { SetChargeLED(); SetChargeTF(); - SmoothGraphs(); +// SmoothGraphs(); return; @@ -158,6 +163,8 @@ void AEvent::SmoothGraphs() { } + fGraphSignal->Clone + return; } diff --git a/dataClasses/AEvent.h b/dataClasses/AEvent.h index 92b735b..6f6b36a 100644 --- a/dataClasses/AEvent.h +++ b/dataClasses/AEvent.h @@ -92,7 +92,7 @@ public: Double_t GetOnefAmpPos(Int_t i); - void ProcessEvent(); + void ProcessEvent(Bool_t bSmooth = kFALSE); void SetInputEvent(RawEvent** event); void SetCFratio(Double_t ratio) { fCFratio = ratio; }; -- 2.18.1