26   T->Branch(
"v3",&
v,32000,1);
 
   28   for (
Int_t i=0;i<10000;i++) {
 
   29      v->SetXYZ(
r.Gaus(0,1),
r.Landau(0,1),
r.Gaus(100,10));
 
 
   42   TH1F *
h1 = 
new TH1F(
"x",
"x component of Vector3",100,-3,3);
 
 
   58   TH1F *h2 = 
new TH1F(
"y",
"y component of Vector3",100,-5,20);
 
 
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
 
A TTree is a list of TBranches.
 
A ROOT file is an on-disk file, usually with extension .root, that stores objects in a file-system-li...
 
1-D histogram with a float per channel (see TH1 documentation)
 
virtual Int_t Fill(Double_t x)
Increment bin with abscissa X by 1.
 
void Draw(Option_t *option="") override
Draw this histogram with options.
 
This is the base class for the ROOT Random number generators.
 
A TTree represents a columnar dataset.
 
virtual Int_t SetBranchAddress(const char *bname, void *add, TBranch **ptr=nullptr)
Change branch address, dealing with clone trees properly.
 
void SetXYZ(Double_t x, Double_t y, Double_t z)