REST-for-Physics  v2.3
Rare Event Searches ToolKit for Physics
TRestRawZeroSupressionToRawProcess.h
1/*************************************************************************
2 * This file is part of the REST software framework. *
3 * *
4 * Copyright (C) 2016 GIFNA/TREX (University of Zaragoza) *
5 * For more information see http://gifna.unizar.es/trex *
6 * *
7 * REST is free software: you can redistribute it and/or modify *
8 * it under the terms of the GNU General Public License as published by *
9 * the Free Software Foundation, either version 3 of the License, or *
10 * (at your option) any later version. *
11 * *
12 * REST is distributed in the hope that it will be useful, *
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of *
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
15 * GNU General Public License for more details. *
16 * *
17 * You should have a copy of the GNU General Public License along with *
18 * REST in $REST_PATH/LICENSE. *
19 * If not, see http://www.gnu.org/licenses/. *
20 * For the list of contributors see $REST_PATH/CREDITS. *
21 *************************************************************************/
22
23#ifndef RESTProc_TRestRawZeroSupressionToRawProcess
24#define RESTProc_TRestRawZeroSupressionToRawProcess
25
26#include "TRestEvent.h"
27#include "TRestEventProcess.h"
28#include "TRestRawSignalEvent.h"
29
32 private:
35
36 void Initialize() override;
37
38 public:
39 RESTValue GetInputEvent() const override { return fEvent; }
40 RESTValue GetOutputEvent() const override { return fEvent; }
41
42 void InitProcess() override;
43
44 const char* GetProcessName() const override { return "ZeroSupressionToRaw"; }
45
46 TRestEvent* ProcessEvent(TRestEvent* eventInput) override;
47
48 void EndProcess() override;
49
51 void PrintMetadata() override {
53
54 EndPrintProcess();
55 }
56
59
60 ClassDefOverride(TRestRawZeroSupressionToRawProcess, 1);
61};
62#endif
A base class for any REST event process.
void BeginPrintProcess()
[name, cut range]
A base class for any REST event.
Definition: TRestEvent.h:38
An event container for time rawdata signals with fixed length.
This process remove the offset on a zerosuppression acquired event.
RESTValue GetInputEvent() const override
Get pointer to input event. Must be implemented in the derived class.
void PrintMetadata() override
It prints out the process parameters stored in the metadata structure.
TRestRawSignalEvent * fEvent
Pointer to TRestRawSignalEvent input event.
TRestEvent * ProcessEvent(TRestEvent *eventInput) override
The main processing event function.
void EndProcess() override
Function to include required actions after all events have been processed.
RESTValue GetOutputEvent() const override
Get pointer to output event. Must be implemented in the derived class.
void InitProcess() override
Process initialization.
void Initialize() override
Function to initialize input/output event members and define the section name.