TFileCollection Class Reference

#include <TFileCollection.h>

Inheritance diagram for TFileCollection:

TNamed TNamed TObject TObject TObject TObject List of all members.

Public Types

enum  EStatusBits
enum  EStatusBits

Public Member Functions

 TFileCollection (const char *name=0, const char *title=0, const char *file=0, Int_t nfiles=-1, Int_t firstfile=1)
virtual ~TFileCollection ()
Int_t Add (TFileInfo *info)
Int_t Add (TFileCollection *coll)
Int_t AddFromFile (const char *file, Int_t nfiles=-1, Int_t firstfile=1)
Int_t Add (const char *path)
THashListGetList ()
void SetList (THashList *list)
TObjStringExportInfo (const char *name=0, Int_t popt=0)
Long64_t Merge (TCollection *list)
Int_t RemoveDuplicates ()
Int_t Update (Long64_t avgsize=-1)
void Sort ()
void SetAnchor (const char *anchor)
void Print (Option_t *option="") const
void SetBitAll (UInt_t f)
void ResetBitAll (UInt_t f)
Long64_t GetTotalSize () const
Long64_t GetNFiles () const
Long64_t GetNStagedFiles () const
Long64_t GetNCorruptFiles () const
Float_t GetStagedPercentage () const
Float_t GetCorruptedPercentage () const
const char * GetDefaultTreeName () const
void SetDefaultTreeName (const char *treeName)
Long64_t GetTotalEntries (const char *tree) const
TFileInfoMetaGetMetaData (const char *meta=0) const
void SetDefaultMetaData (const char *meta)
Bool_t AddMetaData (TObject *meta)
void RemoveMetaData (const char *meta=0)
TFileCollectionGetStagedSubset ()
TFileCollectionGetFilesOnServer (const char *server)
TMapGetFilesPerServer (const char *exclude=0)
 TFileCollection (const char *name=0, const char *title=0, const char *file=0, Int_t nfiles=-1, Int_t firstfile=1)
virtual ~TFileCollection ()
Int_t Add (TFileInfo *info)
Int_t Add (TFileCollection *coll)
Int_t AddFromFile (const char *file, Int_t nfiles=-1, Int_t firstfile=1)
Int_t Add (const char *path)
THashListGetList ()
void SetList (THashList *list)
TObjStringExportInfo (const char *name=0, Int_t popt=0)
Long64_t Merge (TCollection *list)
Int_t RemoveDuplicates ()
Int_t Update (Long64_t avgsize=-1)
void Sort ()
void SetAnchor (const char *anchor)
void Print (Option_t *option="") const
void SetBitAll (UInt_t f)
void ResetBitAll (UInt_t f)
Long64_t GetTotalSize () const
Long64_t GetNFiles () const
Long64_t GetNStagedFiles () const
Long64_t GetNCorruptFiles () const
Float_t GetStagedPercentage () const
Float_t GetCorruptedPercentage () const
const char * GetDefaultTreeName () const
void SetDefaultTreeName (const char *treeName)
Long64_t GetTotalEntries (const char *tree) const
TFileInfoMetaGetMetaData (const char *meta=0) const
void SetDefaultMetaData (const char *meta)
Bool_t AddMetaData (TObject *meta)
void RemoveMetaData (const char *meta=0)
TFileCollectionGetStagedSubset ()
TFileCollectionGetFilesOnServer (const char *server)
TMapGetFilesPerServer (const char *exclude=0)

Private Member Functions

 TFileCollection (const TFileCollection &)
TFileCollectionoperator= (const TFileCollection &)
 TFileCollection (const TFileCollection &)
TFileCollectionoperator= (const TFileCollection &)

Private Attributes

THashListfList
TListfMetaDataList
TString fDefaultTree
Long64_t fTotalSize
Long64_t fNFiles
Long64_t fNStagedFiles
Long64_t fNCorruptFiles
THashListfList
TListfMetaDataList

Detailed Description

