Calculations
calculation of the geometrical efficiency can be done via a call to the function geoEff.
GeoEfficiency.geoEff — Function.geoEff(detector::Detector, aPnt::Point, SrcRadius::Real = 0.0, SrcLength::Real = 0.0)::Float64return the geometrical efficiency for a source (point, disk or cylinder) with the detector detector.
Arguments
detectorcan be any of the leaf detectors types (CylDetector,BoreDetector,WellDetector).aPNT: a point represent the anchoring point of the source.SrcRadius: Radius of the source.srcHeight: the height of an upright cylinder source.
Throw
- an
InValidGeometryif the point location is invalide. - an
NotImplementedErrorif source-to-detector geometry not supported yet.
Warning
the point height of aPnt is measured differently for different detectors types. for the details, please refer to each detector entry.
Note
- if
SrcLengthequal tozero; the method return Geometrical Efficiency of a disc source of Radius =SrcRadiusand center at the pointaPNT. - if both
SrcRadiusandSrcLengthequal tozero; the method returns the Geometrical Efficiency of a point source at the anchoring point.
Example
- to obtain the efficiency of a
cylindricaldetector of crystal radius2.0cm for axial source cylinder of radius1.0cm and height2.5cm on the detector surface.
julia> using GeoEfficiency
julia> geoEff(CylDetector(2.0), Point(0.0), 1.0, 2.5)
0.2923777934922748- to obtain the efficiency for a
bore-holedetector of crystal radius of2.0and height of3.0with hole radius of1.5cm for axial source cylinder of radius1.0cm and height2.5cm starting from detector center.
julia> using GeoEfficiency
julia> newDet = BoreDetector(2.0, 3.0, 1.5);
julia> geoEff(newDet, Point(0.0), 1.0, 2.5)
0.5678174038944723- to obtain the efficiency for a
well-typedetector of crystal radius of2.0cm and height3.0cm with hole radius of1.5cm and depth of1.0cm for axial source cylinder of radius1.0cm and height2.5cm at the hole surface.
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.4669614527701105Information
the function has another method geoEff() that prompt the user to input a source and a detector via the console.