REST-for-Physics  v2.3
Rare Event Searches ToolKit for Physics
TRestAxionOpticsProcess.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_TRestAxionOpticsProcess
24#define RestCore_TRestAxionOpticsProcess
25
26#include "TRestAxionEvent.h"
27#include "TRestAxionEventProcess.h"
28#include "TRestAxionOptics.h"
29
32 private:
35
36 void Initialize() override;
37
38 void LoadDefaultConfig();
39
40 protected:
41 public:
42 void InitProcess() override;
43
44 TRestEvent* ProcessEvent(TRestEvent* evInput) override;
45
46 void LoadConfig(std::string cfgFilename, std::string name = "");
47
49 const char* GetProcessName() const override { return "axionOptics"; }
50
51 // Constructor
53 TRestAxionOpticsProcess(char* cfgFileName);
54
55 // Destructor
57
58 ClassDefOverride(TRestAxionOpticsProcess, 2);
59};
60#endif
A base class for any axion event process. Defines position, rotation and component displacement.
A process to introduce the response from optics in the axion signal generation chain.
void Initialize() override
Function to initialize input/output event members and define the section name.
void LoadDefaultConfig()
Function to load the default config in absence of RML input.
TRestEvent * ProcessEvent(TRestEvent *evInput) override
The main processing event function.
TRestAxionOpticsProcess()
Default constructor.
const char * GetProcessName() const override
Returns the name of this process.
void InitProcess() override
Process initialization. Data members that require initialization just before start processing should ...
TRestAxionOptics * fOptics
A pointer to the optics description defined inside TRestRun.
void LoadConfig(std::string cfgFilename, std::string name="")
Function to load the configuration from an external configuration file.
~TRestAxionOpticsProcess()
Default destructor.
An abstract class to define common optics parameters and methods.
A base class for any REST event.
Definition: TRestEvent.h:38