GhPercentileCutCalculator#

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

Bases: Component

Computes a percentile cut on gammaness.

Attributes Summary

min_counts

Minimum number of events in a bin to attempt to find a cut value

smoothing

When given, the width (in units of bins) of gaussian smoothing applied

target_percentile

Percent of events in each energy bin to keep after the G/H cut

Methods Summary

__call__(gammaness, reco_energy, ...)

Call self as a function.

Attributes Documentation

min_counts#

Minimum number of events in a bin to attempt to find a cut value

smoothing#

When given, the width (in units of bins) of gaussian smoothing applied

target_percentile#

Percent of events in each energy bin to keep after the G/H cut

Methods Documentation

__call__(gammaness, reco_energy, reco_energy_bins)[source]#

Call self as a function.