23#ifndef RestCore_TRestRawSignalGeneralFitProcess
24#define RestCore_TRestRawSignalGeneralFitProcess
26#include <TRestRawSignalEvent.h>
30#include "TRestEventProcess.h"
43 TVector2 fFunctionRange = TVector2(0, 0);
44 std::string fFunction;
46 TF1* fFitFunc =
nullptr;
60 TF1* GetFunction() {
return fFitFunc; }
71 void LoadConfig(
const std::string& configFilename,
const std::string& name =
"");
76 RESTMetadata <<
"Function std::string: " << fFunction <<
RESTendl;
77 RESTMetadata <<
"Range: ( " << fFunctionRange.X() <<
" , " << fFunctionRange.Y() <<
" ) " <<
RESTendl;
82 const char* GetProcessName()
const override {
return "rawSignalGeneralFit"; }
A base class for any REST event process.
void BeginPrintProcess()
[name, cut range]
A base class for any REST event.
An event container for time rawdata signals with fixed length.
~TRestRawSignalGeneralFitProcess()
Default destructor.
void LoadDefaultConfig()
Function to load the default config in absence of RML input.
TRestEvent * ProcessEvent(TRestEvent *inputEvent) override
The main processing event function.
RESTValue GetOutputEvent() const override
Get pointer to output event. Must be implemented in the derived class.
void EndProcess() override
Function to include required actions after all events have been processed. This method will write the...
void Initialize() override
Function to initialize input/output event members and define the section name.
void PrintMetadata() override
Implemented it in the derived metadata class to print out specific metadata information.
RESTValue GetInputEvent() const override
Get pointer to input event. Must be implemented in the derived class.
void InitProcess() override
Process initialization.
void LoadConfig(const std::string &configFilename, const std::string &name="")
Function to load the configuration from an external configuration file.
TRestRawSignalGeneralFitProcess()
Default constructor.
TRestRawSignalEvent * fRawSignalEvent
A pointer to the specific TRestRawSignalEvent input.