Development documentation · 0.2.3 30c2f8ba · Intro examples tested with 0.2.3 · Version details · Known limitations

gwexpy.interop.root_#

Functions

from_root(cls, obj[, return_error])

Create a GWexpy series object from a ROOT TGraph or TH1.

to_tgraph(series[, error])

Convert a 1D series to a ROOT TGraph or TGraphErrors.

to_th1d(series[, error])

Convert a 1D series to a ROOT TH1D.

to_th2d(spec[, error])

Convert a spectrogram to a ROOT TH2D.

to_tmultigraph(collection[, name])

Convert a collection of series to a ROOT TMultiGraph.

write_root_file(collection, filename, **kwargs)

Write a collection of series to a ROOT TFile.

gwexpy.interop.root_.to_tgraph(series: Any, error: Any | None = None) ROOT.TGraph#

Convert a 1D series to a ROOT TGraph or TGraphErrors.

gwexpy.interop.root_.to_th1d(series: Any, error: Any | None = None) ROOT.TH1D#

Convert a 1D series to a ROOT TH1D.

gwexpy.interop.root_.to_th2d(spec: Spectrogram, error: Any | None = None) ROOT.TH2D#

Convert a spectrogram to a ROOT TH2D.

gwexpy.interop.root_.from_root(cls: type[T_s], obj: ROOT.TGraph | ROOT.TH1, return_error: bool = False) T_s | tuple[T_s, T_s]#

Create a GWexpy series object from a ROOT TGraph or TH1.

gwexpy.interop.root_.to_tmultigraph(collection, name: str | None = None) Any#

Convert a collection of series to a ROOT TMultiGraph.

gwexpy.interop.root_.write_root_file(collection, filename: str, **kwargs: Any) None#

Write a collection of series to a ROOT TFile.