Definition at line 43 of file TFileCollection.h.


Member Enumeration Documentation

enum TFileCollection::EStatusBits

Reimplemented from TObject.

Definition at line 60 of file TFileCollection.h.

enum TFileCollection::EStatusBits

Reimplemented from TObject.

Definition at line 60 of file TFileCollection.h.


Constructor & Destructor Documentation

TFileCollection::TFileCollection ( const TFileCollection  )  [private]

Referenced by GetFilesOnServer(), GetFilesPerServer(), and GetStagedSubset().

TFileCollection::TFileCollection ( const char *  name = 0,
const char *  title = 0,
const char *  file = 0,
Int_t  nfiles = -1,
Int_t  firstfile = 1 
)

TFileCollection::~TFileCollection (  )  [virtual]

Definition at line 59 of file TFileCollection.cxx.

References fList, and fMetaDataList.

TFileCollection::TFileCollection ( const TFileCollection  )  [private]

TFileCollection::TFileCollection ( const char *  name = 0,
const char *  title = 0,
const char *  file = 0,
Int_t  nfiles = -1,
Int_t  firstfile = 1 
)

virtual TFileCollection::~TFileCollection (  )  [virtual]


Member Function Documentation

TFileCollection& TFileCollection::operator= ( const TFileCollection  )  [private]

Int_t TFileCollection::Add ( TFileInfo info  ) 

Definition at line 68 of file TFileCollection.cxx.

References TList::Add(), THashList::FindObject(), fList, info, and TObject::Warning().

Referenced by Add(), TProof::AssertDataSet(), do_anadist(), do_anadist_ds(), TDataSetManagerFile::GetDataSet(), TAlienCollection::GetFileCollection(), GetFilesPerServer(), TProof::GetMissingFiles(), GetStagedSubset(), Merge(), PT_DataSets(), PT_H1FileCollection(), PT_H1SimpleAsync(), and TDataSetManagerFile::RegisterDataSet().

Int_t TFileCollection::Add ( TFileCollection coll  ) 

Definition at line 85 of file TFileCollection.cxx.

References TList::Add(), fi, fList, and GetList().

Int_t TFileCollection::AddFromFile ( const char *  file,
Int_t  nfiles = -1,
Int_t  firstfile = 1 
)

Definition at line 102 of file TFileCollection.cxx.

References TList::Add(), TObject::Error(), TSystem::ExpandPathName(), fList, gSystem, TString::IsNull(), kFALSE, kTRUE, line, nf, and Update().

Int_t TFileCollection::Add ( const char *  path  ) 

Definition at line 143 of file TFileCollection.cxx.

References Add(), TSystem::BaseName(), TSystem::DirName(), TObject::Error(), fList, FileStat_t::fMode, TSystem::FreeDirectory(), TSystem::GetDirEntry(), TSystem::GetPathInfo(), gSystem, TString::Index(), info, kNPOS, TFileInfo::kStaged, nf, TSystem::OpenDirectory(), R_ISREG(), and Update().

THashList* TFileCollection::GetList (  )  [inline]

Definition at line 71 of file TFileCollection.h.

References fList.

Referenced by Add(), TProof::AssertDataSet(), TProof::ClearData(), do_anadist_ds(), do_ls_files_server(), TProofServ::HandleDataSets(), printDataSet(), TDataSetManager::PrintDataSet(), TDataSetManagerFile::RegisterDataSet(), TProofLite::RegisterDataSet(), TProofServ::RegisterDataSets(), TProofLite::RegisterDataSets(), TDataSetManager::ScanDataSet(), TProof::UploadDataSet(), and TDataSetManagerFile::WriteDataSet().

void TFileCollection::SetList ( THashList list  )  [inline]

Definition at line 72 of file TFileCollection.h.

References fList, and list.

Referenced by TDataSetManagerFile::WriteDataSet().

TObjString * TFileCollection::ExportInfo ( const char *  name = 0,
Int_t  popt = 0 
)

Definition at line 579 of file TFileCollection.cxx.

