Calculations

calculation of the geometrical efficiency can be done via a call to the function geoEff.

# GeoEfficiency.geoEffFunction.

geoEff(detector::Detector, aPnt::Point, SrcRadius::Real = 0.0, SrcLength::Real = 0.0)::Float64

return the geometrical efficiency for a source (point, disk or cylinder) with the detector detector.

Arguments

Throw

!!! warning the point height of aPnt is measured differently for different detectors types. for the details, please refer to each detector entry.

!!! note * if SrcLength equal to zero; the method return Geometrical Efficiency of a disc source of Radius = SrcRadius and center at the point aPNT. * if both SrcRadius and SrcLength equal to zero; the method returns the Geometrical Efficiency of a point source at the anchoring point.

Example

julia> using GeoEfficiency

julia> geoEff(CylDetector(2.0), Point(0.0), 1.0, 2.5)
0.2923777934922748
julia> using GeoEfficiency

julia> newDet = BoreDetector(2.0, 3.0, 1.5);

julia> geoEff(newDet, Point(0.0), 1.0, 2.5)
0.5678174038944723
julia> using GeoEfficiency

julia> newDet = WellDetector(2.0, 3.0, 1.5, 1.0);

julia> geoEff(newDet, Point(0.0), 1.0, 2.5)
0.4669614527701105

source

!!! note "Information" the function has another method geoEff() that prompt the user to input a source and a detector via the console.