REST-for-Physics  v2.3
Rare Event Searches ToolKit for Physics
TRestAxionAnalysisProcess.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 RestCore_TRestAxionAnalysisProcess
24#define RestCore_TRestAxionAnalysisProcess
25
26#include "TRestAxionEvent.h"
27#include "TRestEventProcess.h"
28
31 private:
34
36 TVector3 fAnalysisPosition = TVector3(0, 0, 0); //<
37
38 void Initialize() override;
39
40 void LoadDefaultConfig();
41
42 protected:
43 public:
44 RESTValue GetInputEvent() const override { return fAxionEvent; }
45 RESTValue GetOutputEvent() const override { return fAxionEvent; }
46
47 TRestEvent* ProcessEvent(TRestEvent* evInput) override;
48
49 void LoadConfig(std::string cfgFilename, std::string name = "");
50
52 void PrintMetadata() override {
54
55 EndPrintProcess();
56 }
57
59 const char* GetProcessName() const override { return "axionAnalysis"; }
60
61 // Constructor
63 TRestAxionAnalysisProcess(char* cfgFileName);
64
65 // Destructor
67
68 ClassDefOverride(TRestAxionAnalysisProcess, 1);
69};
70#endif
An analyis process to add TRestAxionEvent observables to the analysis tree.
TRestEvent * ProcessEvent(TRestEvent *evInput) override
The main processing event function.
void LoadDefaultConfig()
Function to load the default config in absence of RML input.
~TRestAxionAnalysisProcess()
Default destructor.
void LoadConfig(std::string cfgFilename, std::string name="")
Function to load the configuration from an external configuration file.
const char * GetProcessName() const override
Returns the name of this process.
TVector3 fAnalysisPosition
The analysis position in mm with regards to the sun at (0,0,-AU).
RESTValue GetOutputEvent() const override
Get pointer to output event. Must be implemented in the derived class.
void Initialize() override
Function to initialize input/output event members and define the section name.
void PrintMetadata() override
It prints out the process parameters stored in the metadata structure.
TRestAxionAnalysisProcess()
Default constructor.
TRestAxionEvent * fAxionEvent
A pointer to the specific TRestAxionEvent.
RESTValue GetInputEvent() const override
Get pointer to input event. Must be implemented in the derived class.
An event data class to define the parameters related to an axion particle.
A base class for any REST event process.
void BeginPrintProcess()
[name, cut range]
A base class for any REST event.
Definition: TRestEvent.h:38