References TString::Data(), TString::Form(), Form(), TString::Format(), GetDefaultTreeName(), TFileInfoMeta::GetEntries(), GetMetaData(), TNamed::GetName(), GetNFiles(), GetStagedPercentage(), GetTotalSize(), TString::IsNull(), k, TString::Length(), Long64_t, TString::Replace(), TString::Resize(), and unit.

Referenced by printDataSet(), and TDataSetManager::PrintDataSet().

Long64_t TFileCollection::Merge ( TCollection list  ) 

Definition at line 266 of file TFileCollection.cxx.

References Add(), TList::Add(), TCollection::AddAll(), TObject::ClassName(), TNamed::Clone(), TObject::Error(), TCollection::IsEmpty(), TObject::kMustCleanup, Long64_t, nentries, o, R__ASSERT, TList::Remove(), TObject::ResetBit(), TObject::SetBit(), and TObject::TestBit().

Int_t TFileCollection::RemoveDuplicates (  ) 

Definition at line 214 of file TFileCollection.cxx.

References TList::Add(), TUUID::AsString(), fi, THashList::FindObject(), fList, TCollection::GetSize(), TFileInfo::GetUUID(), TObject::Info(), THashList::Remove(), TNamed::SetName(), and TCollection::SetOwner().

Referenced by TDataSetManager::ScanDataSet().

Int_t TFileCollection::Update ( Long64_t  avgsize = -1  ) 

Definition at line 307 of file TFileCollection.cxx.

References TList::Add(), TList::FindObject(), fList, fMetaDataList, fNCorruptFiles, fNFiles, fNStagedFiles, fTotalSize, TCollection::GetEntries(), TFileInfoMeta::GetEntries(), TFileInfo::GetMetaDataList(), TNamed::GetName(), TFileInfo::GetSize(), TNamed::GetTitle(), TFileInfoMeta::IsTree(), TFileInfo::kCorrupted, TFileInfoMeta::kExternal, kFALSE, TFileInfo::kStaged, kTRUE, m, TIter::Next(), TList::Remove(), TFileInfoMeta::SetEntries(), and TObject::TestBit().

Referenced by Add(), AddFromFile(), do_anadist_ds(), TAlienCollection::GetFileCollection(), GetFilesPerServer(), TProof::GetMissingFiles(), GetStagedSubset(), pq2register(), PT_DataSets(), TDataSetManagerFile::RegisterDataSet(), and TDataSetManager::ScanDataSet().

void TFileCollection::Sort (  ) 

Definition at line 568 of file TFileCollection.cxx.

References fList, and TList::Sort().

Referenced by TDataSetManagerFile::RegisterDataSet().

void TFileCollection::SetAnchor ( const char *  anchor  ) 

Definition at line 433 of file TFileCollection.cxx.

References fList, TIter::Next(), TFileInfo::NextUrl(), TFileInfo::ResetUrl(), and TUrl::SetAnchor().

void TFileCollection::Print ( Option_t option = ""  )  const [virtual]

Reimplemented from TNamed.

Definition at line 394 of file TFileCollection.cxx.

References TString::Contains(), TString::Data(), fDefaultTree, fList, fMetaDataList, fNFiles, TString::Format(), fTotalSize, GetDefaultTreeName(), TFileInfoMeta::GetEntries(), TNamed::GetName(), GetStagedPercentage(), TNamed::GetTitle(), TString::IsNull(), TFileInfoMeta::IsTree(), TString::kIgnoreCase, TIter::Next(), TCollection::Print(), and Printf().

Referenced by TProofServ::RegisterDataSets(), TProofLite::RegisterDataSets(), and TProof::ShowDataSet().

void TFileCollection::SetBitAll ( UInt_t  f  ) 

Definition at line 452 of file TFileCollection.cxx.

References fList, TIter::Next(), and TObject::SetBit().

Referenced by pq2register().

void TFileCollection::ResetBitAll ( UInt_t  f  ) 

