pymchelper.writers.trip98ddd module

class pymchelper.writers.trip98ddd.DebuggingPlots(base_data)[source]

Bases: object

Debugging plots, mostly needed to inspect if Gaussian function fitting was successful

base_data(zmax_cm, threshold, logy=False)[source]
static fit_summary(fit_results)[source]
map2d(zlog=False)[source]
class pymchelper.writers.trip98ddd.FitResultCollection(n)[source]

Bases: object

Fit results collection (along Z axis)

class pymchelper.writers.trip98ddd.FittingMethods[source]

Bases: object

Functions describing Gaussian functions modelling lateral dose distributions

classmethod gauss2_MeV_g(x_cm, amp_MeV_cm_g, sigma1_cm, weight, sigma2_add_cm)[source]
classmethod gauss2_MeV_g_1st(x_cm, amp_MeV_cm_g, sigma1_cm, weight, sigma2_add_cm)[source]
classmethod gauss2_MeV_g_2nd(x_cm, amp_MeV_cm_g, sigma1_cm, weight, sigma2_add_cm)[source]
classmethod gauss2_r_MeV_cm_g(x_cm, amp_MeV_cm_g, sigma1_cm, weight, sigma2_add_cm)[source]
classmethod gauss_MeV_g(x_cm, amp_MeV_cm_g, sigma_cm)[source]
classmethod gauss_r_MeV_cm_g(x_cm, amp_MeV_cm_g, sigma_cm)[source]
class pymchelper.writers.trip98ddd.LateralDepthDoseProfile(r_cm_1d, z_cm_1d, dose_MeV_g_2d, dose_error_MeV_g_2d, r_step_cm=None, z_step_cm=None)[source]

Bases: object

Base data for fitting

static cumulative_dose(dose_1d)[source]
static cumulative_dose_left(cumsum)[source]
class pymchelper.writers.trip98ddd.TRiP98DDDWriter(filename, options)[source]

Bases: object

Writer for TRiP98 DDD files. File format is described here: http://bio.gsi.de/DOCS/TRiP98/PRO/DOCS/trip98fmtddd.html

Only liquid water target is supported now.

write(estimator)[source]
write_single_page(estimator, page, filename)[source]