Commit 917b7f74 authored by Vratislav Chudoba's avatar Vratislav Chudoba

Way to smoothing.

parent 76a5422f
...@@ -28,7 +28,7 @@ AEvent::~AEvent() { ...@@ -28,7 +28,7 @@ AEvent::~AEvent() {
} }
void AEvent::ProcessEvent() { void AEvent::ProcessEvent(Bool_t bSmooth) {
if (fInputEvent == NULL) { if (fInputEvent == NULL) {
Warning("AEvent::ProcessEvent", "Input event wasn't set. Function won't be processed."); Warning("AEvent::ProcessEvent", "Input event wasn't set. Function won't be processed.");
...@@ -51,6 +51,11 @@ void AEvent::ProcessEvent() { ...@@ -51,6 +51,11 @@ void AEvent::ProcessEvent() {
SetMaxAmplitudes(); SetMaxAmplitudes();
SetGraphs(); SetGraphs();
if (bSmooth == kTRUE) {
SmoothGraphs();
}
FindFrontProperties(); FindFrontProperties();
SetLED(); SetLED();
// SetGraphs(); // SetGraphs();
...@@ -59,7 +64,7 @@ void AEvent::ProcessEvent() { ...@@ -59,7 +64,7 @@ void AEvent::ProcessEvent() {
SetChargeLED(); SetChargeLED();
SetChargeTF(); SetChargeTF();
SmoothGraphs(); // SmoothGraphs();
return; return;
...@@ -158,6 +163,8 @@ void AEvent::SmoothGraphs() { ...@@ -158,6 +163,8 @@ void AEvent::SmoothGraphs() {
} }
fGraphSignal->Clone
return; return;
} }
......
...@@ -92,7 +92,7 @@ public: ...@@ -92,7 +92,7 @@ public:
Double_t GetOnefAmpPos(Int_t i); Double_t GetOnefAmpPos(Int_t i);
void ProcessEvent(); void ProcessEvent(Bool_t bSmooth = kFALSE);
void SetInputEvent(RawEvent** event); void SetInputEvent(RawEvent** event);
void SetCFratio(Double_t ratio) { fCFratio = ratio; }; void SetCFratio(Double_t ratio) { fCFratio = ratio; };
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment