12 #ifndef ROOT_TFileCollection 13 #define ROOT_TFileCollection 90 {
return (fNFiles > 0) ? 100. * fNStagedFiles /
fNFiles : 0; }
92 {
return (fNFiles > 0) ? 100. * fNCorruptFiles /
fNFiles : 0; }
TFileInfoMeta * GetMetaData(const char *meta=0) const
Returns the meta data object with the specified meta name.
TFileCollection * GetFilesOnServer(const char *server)
Return the subset of files served by 'server'.
const char * GetDefaultTreeName() const
Returns the tree set with SetDefaultTreeName if set Returns the name of the first tree in the meta da...
void SetAnchor(const char *anchor)
Calls TUrl::SetAnchor() for all URLs contained in all TFileInfos.
Collectable string class.
Long64_t GetTotalSize() const
Float_t GetStagedPercentage() const
Long64_t GetTotalEntries(const char *tree) const
Returns the number of entries for the specified tree (retrieved from meta data).
Int_t Update(Long64_t avgsize=-1)
Update accumulated information about the elements of the collection (e.g.
#define ClassDef(name, id)
THashList implements a hybrid collection class consisting of a hash table and a list to store TObject...
The TNamed class is the base class for all named ROOT classes.
TFileCollection * GetStagedSubset()
Creates a subset of the files that have the kStaged & !kCorrupted bit set.
void RemoveMetaData(const char *meta=0)
Removes the indicated meta data object in all TFileInfos and this object If no name is given all meta...
Long64_t Merge(TCollection *list)
Merge all TFileCollection objects in li into this TFileCollection object.
TFileCollection & operator=(const TFileCollection &)
void Sort(Bool_t useindex=kFALSE)
Sort the collection.
Bool_t AddMetaData(TObject *meta)
Add's a meta data object to the file collection object.
TObjString * ExportInfo(const char *name=0, Int_t popt=0)
Export the relevant info as a string; use 'name' as collection name, if defined, else use GetName()...
Int_t RemoveDuplicates()
Remove duplicates based on the UUID, typically after a verification.
Int_t Add(TFileInfo *info)
Add TFileInfo to the collection.
Long64_t GetNFiles() const
void Print(Option_t *option="") const
Prints the contents of the TFileCollection.
Collection abstract base class.
void FormatSize(Long64_t bytes, TString &um, Double_t &size) const
Format size.
TFileCollection(const TFileCollection &)
void SetDefaultTreeName(const char *treeName)
TMap implements an associative array of (key,value) pairs using a THashTable for efficient retrieval ...
Mother of all ROOT objects.
Int_t AddFromFile(const char *file, Int_t nfiles=-1, Int_t firstfile=1)
Add file names contained in the specified text file.
void SetDefaultMetaData(const char *meta)
Moves the indicated meta data in the first position, so that it becomes effectively the default...
void PrintDetailed(TString &showOnly) const
Print detailed.
virtual ~TFileCollection()
Cleanup.
Class that contains a list of TFileInfo's and accumulated meta data information about its entries...
void ResetBitAll(UInt_t f)
Reset the bit for all TFileInfos.
Float_t GetCorruptedPercentage() const
Class describing a generic file including meta information.
Long64_t GetNCorruptFiles() const
TMap * GetFilesPerServer(const char *exclude=0, Bool_t curronly=kFALSE)
Return a map of TFileCollections with the files on each data server, excluding servers in the comma-s...
void SetBitAll(UInt_t f)
Set the bit for all TFileInfos.
Long64_t GetNStagedFiles() const
void SetList(THashList *list)