PointSourceSensitivityOptimizer#

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

Bases: PointSourceSensitivityOptimizerBase

Optimize cuts for best point-source sensitivity.

This optimizer employes a brute-force grid search over gammaness, theta and event-multiplicity cuts in each bin of reconstructed energy using pyirf.cut_optimization.optimize_gh_cut.

Attributes Summary

max_theta_cut_efficiency

Maximum gamma efficiency of the theta cut requested

multiplicity_cuts

Event-multiplicity cuts used for scanning after optimal cut

theta_cut_efficiency_step

Efficiency-stepsize used for scanning after optimal theta cut

theta_max_angle

Largest angular cut value allowed (None means no cut)

theta_min_angle

Smallest angular cut value allowed (None means no cut)

Methods Summary

__call__(events, quality_query, clf_prefix)

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

Attributes Documentation

max_theta_cut_efficiency#

Maximum gamma efficiency of the theta cut requested

multiplicity_cuts#

Event-multiplicity cuts used for scanning after optimal cut

theta_cut_efficiency_step#

Efficiency-stepsize used for scanning after optimal theta cut

theta_max_angle#

Largest angular cut value allowed (None means no cut)

theta_min_angle#

Smallest angular cut value allowed (None means no cut)

Methods Documentation

__call__(events: dict[str, QTable], quality_query: DL2EventQualityQuery, 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.io.DL2EventPreprocessor

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.