99void DemoDouble32::Set(
Double_t ref) {
100 fD64 = fF32 = fI32 = fI30 = fI28 = fI26 = fI24 = fI22 = fI20 = ref;
101 fI18 = fI16 = fI14 = fI12 = fI10 = fI8 = fI6 = fI4 = fI2 = ref;
102 fR14 = fR12 = fR10 = fR8 = fR6 = fR4 = fR2 = ref;
108 DemoDouble32 *
d =
new DemoDouble32();
113 TBranch *bd =
T->Branch(
"d",
"DemoDouble32",&
d,4000);
134 c1->SetHighLightColor(0);
135 c1->SetFillColor(17);
136 c1->SetFrameFillColor(20);
137 c1->SetFrameBorderSize(10);
142 c1->GetFrame()->SetFillColor(21);
143 c1->GetFrame()->SetBorderSize(12);
153 TPaveLabel *title =
new TPaveLabel(.15,.92,.85,.97,
"Double32_t compression and precision",
"brNDC");
159 h->GetXaxis()->SetBinLabel(i+1,br->
GetName());
169 T->Draw(
Form(
"(fD64-%s)/(fD64+0.01)",br->
GetName()),
"",
"goff");
181 legend->
AddEntry(gcx,
"Compression factor",
"lp");
182 legend->
AddEntry(gdrange,
"Log of precision wrt range",
"lp");
183 legend->
AddEntry(gdval,
"Log of precision wrt value",
"lp");
char * Form(const char *fmt,...)
virtual void SetMarkerColor(Color_t mcolor=1)
Set the marker color.
virtual void SetMarkerStyle(Style_t mstyle=1)
Set the marker style.
virtual void SetTextFont(Font_t tfont=62)
Set the text font.
virtual void SetTextSize(Float_t tsize=1)
Set the text size.
A TTree is a list of TBranches.
TObjArray * GetListOfBranches()
Long64_t GetZipBytes(Option_t *option="") const
Return total number of zip bytes in the branch if option ="*" includes all sub-branches of this branc...
static TFile * Open(const char *name, Option_t *option="", const char *ftitle="", Int_t compress=ROOT::RCompressionSetting::EDefaults::kUseGeneralPurpose, Int_t netopt=0)
Create / open a file.
A Graph is a graphics object made of two arrays X and Y with npoints each.
virtual void SetPoint(Int_t i, Double_t x, Double_t y)
Set x and y values for point number i.
virtual void SetName(const char *name="")
Set graph name.
virtual void Draw(Option_t *chopt="")
Draw this graph with its current attributes.
1-D histogram with a float per channel (see TH1 documentation)}
This class displays a legend box (TPaveText) containing several legend entries.
TLegendEntry * AddEntry(const TObject *obj, const char *label="", Option_t *option="lpf")
Add a new entry to this legend.
virtual void Draw(Option_t *option="")
Draw this legend with its current attributes.
virtual const char * GetName() const
Returns name of object.
A Pave (see TPave) with a text centered in the Pave.
virtual void Draw(Option_t *option="")
Draw this pavelabel with its current attributes.
Random number generator class based on M.
A TTree object has a header with a name and a title.
Short_t Max(Short_t a, Short_t b)
Double_t RMS(Long64_t n, const T *a, const Double_t *w=0)
Return the Standard Deviation of an array a with length n.
Double_t Log10(Double_t x)