REST-for-Physics  v2.3
Rare Event Searches ToolKit for Physics
TRestRawBiPoAnalysisProcess.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_TRestRawBiPoAnalysisProcess
24 #define RESTProc_TRestRawBiPoAnalysisProcess
25 
26 #include "TRestEventProcess.h"
27 #include "TRestRawSignalEvent.h"
28 
30  private:
33 
34  void Initialize() override;
35 
36  public:
37  RESTValue GetInputEvent() const override { return fAnaEvent; }
38  RESTValue GetOutputEvent() const override { return fAnaEvent; }
39 
40  void InitProcess() override;
41 
42  const char* GetProcessName() const override { return "BiPoAnalysis"; }
43 
44  TRestEvent* ProcessEvent(TRestEvent* eventInput) override;
45 
46  void EndProcess() override;
47 
48  void PrintMetadata() override {
50 
51  EndPrintProcess();
52  }
53 
56 
57  ClassDefOverride(TRestRawBiPoAnalysisProcess, 1);
58 };
59 #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
TRestRawSignalEvent * fAnaEvent
A pointer to the specific TRestRawSignalEvent input event.
~TRestRawBiPoAnalysisProcess()
Default destructor.
void InitProcess() override
Process initialization. Observable names can be re-interpreted here. Any action in the process requir...
void Initialize() override
Function to initialize input/output event members and define the section name.
TRestRawBiPoAnalysisProcess()
Default constructor.
RESTValue GetOutputEvent() const override
Get pointer to output event. Must be implemented in the derived class.
RESTValue GetInputEvent() const override
Get pointer to input event. Must be implemented in the derived class.
void EndProcess() override
Function to include required actions after all events have been processed.
TRestEvent * ProcessEvent(TRestEvent *eventInput) override
The main processing event function.
void PrintMetadata() override
Implemented it in the derived metadata class to print out specific metadata information.
An event container for time rawdata signals with fixed length.