polyBkgFrame

fiducia.rawProcess.polyBkgFrame(timesFrame, df, edgesFrame, channels, order=3, plot=False)[source]
Parameters
  • timesFrame (pandas.core.frame.DataFrame) – A dataframe containing time axis values corresponding to signals in df.

  • df (pandas.core.frame.DataFrame) – A dataframe of corrected/calibrated dante signal measurements.

  • edgesFrame (pandas.core.frame.DataFrame) – Dataframe describing edges of the signal containing region, outside of which should be just background. This function will fit to these two early time and late time background containing regions. See signalEdges().

  • channels (list) – A list of channels for which to apply analyis.

  • order (int) – Order of polynomial to be fitted to estimated background/hysteresis.

  • plot (bool) – Flag for plotting fitted background and background subtracted signal. Default is False.

Returns

Return type

dfPoly

Notes

Examples