42#include "TRestAxionTransmissionProcess.h"
78 SetName(this->ClassName());
79 SetTitle(
"Default config");
111 RESTDebug <<
"Entering ... TRestAxionGeneratorProcess::InitProcess" <<
RESTendl;
113 RegisterAllObservables();
120 RESTError <<
"TRestAxionTransmissionProcess. Window definition with name : " << wName
141 Double_t transmission = 1;
142 Double_t x = newPos.X();
143 Double_t y = newPos.Y();
144 Double_t z = newPos.Z();
147 RESTDebug <<
"Particle position to evaluate window transmission. " <<
RESTendl;
148 RESTDebug <<
"X : " << x <<
" Y: " << y <<
" Z: " << z <<
RESTendl;
151 transmission *= window->GetTransmission(en, x, y);
153 RESTDebug <<
"Transmission: " << transmission <<
RESTendl;
173 TiXmlElement* windowDefinition =
GetElement(
"window");
174 while (windowDefinition) {
TRestAxionEvent * fAxionEvent
A pointer to the specific TRestAxionEvent.
An event data class to define the parameters related to an axion particle.
TVector3 GetPosition()
It keeps track of efficiency introduced at different helioscope components.
A process to include photon transmission using a combination of TRestAxionXrayWindow definitions.
TRestEvent * ProcessEvent(TRestEvent *evInput) override
The main processing event function.
std::vector< TRestAxionXrayWindow * > fXrayWindows
A list with pointers to the windows metadata descriptions.
void InitProcess() override
Process initialization. Data members that require initialization just before start processing should ...
TRestAxionTransmissionProcess()
Default constructor.
std::vector< std::string > fWindowNames
The names of the metadata TRestAxionXrayWindow that will be combined for transmission.
~TRestAxionTransmissionProcess()
Default destructor.
void InitFromConfigFile() override
Function reading input parameters from the RML TRestAxionTransmissionProcess metadata section.
void LoadDefaultConfig()
Function to load the default config in absence of RML input.
void Initialize() override
Function to initialize input/output event members and define the section name.
void LoadConfig(std::string cfgFilename, std::string name="")
Function to load the configuration from an external configuration file.
A metadata class to create x-ray transmission window definitions.
virtual void InitFromConfigFile() override
To make settings from rml file. This method must be implemented in the derived class.
T * GetMetadata()
Get a metadata object from the host TRestRun.
void SetObservableValue(const std::string &name, const T &value)
Set observable value for AnalysisTree.
A base class for any REST event.
@ REST_Extreme
show everything
@ REST_Debug
+show the defined debug messages
TVector3 MoveToPlane(const TVector3 &pos, const TVector3 &dir, const TVector3 &n, const TVector3 &a)
This method will translate the vector with direction dir starting at position pos to the plane define...
Int_t GetChar(std::string hint="Press a KEY to continue ...")
Helps to pause the program, printing a message before pausing.