19 in.open(
Form(
"%sbasic.dat",dir.
Data()));
24 TH1F h1(
"h1",
"x distribution",100,-4,4);
25 TNtuple ntuple(
"ntuple",
"data from ascii file",
"x:y:z");
29 if (!in.good())
break;
30 if (nlines < 5) printf(
"x=%8f, y=%8f, z=%8f\n",x,y,z);
35 printf(
" found %d points\n",nlines);
virtual Int_t Fill(Double_t x)
Increment bin with abscissa X by 1.
TString & ReplaceAll(const TString &s1, const TString &s2)
tomato 1-D histogram with a float per channel (see TH1 documentation)}
static TFile * Open(const char *name, Option_t *option="", const char *ftitle="", Int_t compress=1, Int_t netopt=0)
Create / open a file.
TString & Append(const char *cs)
A simple TTree restricted to a list of float variables only.
char * Form(const char *fmt,...)
you should not use this method at all Int_t Int_t z
const char * Data() const