36 while ((key = (
TKey*)nextkey())) {
53 TTree *newT =
T->CloneTree(-1,
"fast");
67void CopyFile(
const char *fname) {
71 if (!
f ||
f->IsZombie()) {
72 printf(
"Cannot copy file: %s\n",fname);
90 CopyFile(
"tot100.root");
91 CopyFile(
"hsimple.root");
const Bool_t kIterBackward
R__EXTERN TSystem * gSystem
TClass instances represent classes, structs and namespaces in the ROOT type system.
Bool_t InheritsFrom(const char *cl) const
Return kTRUE if this class inherits from a class with name "classname".
Describe directory structure in memory.
virtual void ls(Option_t *option="") const
List Directory contents.
virtual TObject * Get(const char *namecycle)
Return pointer to object identified by namecycle.
virtual Bool_t cd(const char *path=0)
Change current directory to "this" directory.
virtual TObject * FindObject(const char *name) const
Find object by name in the list of memory objects.
virtual void SaveSelf(Bool_t=kFALSE)
virtual TList * GetListOfKeys() const
virtual TDirectory * mkdir(const char *name, const char *title="")
Create a sub-directory "a" or a hierarchy of sub-directories "a/b/c/...".
A ROOT file is a suite of consecutive data records (TKey instances) with a well defined format.
static TFile * Open(const char *name, Option_t *option="", const char *ftitle="", Int_t compress=ROOT::RCompressionSetting::EDefaults::kUseGeneralPurpose, Int_t netopt=0)
Create / open a file.
Book space in a file, create I/O buffers, to fill them, (un)compress them.
virtual const char * GetClassName() const
virtual TObject * ReadObj()
To read a TObject* from the file.
virtual const char * GetName() const
Returns name of object.
Mother of all ROOT objects.
virtual Int_t Write(const char *name=0, Int_t option=0, Int_t bufsize=0)
Write this object to the current directory.
virtual int CopyFile(const char *from, const char *to, Bool_t overwrite=kFALSE)
Copy a file.
virtual Bool_t AccessPathName(const char *path, EAccessMode mode=kFileExists)
Returns FALSE if one can access a file using the specified access mode.
A TTree represents a columnar dataset.
virtual Int_t Write(const char *name=0, Int_t option=0, Int_t bufsize=0)
Write this object to the current directory.