Open PaperOpt
DetectorArsGlobe Class Reference

#include <DetectorArsGlobe.h>

Inheritance diagram for DetectorArsGlobe:
Collaboration diagram for DetectorArsGlobe:

List of all members.

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

Constructor & Destructor Documentation

DetectorArsGlobe::DetectorArsGlobe ( int  _reftra,
int  _apt_type,
float  _distance,
int  _theta_nbr,
int  _phi_nbr,
bool  _accurate,
int  nbr_lambda,
Detector _el 
)

New Constructor. /**

Parameters:
_reftra1 reflectance or 0 transmittance.
_apt_type
_distanceDistance to the paper surface.
_theta_nbrAngle which set resolution
_accurateRepresents accruracy in actual intersection
_phi_nbrNumber of resolution.
elpointer to the previous detector.

Initailize the detector

DetectorArsGlobe::~DetectorArsGlobe ( ) [virtual]

Destructor.


Member Function Documentation

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.

Parameters:
wpInstance 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.

Here is the call graph for this function:

int DetectorArsGlobe::WriteResults2 ( std::vector< double >  power_inc,
IO::Output rOutput 
) const [virtual]

Writes results as XML to the results file in rOutput.

Parameters:
rOutputreference to an Output object.
power_incnumber of wavepackets that don't have error state.

Reimplemented from Detector.

Here is the call graph for this function:


The documentation for this class was generated from the following files: