72 Int_t nch = strlen(varlist);
74 char *vars =
new char[nch+1];
75 strlcpy(vars,varlist,nch+1);
90 for (i=0;i<
fNvar;i++) {
92 snprintf(descriptor,100,
"%s/D",&vars[pv]);
234 if (
fNvar <= 0)
return;
TNtupleD()
Default constructor for Ntuple.
virtual ~TNtupleD()
Default destructor for an Ntuple.
virtual Int_t Fill()
Fill a Ntuple with current values in fArgs.
virtual Int_t WriteClassBuffer(const TClass *cl, void *pointer)=0
virtual void SetAddress(void *add)
Set address of this branch.
A simple TTree restricted to a list of double variables only.
virtual void Browse(TBrowser *b)
Browse content.
virtual Int_t Fill()
Fill all branches.
Buffer base class used for serializing objects.
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...
static const double x2[5]
Double_t * fArgs
! [fNvar] Array of variables
static const double x4[22]
Int_t fNvar
Number of columns.
TObjArray fLeaves
Direct pointers to individual branch leaves.
Using a TBrowser one can browse all ROOT objects.
TObjArray fBranches
List of Branches.
virtual Int_t ReadClassBuffer(const TClass *cl, void *pointer, const TClass *onfile_class=0)=0
TObject * UncheckedAt(Int_t i) const
static const double x1[5]
Int_t IndexOf(const TObject *obj) const
void Browse(TBrowser *b)
Browse this collection (called by TBrowser).
virtual void ResetBranchAddress(TBranch *)
Reset the branch addresses to the internal fArgs array.
template Long64_t FillNtupleFromStream< Double_t, TNtupleD >(std::istream &, TNtupleD &, char, bool)
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.
you should not use this method at all Int_t Int_t Double_t Double_t Double_t Int_t Double_t Double_t Double_t Double_t b
A TTree object has a header with a name and a title.
A TTree is a list of TBranches.
void ResetBranchAddresses()
Reset the branch addresses to the internal fArgs array.
virtual Version_t ReadVersion(UInt_t *start=0, UInt_t *bcnt=0, const TClass *cl=0)=0
static const double x3[11]