|
Open PaperOpt
|
#include <DetectorArsGlobe.h>


Public Member Functions | |
| DetectorArsGlobe (int _reftra, int _apt_type, float _distance, int _theta_nbr, int _phi_nbr, bool _accurate, int nbr_lambda, Detector *_el) | |
| virtual | ~DetectorArsGlobe () |
| int | Process (WavePacket &wp, int updown, int internal) const |
| int | WriteResults2 (std::vector< double > power_inc, IO::Output &rOutput) const |
| DetectorArsGlobe::DetectorArsGlobe | ( | int | _reftra, |
| int | _apt_type, | ||
| float | _distance, | ||
| int | _theta_nbr, | ||
| int | _phi_nbr, | ||
| bool | _accurate, | ||
| int | nbr_lambda, | ||
| Detector * | _el | ||
| ) |
New Constructor. /**
| _reftra | 1 reflectance or 0 transmittance. |
| _apt_type | |
| _distance | Distance to the paper surface. |
| _theta_nbr | Angle which set resolution |
| _accurate | Represents accruracy in actual intersection |
| _phi_nbr | Number of resolution. |
| el | pointer to the previous detector. |
Initailize the detector
| DetectorArsGlobe::~DetectorArsGlobe | ( | ) | [virtual] |
Destructor.
| int DetectorArsGlobe::Process | ( | WavePacket & | wp, |
| int | updown, | ||
| int | internal | ||
| ) | const [virtual] |
updates the counter of the aperture in case of hit by wp and find the right aperture.
| wp | Instance of wavepacket. |
| up_down | . |
Abort if the wp is of a type not to be registered
Phi and theta of wp
If accurate, use the actual intersection with the sphere
If not accurate, use the direction cosines
We work with positive angles
Find the right aperture
Reimplemented from Detector.

| int DetectorArsGlobe::WriteResults2 | ( | std::vector< double > | power_inc, |
| IO::Output & | rOutput | ||
| ) | const [virtual] |
Writes results as XML to the results file in rOutput.
| rOutput | reference to an Output object. |
| power_inc | number of wavepackets that don't have error state. |
Reimplemented from Detector.
