BraggPeakAnalysis#

class georges.ptw.BraggPeakAnalysis(bp: DataFrame, method: str, low_dose=1, high_dose=70)[source]#

Bases: object

This class processes a normalized 1D depth dose profile, or a pristine Bragg peak, to extract key information such as the maximum dose position, the distal range at a given percentage of the maximum, and the distal fall-off (DFO). The user must provide both the dose data and the corresponding positions in depth.

Methods Summary

compute_dfo_80_20()

compute_dfo_90_10()

compute_distal_fall_off()

compute_percentage(x)

fit_bp()

This function fits a Bragg peak using a 8th order polynom.

fitting_function(x)

get_bp_interval()

get_coefficients()

get_distal_interval()

get_maximum()

get_r10()

get_r20()

get_r80()

get_r90()

get_xrange(val)

Methods Documentation

compute_dfo_80_20() float[source]#
compute_dfo_90_10() float[source]#
compute_distal_fall_off() List[float][source]#
compute_percentage(x)[source]#
fit_bp()[source]#

This function fits a Bragg peak using a 8th order polynom. Based on reference xxx.

Args: Returns:

fitting_function(x)[source]#
get_bp_interval()[source]#
get_coefficients() array[source]#
get_distal_interval()[source]#
get_maximum() float[source]#
get_r10() float[source]#
get_r20() float[source]#
get_r80() float[source]#
get_r90() float[source]#
get_xrange(val)[source]#