110   TTree tree(
"tree", 
"DemoDouble32");
 
  128   auto h = 
new TH1F(
"h", 
"Double32_t compression and precision", 
nb, 0, 
nb);
 
  143   gdval->SetName(
"gdval");
 
  152      h->GetXaxis()->SetBinLabel(i + 1, 
brName);
 
  154      gcx->SetPoint(i, i + 0.5, 
cx);
 
  155      if (i == 0 ) 
continue;
 
  169      hdval->GetXaxis()->SetTitle(
"Difference wrt reference value");
 
  176   auto c1 = 
new TCanvas(
"c1", 
"c1", 800, 600);
 
  180   h->GetXaxis()->LabelsOption(
"v");
 
  188   legend->AddEntry(
gcx, 
"Compression factor", 
"lp");
 
  189   legend->AddEntry(
gdrange, 
"Log of precision wrt range: p = -Log_{10}( RMS( #frac{Ref - x}{range} ) ) ", 
"lp");
 
  190   legend->AddEntry(
gdval, 
"Log of precision wrt value: p = -Log_{10}( RMS( #frac{Ref - x}{Ref} ) ) ", 
"lp");
 
double Double_t
Double 8 bytes.
 
long long Long64_t
Portable signed long integer 8 bytes.
 
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.
 
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.