23 #ifndef _TRestAxionMCPLOptics
24 #define _TRestAxionMCPLOptics
26 #include <TRestAxionOptics.h>
57 std::pair<Double_t, Double_t> result(0, 0);
A class to load optics response using MCPL files.
void PrintMetadata() override
Prints on screen the information about the metadata members of TRestAxionMCPLOptics.
Double_t GetExitPositionZ() override
It returns the exit Z-position defined by the optical axis.
std::string fInputMCPLFilename
The file containing the input particle list.
~TRestAxionMCPLOptics()
Default destructor.
void SetMirror() override
It must be implemented at the inherited optics, making use of fEntrancePosition.
void Initialize() override
Initialization of TRestAxionMCPLOptics members.
TRestAxionMCPLOptics()
Default constructor.
TPad * DrawMirrors() override
A method to draw the mirrors.
void InitFromConfigFile() override
Initialization of TRestAxionMCPLOptics field members through a RML file.
std::string fOutputMCPLFilename
The file containing the output particle list.
Double_t GetEntrancePositionZ() override
It returns the entrance Z-position defined by the optical axis.
std::pair< Double_t, Double_t > GetRadialLimits() override
It returns the radial limits at the entrance of the optics.
Int_t SecondMirrorReflection(const TVector3 &pos, const TVector3 &dir) override
It updates the values fSecondInteractionPosition and fExitDirection. Returns 0 if is not in region.
Int_t FirstMirrorReflection(const TVector3 &pos, const TVector3 &dir) override
It updates the values fFirstInteractionPosition and fMiddleDirection. Returns 0 if is not in region.
An abstract class to define common optics parameters and methods.
Int_t fCurrentMirror
During the photon propagation it keeps track of the active mirror shell.