REST-for-Physics  v2.3
Rare Event Searches ToolKit for Physics
TRestRawBiPoAnalysisProcess.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
43
44#include "TRestRawBiPoAnalysisProcess.h"
45
46using namespace std;
47
49
54
59
65 SetSectionName(this->ClassName());
66 SetLibraryVersion(LIBRARY_VERSION);
67 fAnaEvent = NULL;
68
69 // Initialize here the values of class data members if needed
70}
71
78 // TRestRawToSignalProcess::InitProcess();
79
80 // fEventCounter = 0;
81}
82
88
89 // Write here the main logic of process: TRestRawBiPoAnalysisProcess
90 // Read data from input event, write data to output event, and save observables to tree
91
92 Int_t t1t2_BiPo = fAnaEvent->GetAuxiliar();
93 SetObservableValue("t1t2", t1t2_BiPo);
94
95 return fAnaEvent;
96}
97
103 // Write here the jobs to do when all the events are processed
104}
void SetObservableValue(const std::string &name, const T &value)
Set observable value for AnalysisTree.
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
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.
void EndProcess() override
Function to include required actions after all events have been processed.
TRestEvent * ProcessEvent(TRestEvent *eventInput) override
The main processing event function.
An event container for time rawdata signals with fixed length.