67 auto h =
new TH1F(
"h",
"Float16_t compression and precision",
nb, 0,
nb);
82 gdval->SetName(
"gdval");
90 h->GetXaxis()->SetBinLabel(i + 1,
brName);
92 gcx->SetPoint(i, i + 0.5,
cx);
107 hdval->GetXaxis()->SetTitle(
"Difference wrt reference value");
114 auto c1 =
new TCanvas(
"c1",
"c1", 800, 600);
118 h->GetXaxis()->LabelsOption(
"v");
126 legend->AddEntry(
gcx,
"Compression factor",
"lp");
127 legend->AddEntry(
gdrange,
"Log of precision wrt range: p = -Log_{10}( RMS( #frac{Ref - x}{range} ) ) ",
"lp");
128 legend->AddEntry(
gdval,
"Log of precision wrt value: p = -Log_{10}( RMS( #frac{Ref - x}{Ref} ) ) ",
"lp");
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t r
char * Form(const char *fmt,...)
Formats a string in a circular formatting buffer.
A TTree is a list of TBranches.
static TFile * Open(const char *name, Option_t *option="", const char *ftitle="", Int_t compress=ROOT::RCompressionSetting::EDefaults::kUseCompiledDefault, Int_t netopt=0)
Create / open a file.
A TGraph is an object made of two arrays X and Y with npoints each.
1-D histogram with a float per channel (see TH1 documentation)
This class displays a legend box (TPaveText) containing several legend entries.
Random number generator class based on M.
A TTree represents a columnar dataset.
tbb::task_arena is an alias of tbb::interface7::task_arena, which doesn't allow to forward declare tb...
Double_t RMS(Long64_t n, const T *a, const Double_t *w=nullptr)
Returns the Standard Deviation of an array a with length n.
Short_t Max(Short_t a, Short_t b)
Returns the largest of a and b.
Double_t Log10(Double_t x)
Returns the common (base-10) logarithm of x.