23 #ifndef RestCore_TRestRawSignalShapingProcess
24 #define RestCore_TRestRawSignalShapingProcess
26 #include <TRestRawSignalEvent.h>
28 #include "TRestEventProcess.h"
44 TString fResponseFilename;
54 inline TString GetShapingType()
const {
return fShapingType; }
55 inline void SetShapingType(
const TString& samplingType) {
fShapingType = samplingType; }
57 inline Double_t GetShapingTime()
const {
return fShapingTime; }
58 inline void SetShapingTime(Double_t shapingTime) {
fShapingTime = shapingTime; }
60 inline Double_t GetShapingGain()
const {
return fShapingGain; }
61 inline void SetShapingGain(Double_t shapingGain) {
fShapingGain = shapingGain; }
70 void LoadConfig(
const std::string& configFilename,
const std::string& name =
"");
80 RESTMetadata <<
"Response file : " << fResponseFilename <<
RESTendl;
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.
Double_t fShapingTime
The characteristic time of the shaping.
void Initialize() override
Function to initialize input/output event members and define the section name.
TRestRawSignalEvent * fOutputSignalEvent
A pointer to the specific TRestRawSignalEvent output.
TRestEventProcess * Maker()
Returns a new instance of this class.
TRestEvent * ProcessEvent(TRestEvent *inputEvent) override
The main processing event function.
void PrintMetadata() override
It prints out the process parameters stored in the metadata structure.
void EndProcess() override
Function to include required actions after all events have been processed.
TRestRawSignalEvent * fInputSignalEvent
A pointer to the specific TRestRawSignalEvent input.
RESTValue GetOutputEvent() const override
Get pointer to output event. Must be implemented in the derived class.
TString fShapingType
Types are : gaus, shaper, shaperSin, responseFile.
~TRestRawSignalShapingProcess()
Default destructor.
void LoadConfig(const std::string &configFilename, const std::string &name="")
Function to load the configuration from an external configuration file.
TRestRawSignalShapingProcess()
Default constructor.
void InitProcess() override
Process initialization. Observable names are interpreted and auxiliar observable members,...
Double_t fShapingGain
A value used to scale the input signal.
const char * GetProcessName() const override
Returns the name of this process.
RESTValue GetInputEvent() const override
Get pointer to input event. Must be implemented in the derived class.