Definition at line 466 of file TFileCollection.cxx.

References fList, TIter::Next(), and TObject::ResetBit().

Referenced by TDataSetManagerFile::RegisterDataSet().

Long64_t TFileCollection::GetTotalSize (  )  const [inline]

Definition at line 86 of file TFileCollection.h.

References fTotalSize.

Referenced by do_anadist_ds(), ExportInfo(), GetFilesOnServer(), GetFilesPerServer(), TDataSetManager::GetQuota(), and TDataSetManagerFile::RegisterDataSet().

Long64_t TFileCollection::GetNFiles (  )  const [inline]

Definition at line 87 of file TFileCollection.h.

References fNFiles.

Referenced by do_anadist_ds(), and ExportInfo().

Long64_t TFileCollection::GetNStagedFiles (  )  const [inline]

Definition at line 88 of file TFileCollection.h.

References fNStagedFiles.

Long64_t TFileCollection::GetNCorruptFiles (  )  const [inline]

Definition at line 89 of file TFileCollection.h.

References fNCorruptFiles.

Float_t TFileCollection::GetStagedPercentage (  )  const [inline]

Definition at line 90 of file TFileCollection.h.

References fNFiles, and fNStagedFiles.

Referenced by ExportInfo(), Print(), and VerifyDataSet().

Float_t TFileCollection::GetCorruptedPercentage (  )  const [inline]

Definition at line 92 of file TFileCollection.h.

References fNCorruptFiles, and fNFiles.

const char * TFileCollection::GetDefaultTreeName (  )  const

Definition at line 480 of file TFileCollection.cxx.

References fDefaultTree, fMetaDataList, TNamed::GetName(), TFileInfoMeta::IsTree(), TString::Length(), and TIter::Next().

Referenced by TProof::AssertDataSet(), ExportInfo(), GetFilesOnServer(), GetFilesPerServer(), GetTotalEntries(), and Print().

void TFileCollection::SetDefaultTreeName ( const char *  treeName  )  [inline]

Definition at line 96 of file TFileCollection.h.

References fDefaultTree.

Referenced by GetFilesPerServer(), TProof::GetMissingFiles(), pq2register(), and TDataSetManagerFile::ScanDataSet().

Long64_t TFileCollection::GetTotalEntries ( const char *  tree  )  const

Definition at line 500 of file TFileCollection.cxx.

References TList::FindObject(), fMetaDataList, GetDefaultTreeName(), and TFileInfoMeta::GetEntries().

TFileInfoMeta * TFileCollection::GetMetaData ( const char *  meta = 0  )  const

Definition at line 520 of file TFileCollection.cxx.

References TList::FindObject(), and fMetaDataList.

Referenced by ExportInfo(), and SetDefaultMetaData().

void TFileCollection::SetDefaultMetaData ( const char *  meta  ) 

Definition at line 532 of file TFileCollection.cxx.

References TList::AddFirst(), fMetaDataList, GetMetaData(), and TList::Remove().

Bool_t TFileCollection::AddMetaData ( TObject meta  ) 

Definition at line 854 of file TFileCollection.cxx.

References TList::Add(), fMetaDataList, kFALSE, kTRUE, and TCollection::SetOwner().

Referenced by GetFilesPerServer().

void TFileCollection::RemoveMetaData ( const char *  meta = 0  ) 

Definition at line 545 of file TFileCollection.cxx.

References TList::Clear(), TList::FindObject(), fList, fMetaDataList, TIter::Next(), TList::Remove(), and TFileInfo::RemoveMetaData().

Referenced by TDataSetManagerFile::RegisterDataSet().

TFileCollection * TFileCollection::GetStagedSubset (  ) 

Definition at line 244 of file TFileCollection.cxx.

References Add(), fList, TNamed::GetName(), TNamed::GetTitle(), TFileInfo::kCorrupted, TFileInfo::kStaged, TIter::Next(), TObject::TestBit(), TFileCollection(), and Update().

