diff --git a/dataClasses/AEvent.cpp b/dataClasses/AEvent.cpp index 86c24aa8d46afe4bb9f7d307aa98e51d2a538755..8db275c6618eaedf566a3eb07396f644f28be8e4 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 92b735b7c83825c40e574aa38ed2d870afc9d73c..6f6b36a15a6a520c002e9dcc460816b9bc23dcd7 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; };