gwexpy.interop.root_

Functions

from_root(cls, obj[, return_error])

Create Series (TimeSeries or FrequencySeries) from ROOT TGraph or TH1.

to_tgraph(series[, error])

Convert 1D Series to ROOT TGraph or TGraphErrors.

to_th1d(series[, error])

Convert 1D Series to ROOT TH1D.

to_th2d(spec[, error])

Convert Spectrogram to 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[source]

Convert 1D Series to ROOT TGraph or TGraphErrors.

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

Convert 1D Series to ROOT TH1D.

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

Convert Spectrogram to 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][source]

Create Series (TimeSeries or FrequencySeries) from ROOT TGraph or TH1.

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

Convert a collection of Series to a ROOT TMultiGraph.

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

Write a collection of Series to a ROOT TFile.