Documentation

Overview

    Package rootcnv provides tools to convert ROOT histograms and graphs to go-hep/hbook ones.

    Index

    Examples

    Constants

    This section is empty.

    Variables

    This section is empty.

    Functions

    func FromH1D

    func FromH1D(h1 *hbook.H1D) *rhist.H1D

      FromH1D creates a new ROOT TH1D from a 1-dim hbook histogram.

      func FromH2D

      func FromH2D(h2 *hbook.H2D) *rhist.H2D

        FromH2D creates a new ROOT TH2D from a 2-dim hbook histogram.

        func FromS2D

        func FromS2D(s2 *hbook.S2D) rhist.GraphErrors

          FromS2D creates a new ROOT TGraphAsymmErrors from 2-dim hbook data points.

          func H1D

          func H1D(h1 rhist.H1) *hbook.H1D

            H1D creates a new H1D from a TH1x.

            Example
            Output:
            
            name:    "h1d"
            mean:    0.028120158262930028
            std-dev: 2.5450388861661377
            std-err: 0.025447023184829384
            

            func H2D

            func H2D(h2 rhist.H2) *hbook.H2D

              H2D creates a new H2D from a TH2x.

              Example
              Output:
              
              name:      "h2d"
              x-mean:    -0.005792199729986178
              x-std-dev: 2.270805729597938
              x-std-err: 0.06540325772462689
              y-mean:    0.8942018621292575
              y-std-dev: 1.830794214602073
              y-std-err: 0.05273014080318356
              

              func S2D

              func S2D(g rhist.Graph) *hbook.S2D

                S2D creates a new S2D from a TGraph, TGraphErrors or TGraphAsymmErrors.

                Example
                Output:
                
                name:  "tgae"
                title: "graph with asymmetric errors"
                #pts:  4
                (x,y)[0] = (+1.000000e+00 +/- [+1.000000e-01, +2.000000e-01], +2.000000e+00 +/- [+3.000000e-01, +4.000000e-01])
                (x,y)[1] = (+2.000000e+00 +/- [+2.000000e-01, +4.000000e-01], +4.000000e+00 +/- [+6.000000e-01, +8.000000e-01])
                (x,y)[2] = (+3.000000e+00 +/- [+3.000000e-01, +6.000000e-01], +6.000000e+00 +/- [+9.000000e-01, +1.200000e+00])
                (x,y)[3] = (+4.000000e+00 +/- [+4.000000e-01, +8.000000e-01], +8.000000e+00 +/- [+1.200000e+00, +1.600000e+00])
                

                Types

                This section is empty.

                Source Files