class TFileCollection: public TNamed


Class that contains a list of TFileInfo's and accumulated meta
data information about its entries. This class is used to describe
file sets as stored by Grid file catalogs, by PROOF or any other
collection of TFile names.

Function Members (Methods)

TFileCollection(const char* name = 0, const char* title = 0, const char* file = 0)
voidTObject::AbstractMethod(const char* method) const
voidAdd(TFileInfo* info)
voidAddFromDirectory(const char* dir)
voidAddFromFile(const char* file)
virtual voidTObject::AppendPad(Option_t* option = "")
virtual voidTObject::Browse(TBrowser* b)
static TClass*Class()
virtual const char*TObject::ClassName() const
virtual voidTNamed::Clear(Option_t* option = "")
virtual TObject*TNamed::Clone(const char* newname = "") const
virtual Int_tTNamed::Compare(const TObject* obj) const
virtual voidTNamed::Copy(TObject& named) const
virtual voidTObject::Delete(Option_t* option = "")
virtual Int_tTObject::DistancetoPrimitive(Int_t px, Int_t py)
virtual voidTObject::Draw(Option_t* option = "")
virtual voidTObject::DrawClass() const
virtual TObject*TObject::DrawClone(Option_t* option = "") const
virtual voidTObject::Dump() const
virtual voidTObject::Error(const char* method, const char* msgfmt) const
virtual voidTObject::Execute(const char* method, const char* params, Int_t* error = 0)
virtual voidTObject::Execute(TMethod* method, TObjArray* params, Int_t* error = 0)
virtual voidTObject::ExecuteEvent(Int_t event, Int_t px, Int_t py)
virtual voidTObject::Fatal(const char* method, const char* msgfmt) const
virtual voidTNamed::FillBuffer(char*& buffer)
virtual TObject*TObject::FindObject(const char* name) const
virtual TObject*TObject::FindObject(const TObject* obj) const
Float_tGetCorruptedPercentage() const
const char*GetDefaultTreeName() const
virtual Option_t*TObject::GetDrawOption() const
static Long_tTObject::GetDtorOnly()
virtual const char*TObject::GetIconName() const
TFileInfoMeta*GetMetaData(const char* meta = 0) const
virtual const char*TNamed::GetName() const
virtual char*TObject::GetObjectInfo(Int_t px, Int_t py) const
static Bool_tTObject::GetObjectStat()
virtual Option_t*TObject::GetOption() const
Float_tGetStagedPercentage() const
virtual const char*TNamed::GetTitle() const
Long64_tGetTotalEntries(const char* tree) const
Long64_tGetTotalSize() const
virtual UInt_tTObject::GetUniqueID() const
virtual Bool_tTObject::HandleTimer(TTimer* timer)
virtual ULong_tTNamed::Hash() const
virtual voidTObject::Info(const char* method, const char* msgfmt) const
virtual Bool_tTObject::InheritsFrom(const char* classname) const
virtual Bool_tTObject::InheritsFrom(const TClass* cl) const
virtual voidTObject::Inspect() const
voidTObject::InvertBit(UInt_t f)
virtual TClass*IsA() const
virtual Bool_tTObject::IsEqual(const TObject* obj) const
virtual Bool_tTObject::IsFolder() const
Bool_tTObject::IsOnHeap() const
virtual Bool_tTNamed::IsSortable() const
Bool_tTObject::IsZombie() const
virtual voidTNamed::ls(Option_t* option = "") const
voidTObject::MayNotUse(const char* method) const
virtual Bool_tTObject::Notify()
static voidTObject::operator delete(void* ptr)
static voidTObject::operator delete(void* ptr, void* vp)
static voidTObject::operator delete[](void* ptr)
static voidTObject::operator delete[](void* ptr, void* vp)
void*TObject::operator new(size_t sz)
void*TObject::operator new(size_t sz, void* vp)
void*TObject::operator new[](size_t sz)
void*TObject::operator new[](size_t sz, void* vp)
virtual voidTObject::Paint(Option_t* option = "")
virtual voidTObject::Pop()
virtual voidPrint(Option_t* option = "") const
virtual Int_tTObject::Read(const char* name)
virtual voidTObject::RecursiveRemove(TObject* obj)
voidTObject::ResetBit(UInt_t f)
virtual voidTObject::SaveAs(const char* filename = "", Option_t* option = "") const
virtual voidTObject::SavePrimitive(basic_ostream<char,char_traits<char> >& out, Option_t* option = "")
voidSetAnchor(const char* anchor) const
voidTObject::SetBit(UInt_t f)
voidTObject::SetBit(UInt_t f, Bool_t set)
virtual voidTObject::SetDrawOption(Option_t* option = "")
static voidTObject::SetDtorOnly(void* obj)
virtual voidTNamed::SetName(const char* name)
virtual voidTNamed::SetNameTitle(const char* name, const char* title)
static voidTObject::SetObjectStat(Bool_t stat)
virtual voidTNamed::SetTitle(const char* title = "")
virtual voidTObject::SetUniqueID(UInt_t uid)
virtual voidShowMembers(TMemberInspector& insp, char* parent)
virtual Int_tTNamed::Sizeof() const
virtual voidStreamer(TBuffer& b)
voidStreamerNVirtual(TBuffer& b)
virtual voidTObject::SysError(const char* method, const char* msgfmt) const
Bool_tTObject::TestBit(UInt_t f) const
Int_tTObject::TestBits(UInt_t f) const
virtual voidTObject::UseCurrentStyle()
virtual voidTObject::Warning(const char* method, const char* msgfmt) const
virtual Int_tTObject::Write(const char* name = 0, Int_t option = 0, Int_t bufsize = 0)
virtual Int_tTObject::Write(const char* name = 0, Int_t option = 0, Int_t bufsize = 0) const
virtual voidTObject::DoError(int level, const char* location, const char* fmt, va_list va) const
TFileCollection(const TFileCollection&)
TFileCollection&operator=(const TFileCollection&)

