PointSourceSensitivityOptimizer#

class ctapipe.irf.optimize.PointSourceSensitivityOptimizer(**kwargs: Any)[source]#

Bases: CutOptimizerBase

Optimizes a G/H cut for maximum point source sensitivity and calculates a percentile cut on theta.

Attributes Summary

alpha

Size ratio of on region / off region.

classes

gh_cut_efficiency_step

Stepsize used for scanning after optimal gammaness cut

initial_gh_cut_efficency

Start value of gamma efficiency before optimization

max_background_fov_offset

Maximum distance from the fov center for background events to be taken into account

max_gh_cut_efficiency

Maximum gamma efficiency requested

min_background_fov_offset

Minimum distance from the fov center for background events to be taken into account

needs_background

Methods Summary

__call__(events, quality_query, clf_prefix)

Optimize G/H (and optionally spatial selection) cuts and fill them in an OptimizationResult.

Attributes Documentation

alpha#

Size ratio of on region / off region.

classes = [<class 'ctapipe.irf.optimize.ThetaPercentileCutCalculator'>]#
gh_cut_efficiency_step#

Stepsize used for scanning after optimal gammaness cut

initial_gh_cut_efficency#

Start value of gamma efficiency before optimization

max_background_fov_offset#

Maximum distance from the fov center for background events to be taken into account

max_gh_cut_efficiency#

Maximum gamma efficiency requested

min_background_fov_offset#

Minimum distance from the fov center for background events to be taken into account

needs_background = True#

Methods Documentation

__call__(events: dict[str, QTable], quality_query: EventQualityQuery, clf_prefix: str) OptimizationResult[source]#

Optimize G/H (and optionally spatial selection) cuts and fill them in an OptimizationResult.

Parameters:
events: dict[str, astropy.table.QTable]

Dictionary containing tables of events used for calculating cuts. This has to include “signal” events and can include “background” events.

quality_query: ctapipe.irf.EventPreprocessor

ctapipe.core.QualityQuery subclass containing preselection criteria for events.

clf_prefix: str

Prefix of the output from the G/H classifier for which the cut will be optimized.