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++) {
262 if (
fNvar <= 0)
return;
int Int_t
Signed integer 4 bytes (int).
short Version_t
Class version identifier (short).
unsigned int UInt_t
Unsigned integer 4 bytes (unsigned int).
long long Long64_t
Portable signed long integer 8 bytes.
float Float_t
Float 4 bytes (float).
const char Option_t
Option string (const char).
A TTree is a list of TBranches.
virtual void SetAddress(void *add)
Set address of this branch.
Using a TBrowser one can browse all ROOT objects.
Buffer base class used for serializing objects.
Long64_t ReadStream(std::istream &inputStream, const char *branchDescriptor="", char delimiter=' ') override
Read from filename as many columns as variables in the ntuple the function returns the number of rows...
~TNtuple() override
Default destructor for an Ntuple.
TClass * IsA() const override
TNtuple(const TNtuple &)=delete
void ResetBranchAddresses() override
Reset the branch addresses to the internal fArgs array.
Int_t fNvar
Number of columns.
void ResetBranchAddress(TBranch *) override
Reset the branch addresses to the internal fArgs array.
void Browse(TBrowser *b) override
Browse content of the ntuple.
TNtuple()
Default constructor for Ntuple.
void Streamer(TBuffer &) override
Stream a class object.
Int_t Fill() override
Fill a Ntuple with current values in fArgs.
Float_t * fArgs
! [fNvar] Array of variables
TTree * CloneTree(Long64_t nentries=-1, Option_t *option="") override
Create a clone of this tree and copy nentries.
Int_t GetEntries() const override
Return the number of objects in array (i.e.
virtual Int_t Fill()
Fill all branches.
void Streamer(TBuffer &) override
Stream a class object.
TObjArray fBranches
List of Branches.
virtual TTree * CloneTree(Long64_t nentries=-1, Option_t *option="")
Create a clone of this tree and copy nentries.
TObjArray fLeaves
Direct pointers to individual branch leaves.
TTree()
Default constructor and I/O constructor.
TBranch * Branch(const char *name, T *obj, Int_t bufsize=32000, Int_t splitlevel=99)
Add a new branch, and infer the data type from the type of obj being passed.
template Long64_t FillNtupleFromStream< Float_t, TNtuple >(std::istream &, TNtuple &, char, bool)