REST-for-Physics  v2.3
Rare Event Searches ToolKit for Physics
TRestRawZeroSupressionToRawProcess.cxx
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
45
46#include "TRestRawZeroSupressionToRawProcess.h"
47
49
54
59
65 SetSectionName(this->ClassName());
66 SetLibraryVersion(LIBRARY_VERSION);
67 fEvent = nullptr;
68}
69
74
79 fEvent = (TRestRawSignalEvent*)evInput;
80 for (int n = 0; n < fEvent->GetNumberOfSignals(); n++) {
81 TRestRawSignal* rawSignal = fEvent->GetSignal(n);
82 rawSignal->ZeroSuppressionToRaw();
83 }
84
85 return fEvent;
86}
87
A base class for any REST event.
Definition: TRestEvent.h:38
void SetLibraryVersion(TString version)
Set the library version of this metadata class.
void SetSectionName(std::string sName)
set the section name, clear the section content
An event container for time rawdata signals with fixed length.
It defines a Short_t array with a physical parameter that evolves in time using a fixed time bin.
void ZeroSuppressionToRaw()
This method transforms zero suppression raw data into a raw data event using the firs.
This process remove the offset on a zerosuppression acquired event.
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.
void InitProcess() override
Process initialization.
void Initialize() override
Function to initialize input/output event members and define the section name.