18 TH1F *
h1 =
new TH1F(
"h1",
"x distribution",100,-4,4);
19 TTree *
T =
new TTree(
"ntuple",
"data from ascii file");
21 printf(
" found %lld points\n",nlines);
TString & ReplaceAll(const TString &s1, const TString &s2)
THist< 1, float, THistStatContent, THistStatUncertainty > TH1F
A ROOT file is a suite of consecutive data records (TKey instances) with a well defined format...
tomato 1-D histogram with a float per channel (see TH1 documentation)}
TString & Append(const char *cs)
virtual Int_t Write(const char *name=0, Int_t option=0, Int_t bufsize=0)
Write this object to the current directory.
char * Form(const char *fmt,...)
virtual Long64_t ReadFile(const char *filename, const char *branchDescriptor="", char delimiter=' ')
Create or simply read branches from filename.
virtual void Draw(Option_t *opt)
Default Draw method for all objects.
A TTree object has a header with a name and a title.
const char * Data() const