TFileCollection * TFileCollection::GetFilesOnServer ( const char *  server  ) 

Definition at line 643 of file TFileCollection.cxx.

References TUUID::AsString(), TMD5::AsString(), TString::Data(), fc, fi, TFileInfo::FindByUrl(), fList, TString::Form(), gDebug, GetDefaultTreeName(), TFileInfo::GetMD5(), TFileInfo::GetMetaDataList(), TNamed::GetName(), TUri::GetPort(), TUri::GetScheme(), TCollection::GetSize(), TFileInfo::GetSize(), TNamed::GetTitle(), GetTotalSize(), TUrl::GetUrl(), TFileInfo::GetUUID(), TObject::Info(), TString::Insert(), TFileInfo::kCorrupted, TFileInfoMeta::kExternal, TFileInfo::kStaged, Long64_t, m, XrdMonCtrCollector::port, TObject::TestBit(), TFileCollection(), and title.

Referenced by TDataSetManagerFile::GetDataSet(), GetDataSets(), and TProofServ::HandleDataSets().

TMap * TFileCollection::GetFilesPerServer ( const char *  exclude = 0  ) 

Definition at line 734 of file TFileCollection.cxx.

References TMap::Add(), Add(), TList::Add(), TFileInfo::AddMetaData(), AddMetaData(), TUUID::AsString(), TMD5::AsString(), TString::Data(), fc, fi, THashList::FindObject(), TMap::FindObject(), fList, TString::Form(), TString::Format(), gDebug, TFileInfo::GetCurrentUrl(), GetDefaultTreeName(), TUrl::GetHostFQDN(), TFileInfo::GetMD5(), TFileInfo::GetMetaDataList(), TNamed::GetName(), TUrl::GetPort(), TUri::GetPort(), TUrl::GetProtocol(), TUri::GetScheme(), TCollection::GetSize(), TFileInfo::GetSize(), TNamed::GetTitle(), GetTotalSize(), TUrl::GetUrl(), TFileInfo::GetUUID(), TMap::GetValue(), TObject::Info(), k, TFileInfo::kCorrupted, TFileInfoMeta::kExternal, TFileInfo::kStaged, kTRUE, Long64_t, m, TFileInfo::NextUrl(), XrdMonCtrCollector::port, TFileInfo::ResetUrl(), s, TObject::SetBit(), TFileInfo::SetCurrentUrl(), SetDefaultTreeName(), TCollection::SetOwner(), TNamed::SetTitle(), TUri::SetUri(), TObject::TestBit(), TFileCollection(), title, Update(), and TPair::Value().

Referenced by TDataSetManager::GetSubDataSets().

TFileCollection& TFileCollection::operator= ( const TFileCollection  )  [private]

Int_t TFileCollection::Add ( TFileInfo info  ) 

Int_t TFileCollection::Add ( TFileCollection coll  ) 

Int_t TFileCollection::AddFromFile ( const char *  file,
Int_t  nfiles = -1,
Int_t  firstfile = 1 
)

Int_t TFileCollection::Add ( const char *  path  ) 

THashList* TFileCollection::GetList (  )  [inline]

Definition at line 71 of file TFileCollection.h.

References fList.

void TFileCollection::SetList ( THashList list  )  [inline]

Definition at line 72 of file TFileCollection.h.

References fList, and list.

TObjString* TFileCollection::ExportInfo ( const char *  name = 0,
Int_t  popt = 0 
)

Long64_t TFileCollection::Merge ( TCollection list  ) 

Int_t TFileCollection::RemoveDuplicates (  ) 

Int_t TFileCollection::Update ( Long64_t  avgsize = -1  ) 

void TFileCollection::Sort (  ) 

void TFileCollection::SetAnchor ( const char *  anchor  ) 

void TFileCollection::Print ( Option_t option = ""  )  const [virtual]

Reimplemented from TNamed.

void TFileCollection::SetBitAll ( UInt_t  f  ) 

void TFileCollection::ResetBitAll ( UInt_t  f  ) 

