46 #include "TRestAxionTransportProcess.h"
70 LoadConfig(cfgFileName);
82 SetName(this->ClassName());
83 SetTitle(
"Default config");
97 if (LoadConfigFromFile(cfgFilename, name)) LoadDefaultConfig();
104 SetSectionName(this->ClassName());
105 SetLibraryVersion(LIBRARY_VERSION);
115 RESTDebug <<
"Entering ... TRestAxionGeneratorProcess::InitProcess" << RESTendl;
124 TVector3 inPos = fAxionEvent->GetPosition();
125 TVector3 inDir = fAxionEvent->GetDirection();
127 if ((inPos.Z() - fZPosition) * inDir.Z() >= 0) {
128 RESTWarning <<
"TRestAxionTransportProcess::ProcessEvent (" << GetName()
129 <<
"). Not appropiate particle direction to reach Z=" << fZPosition << RESTendl;
130 RESTWarning <<
"Axion position. Z:" << inPos.Z() <<
" direction Z: " << inDir.Z() << RESTendl;
136 TVector3 newPosition =
139 fAxionEvent->SetPosition(newPosition);
142 fAxionEvent->PrintEvent();
An event data class to define the parameters related to an axion particle.
A process to transport the axion to a given z-position without changing direction.
void LoadConfig(std::string cfgFilename, std::string name="")
Function to load the configuration from an external configuration file.
~TRestAxionTransportProcess()
Default destructor.
void LoadDefaultConfig()
Function to load the default config in absence of RML input.
TRestAxionTransportProcess()
Default constructor.
void Initialize() override
Function to initialize input/output event members and define the section name.
TRestEvent * ProcessEvent(TRestEvent *evInput) override
The main processing event function.
void InitProcess() override
Process initialization. Data members that require initialization just before start processing should ...
A base class for any REST event.
virtual void PrintEvent() const
@ 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.