Data Members

enum TObject::EStatusBits { kCanDelete
enum TObject::[unnamed] { kIsOnHeap
TStringTNamed::fNameobject identifier
TStringTNamed::fTitleobject title
THashList*fList-> list of TFileInfos
TList*fMetaDataList-> generic list of file meta data object(s) (summed over entries of fList)
Float_tfStagedPercentagepercentage of files staged
Long64_tfTotalSizetotal size of files in the list

Class Charts

Inheritance Inherited Members Includes Libraries
Class Charts

Function documentation

TFileCollection(const char* name = 0, const char* title = 0, const char* file = 0)
 TFileCollection constructor. Specify a name and title describing
 the list. If textfile is specified the file is opened and a
 TFileCollection is created containing the files in the textfile.
void Add(TFileInfo* info)
 Add TFileInfo to the collection.
void AddFromFile(const char* file)
 Add all file names contained in the specified text file.
void AddFromDirectory(const char* dir)
 Add all files in the specified directory to the collection. The dir can
 can include wildcards after the last slash, causing all matching files
 in that directory to be added. If dir is the full path of a file, only
 one element is added.
TFileCollection * GetStagedSubset()
 Creates a subset of the files that have the kStaged & !kCorrupted bit set.
void Update()
 Update accumulated information about the elements of the collection
 (e.g. fTotalSize). Also updates the meta data information by summarizing
 the meta data of the contained objects.
void Print(Option_t* option = "") const
 Prints the contents of the TFileCollection.
 If option contains "M": prints meta data entries,
 if option contains "F": prints all the files in the collection.
void SetAnchor(const char* anchor) const
 Calls TUrl::SetAnchor() for all URLs contained in all TFileInfos.
const char * GetDefaultTreeName()
 Returns the name of the first tree in the meta data list.
 Returns 0 in case no trees are found in the meta data list.
Long64_t GetTotalEntries(const char* tree) const
 Returns the number of entries for the specified tree (retrieved from meta data).
 If tree is not specified, use the default tree name.
 Returns -1 in case the specified tree is not found.
TFileInfoMeta * GetMetaData(const char* meta = 0) const
 Returns the meta data object with the soecified meta name.
 Returns 0 in case specified meta data is not found.
void Sort()
 Sort the collection.
Float_t GetCorruptedPercentage()
 Returns the percentage of files with the kCorrupted bit set,
 calculated on-the-fly because it is not supposed to be used often.
TFileCollection(const TFileCollection& )
TFileCollection& operator=(const TFileCollection& )
TList * GetList()
{ return (TList*) fList; }
Long64_t GetTotalSize()
{ return fTotalSize; }
Float_t GetStagedPercentage()
{ return fStagedPercentage; }

Author: Jan Fiete Grosse-Oetringhaus 01/06/07
Last update: root/base:$Id: TFileCollection.h 20877 2007-11-19 11:17:07Z rdm $
Copyright (C) 1995-2007, Rene Brun and Fons Rademakers. *

This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to ROOT support, or contact the developers with any questions or problems regarding ROOT.