PercentileCuts#
- class ctapipe.irf.optimize.PercentileCuts(**kwargs: Any)[source]#
 Bases:
CutOptimizerBaseCalculates G/H separation cut based on the percentile of signal events to keep in each bin. Optionally also calculates a percentile cut on theta based on the signal events surviving this G/H cut.
Attributes Summary
Methods Summary
__call__(events, quality_query, clf_prefix)Optimize G/H (and optionally spatial selection) cuts and fill them in an
OptimizationResult.Attributes Documentation
- classes = [<class 'ctapipe.irf.optimize.GhPercentileCutCalculator'>, <class 'ctapipe.irf.optimize.ThetaPercentileCutCalculator'>]#
 
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.QualityQuerysubclass containing preselection criteria for events.- clf_prefix: str
 Prefix of the output from the G/H classifier for which the cut will be optimized.