Long64_t TFileCollection::GetTotalSize (  )  const [inline]

Definition at line 86 of file TFileCollection.h.

References fTotalSize.

Long64_t TFileCollection::GetNFiles (  )  const [inline]

Definition at line 87 of file TFileCollection.h.

References fNFiles.

Long64_t TFileCollection::GetNStagedFiles (  )  const [inline]

Definition at line 88 of file TFileCollection.h.

References fNStagedFiles.

Long64_t TFileCollection::GetNCorruptFiles (  )  const [inline]

Definition at line 89 of file TFileCollection.h.

References fNCorruptFiles.

Float_t TFileCollection::GetStagedPercentage (  )  const [inline]

Definition at line 90 of file TFileCollection.h.

References fNFiles, and fNStagedFiles.

Float_t TFileCollection::GetCorruptedPercentage (  )  const [inline]

Definition at line 92 of file TFileCollection.h.

References fNCorruptFiles, and fNFiles.

const char* TFileCollection::GetDefaultTreeName (  )  const

void TFileCollection::SetDefaultTreeName ( const char *  treeName  )  [inline]

Definition at line 96 of file TFileCollection.h.

References fDefaultTree.

Long64_t TFileCollection::GetTotalEntries ( const char *  tree  )  const

TFileInfoMeta* TFileCollection::GetMetaData ( const char *  meta = 0  )  const

void TFileCollection::SetDefaultMetaData ( const char *  meta  ) 

Bool_t TFileCollection::AddMetaData ( TObject meta  ) 

void TFileCollection::RemoveMetaData ( const char *  meta = 0  ) 

TFileCollection* TFileCollection::GetStagedSubset (  ) 

TFileCollection* TFileCollection::GetFilesOnServer ( const char *  server  ) 

TMap* TFileCollection::GetFilesPerServer ( const char *  exclude = 0  ) 


Member Data Documentation

THashList* TFileCollection::fList [private]

Definition at line 46 of file TFileCollection.h.

Referenced by Add(), AddFromFile(), GetFilesOnServer(), GetFilesPerServer(), GetList(), GetStagedSubset(), Print(), RemoveDuplicates(), RemoveMetaData(), ResetBitAll(), SetAnchor(), SetBitAll(), SetList(), Sort(), Update(), and ~TFileCollection().

TList* TFileCollection::fMetaDataList [private]

Definition at line 47 of file TFileCollection.h.

Referenced by AddMetaData(), GetDefaultTreeName(), GetMetaData(), GetTotalEntries(), Print(), RemoveMetaData(), SetDefaultMetaData(), Update(), and ~TFileCollection().

TString TFileCollection::fDefaultTree [private]

Definition at line 49 of file TFileCollection.h.

Referenced by GetDefaultTreeName(), Print(), and SetDefaultTreeName().

Long64_t TFileCollection::fTotalSize [private]

Definition at line 50 of file TFileCollection.h.

Referenced by GetTotalSize(), Print(), and Update().

Long64_t TFileCollection::fNFiles [private]

Definition at line 51 of file TFileCollection.h.

Referenced by GetCorruptedPercentage(), GetNFiles(), GetStagedPercentage(), Print(), and Update().

Long64_t TFileCollection::fNStagedFiles [private]

Definition at line 53 of file TFileCollection.h.

Referenced by GetNStagedFiles(), GetStagedPercentage(), and Update().

Long64_t TFileCollection::fNCorruptFiles [private]

Definition at line 54 of file TFileCollection.h.

Referenced by GetCorruptedPercentage(), GetNCorruptFiles(), and Update().

THashList* TFileCollection::fList [private]

Definition at line 46 of file TFileCollection.h.

TList* TFileCollection::fMetaDataList [private]

Definition at line 47 of file TFileCollection.h.


The documentation for this class was generated from the following files:
Generated on Tue Jul 5 16:37:39 2011 for ROOT_528-00b_version by  doxygen 1.5.1