REST-for-Physics  v2.3
Rare Event Searches ToolKit for Physics
TRestAxionEventProcess.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_TRestAxionEventProcess
24#define RestCore_TRestAxionEventProcess
25
26#include "TRestAxionEvent.h"
27#include "TRestEventProcess.h"
28
31 private:
33 TVector3 fPosition = TVector3(0, 0, 0); //<
34
36 Double_t fInternalYaw = 0; //<
37
39 Double_t fInternalPitch = 0; //<
40
42 TVector3 fExternalRotationCenter = TVector3(0, 0, 0); //<
43
45 Double_t fExternalYaw = 0; //<
46
48 Double_t fExternalPitch = 0; //<
49
51 Bool_t fLocalAxis = true; //<
52
53 protected:
56
57 void BeginPrintProcess();
58 void EndPrintProcess();
59
60 TVector3 GetCenter() const { return fPosition; }
61
62 public:
63 RESTValue GetInputEvent() const override { return fAxionEvent; }
64 RESTValue GetOutputEvent() const override { return fAxionEvent; }
65
66 virtual void InitProcess() override {}
67
69 virtual void PrintMetadata() override {
71
73 }
74
76 virtual void BeginOfEventProcess(TRestEvent* evInput = nullptr) override;
77
79 virtual void EndOfEventProcess(TRestEvent* evInput = nullptr) override;
80
83
84 ClassDefOverride(TRestAxionEventProcess, 3);
85};
86#endif
A base class for any axion event process. Defines position, rotation and component displacement.
Bool_t fLocalAxis
If enabled it skips the end rotation that recovers the original axion trajectory direction.
RESTValue GetOutputEvent() const override
Get pointer to output event. Must be implemented in the derived class.
Double_t fInternalYaw
The rotation angle with respect to the Y-axis.
TVector3 fExternalRotationCenter
The position (different than the center of the object) around which the rotation will be applied.
Double_t fInternalPitch
The rotation angle with respect to X-axis.
Double_t fExternalPitch
The rotation angle around CenterSetup with respect to X-axis.
void BeginPrintProcess()
Pre-defined printer, can be used at the beginning in the implementation of PrintMetadata()
TRestAxionEvent * fAxionEvent
A pointer to the specific TRestAxionEvent.
Double_t fExternalYaw
The rotation angle around CenterSetup with respect to the Y-axis.
virtual void PrintMetadata() override
It prints out the process parameters stored in the metadata structure.
RESTValue GetInputEvent() const override
Get pointer to input event. Must be implemented in the derived class.
virtual void InitProcess() override
To be executed at the beginning of the run (outside event loop)
virtual void EndOfEventProcess(TRestEvent *evInput=nullptr) override
End of event process. Called directly after ProcessEvent()
TVector3 fPosition
The position of the component around which the rotation will be applied.
virtual void BeginOfEventProcess(TRestEvent *evInput=nullptr) override
Begin of event process, preparation work. Called right before ProcessEvent()
void EndPrintProcess()
Adds the footer for PrintMetadata.
An event data class to define the parameters related to an axion particle.
A base class for any REST event process.
A base class for any REST event.
Definition: TRestEvent.h:38