73 Int_t nch = strlen(varlist);
75 char *vars =
new char[nch+1];
76 strlcpy(vars,varlist,nch+1);
90 for (i=0;i<
fNvar;i++) {
194 if (fNvar > 0)
fArgs[0] = x0;
199 if (fNvar > 5)
fArgs[5] = x5;
200 if (fNvar > 6)
fArgs[6] = x6;
201 if (fNvar > 7)
fArgs[7] = x7;
202 if (fNvar > 8)
fArgs[8] = x8;
203 if (fNvar > 9)
fArgs[9] = x9;
204 if (fNvar > 10)
fArgs[10] = x10;
205 if (fNvar > 11)
fArgs[11] = x11;
206 if (fNvar > 12)
fArgs[12] = x12;
207 if (fNvar > 13)
fArgs[13] = x13;
208 if (fNvar > 14)
fArgs[14] = x14;
248 void TNtuple::Streamer(
TBuffer &b)
262 if (fNvar <= 0)
return;
virtual Int_t WriteClassBuffer(const TClass *cl, void *pointer)=0
virtual void SetAddress(void *add)
Set address of this branch.
virtual Long64_t ReadStream(std::istream &inputStream, const char *branchDescriptor="", char delimiter= ' ')
Read from filename as many columns as variables in the ntuple the function returns the number of rows...
virtual Int_t Fill()
Fill all branches.
template Long64_t FillNtupleFromStream< Float_t, TNtuple >(std::istream &, TNtuple &, char, bool)
Buffer base class used for serializing objects.
virtual Int_t CheckByteCount(UInt_t startpos, UInt_t bcnt, const TClass *clss)=0
virtual TTree * CloneTree(Long64_t nentries=-1, Option_t *option="")
Create a clone of this tree and copy nentries.
static const double x2[5]
static const double x4[22]
TObject * UncheckedAt(Int_t i) const
Using a TBrowser one can browse all ROOT objects.
Int_t IndexOf(const TObject *obj) const
virtual TTree * CloneTree(Long64_t nentries=-1, Option_t *option="")
Create a clone of this tree and copy nentries.
A simple TTree restricted to a list of float variables only.
TPaveLabel title(3, 27.1, 15, 28.7,"ROOT Environment and Tools")
TObjArray fBranches
Pointer to directory holding this tree.
virtual void ResetBranchAddress(TBranch *)
Reset the branch addresses to the internal fArgs array.
virtual void Browse(TBrowser *b)
Browse content of the ntuple.
void ResetBranchAddresses()
Reset the branch addresses to the internal fArgs array.
virtual Int_t ReadClassBuffer(const TClass *cl, void *pointer, const TClass *onfile_class=0)=0
static const double x1[5]
virtual Int_t Fill()
[fNvar] Array of variables
void Browse(TBrowser *b)
Browse this collection (called by TBrowser).
Int_t GetEntries() const
Return the number of objects in array (i.e.
virtual Int_t Branch(TCollection *list, Int_t bufsize=32000, Int_t splitlevel=99, const char *name="")
Create one branch for each element in the collection.
A TTree object has a header with a name and a title.
A TTree is a list of TBranches.
virtual ~TNtuple()
Default destructor for an Ntuple.
virtual Version_t ReadVersion(UInt_t *start=0, UInt_t *bcnt=0, const TClass *cl=0)=0
static const double x3[11]