TAlienCollection Class Reference

#include <TAlienCollection.h>

Inheritance diagram for TAlienCollection:

TGridCollection TObject TObject List of all members.

Public Member Functions

 TAlienCollection ()
 TAlienCollection (TList *eventlist, UInt_t ngroups=0, UInt_t ngroupfiles=0)
 TAlienCollection (const char *localCollectionFile, UInt_t maxentries)
virtual ~TAlienCollection ()
TFileCollectionGetFileCollection (const char *name="", const char *title="") const
void Reset ()
TMapNext ()
Bool_t Remove (TMap *map)
const char * GetTURL (const char *name="")
const char * GetSURL (const char *name="")
const char * GetLFN (const char *name="")
Long64_t GetSize (const char *name="")
Bool_t IsOnline (const char *name="")
Bool_t IsSelected (const char *name="")
void Status ()
void SetTag (const char *tag, const char *value, TMap *tagmap)
Bool_t SelectFile (const char *name, Int_t=-1, Int_t=-1)
Bool_t DeselectFile (const char *name, Int_t=-1, Int_t=-1)
Bool_t InvertSelection ()
Bool_t DownscaleSelection (UInt_t scaler=2)
Bool_t ExportXML (const char *exporturl, Bool_t selected, Bool_t online, const char *name, const char *comment)
const char * GetExportUrl ()
Bool_t SetExportUrl (const char *exporturl=0)
void Print (Option_t *opt) const
TFileOpenFile (const char *filename)
TEntryListGetEntryList (const char *name)
TListGetFileGroupList () const
UInt_t GetNofGroups () const
UInt_t GetNofGroupfiles () const
Bool_t OverlapCollection (TGridCollection *comparator)
void Add (TGridCollection *addcollection)
Bool_t Stage (Bool_t bulk=kFALSE, Option_t *option="")
Bool_t Prepare (Bool_t bulk=kFALSE)
Bool_t CheckIfOnline (Bool_t bulk=kFALSE)
TDSetGetDataset (const char *type, const char *objname="*", const char *dir="/")
TGridResultGetGridResult (const char *filename="", Bool_t onlyonline=kTRUE, Bool_t publicaccess=kFALSE)
Bool_t LookupSUrls (Bool_t verbose=kTRUE)
TListGetTagFilterList () const
void SetTagFilterList (TList *filterlist)
const char * GetCollectionName () const
const char * GetInfoComment () const
const char * GetOutputFileName (const char *infile, Bool_t rename=kTRUE, const char *suffix="root")

Static Public Member Functions

static TGridCollectionOpen (const char *collectionurl, UInt_t maxentries=1000000)
static TGridCollectionOpenQuery (TGridResult *queryresult, Bool_t nogrouping=kFALSE)
static TAlienCollectionOpenAlienCollection (TGridResult *queryresult, Option_t *option="")

Private Member Functions

virtual void ParseXML (UInt_t maxentries)
Bool_t ExportXML (TFile *file, Bool_t selected, Bool_t online, const char *name, const char *comment)

Private Attributes

TString fXmlFile
TListfFileGroupList
TIterfFileGroupListIter
TMapfCurrent
 event file list iterator
UInt_t fNofGroups
 current event file map
UInt_t fNofGroupfiles
Bool_t fHasSUrls
Bool_t fHasSelection
Bool_t fHasOnline
TString fLastOutFileName
TFileStagerfFileStager
TString fExportUrl
 pointer to the file stager object
TString fInfoComment
TString fCollectionName
TListfTagFilterList

Detailed Description

Definition at line 43 of file TAlienCollection.h.


Constructor & Destructor Documentation

TAlienCollection::TAlienCollection (  )  [inline]

Definition at line 67 of file TAlienCollection.h.

Referenced by Open(), OpenAlienCollection(), and OpenQuery().

TAlienCollection::TAlienCollection ( TList eventlist,
UInt_t  ngroups = 0,
UInt_t  ngroupfiles = 0 
)

Definition at line 69 of file TAlienCollection.cxx.

References fCollectionName, fCurrent, fExportUrl, fFileGroupList, fFileGroupListIter, fFileStager, fHasSelection, fHasSUrls, fInfoComment, fNofGroupfiles, fNofGroups, fTagFilterList, kFALSE, kTRUE, and TCollection::SetOwner().

TAlienCollection::TAlienCollection ( const char *  localCollectionFile,
UInt_t  maxentries 
)

TAlienCollection::~TAlienCollection (  )  [virtual]

Definition at line 90 of file TAlienCollection.cxx.

References fFileGroupList, fFileGroupListIter, and fTagFilterList.


Member Function Documentation

void TAlienCollection::ParseXML ( UInt_t  maxentries  )  [private, virtual]

Definition at line 278 of file TAlienCollection.cxx.

References TMap::Add(), TList::Add(), TObjArray::At(), TString::Data(), TXMLEngine::DocGetRootElement(), TObject::Error(), fCollectionName, fExportUrl, fFileGroupList, fHasOnline, fHasSelection, fHasSUrls, fInfoComment, fNofGroupfiles, fNofGroups, fXmlFile, TXMLEngine::GetAttr(), TXMLEngine::GetChild(), TObjArray::GetEntries(), TObject::GetName(), TXMLEngine::GetNext(), TXMLEngine::GetNodeName(), kFALSE, kTRUE, n, TXMLEngine::ParseFile(), and SetExportUrl().

Bool_t TAlienCollection::ExportXML ( TFile file,
Bool_t  selected,
Bool_t  online,
const char *  name,
const char *  comment 
) [private]

Definition at line 1290 of file TAlienCollection.cxx.

References TFile::Close(), TString::Data(), TObject::Error(), fCurrent, fFileGroupList, fTagFilterList, TEntryList::GetEntry(), GetExportUrl(), TEntryList::GetN(), TObjString::GetName(), TCollection::GetName(), TObject::GetName(), i, IsOnline(), IsSelected(), kFALSE, kTRUE, TMap::MakeIterator(), TIterator::Next(), TIter::Next(), TIterator::Reset(), TIter::Reset(), snprintf, tagname, and TFile::WriteBuffer().

Referenced by ExportXML().

TFileCollection * TAlienCollection::GetFileCollection ( const char *  name = "",
const char *  title = "" 
) const [virtual]

Reimplemented from TGridCollection.

Definition at line 1569 of file TAlienCollection.cxx.

References TFileCollection::Add(), TString::Atoi(), fFileGroupList, TMap::GetValue(), TString::Length(), md5, size, TObjString::String(), and TFileCollection::Update().

void TAlienCollection::Reset (  )  [virtual]

Reimplemented from TGridCollection.

Definition at line 269 of file TAlienCollection.cxx.

References fCurrent, fFileGroupListIter, and TIter::Reset().

Referenced by Add(), CheckIfOnline(), DeselectFile(), DownscaleSelection(), GetDataset(), GetGridResult(), GetOutputFileName(), InvertSelection(), LookupSUrls(), OverlapCollection(), SelectFile(), and Stage().

TMap * TAlienCollection::Next (  )  [virtual]

Reimplemented from TGridCollection.

Definition at line 440 of file TAlienCollection.cxx.

References fCurrent, fFileGroupListIter, and TIter::Next().

Referenced by Add(), CheckIfOnline(), DeselectFile(), DownscaleSelection(), GetDataset(), GetGridResult(), GetOutputFileName(), InvertSelection(), LookupSUrls(), SelectFile(), and Stage().

Bool_t TAlienCollection::Remove ( TMap map  )  [virtual]

Reimplemented from TGridCollection.

Definition at line 676 of file TAlienCollection.cxx.

References fFileGroupList, kFALSE, kTRUE, and TList::Remove().

Referenced by CheckIfOnline(), LookupSUrls(), and OverlapCollection().

const char * TAlienCollection::GetTURL ( const char *  name = ""  )  [virtual]

Reimplemented from TGridCollection.

Definition at line 687 of file TAlienCollection.cxx.

References TObject::Error(), fCurrent, TObject::GetName(), and TMap::GetValue().

Referenced by LookupSUrls(), and OpenFile().

const char * TAlienCollection::GetSURL ( const char *  name = ""  )  [virtual]

Reimplemented from TGridCollection.

Definition at line 704 of file TAlienCollection.cxx.

References TObject::Error(), fCurrent, TObject::GetName(), and TMap::GetValue().

Referenced by CheckIfOnline(), and Stage().

const char * TAlienCollection::GetLFN ( const char *  name = ""  )  [virtual]

Reimplemented from TGridCollection.

Definition at line 784 of file TAlienCollection.cxx.

References TObject::Error(), fCurrent, TObject::GetName(), and TMap::GetValue().

Referenced by Add(), CheckIfOnline(), GetOutputFileName(), OverlapCollection(), and Stage().

Long64_t TAlienCollection::GetSize ( const char *  name = ""  )  [virtual]

Reimplemented from TGridCollection.

Definition at line 801 of file TAlienCollection.cxx.

References TObject::Error(), fCurrent, TObject::GetName(), and TMap::GetValue().

Referenced by Status().

Bool_t TAlienCollection::IsOnline ( const char *  name = ""  )  [virtual]

Reimplemented from TGridCollection.

Definition at line 721 of file TAlienCollection.cxx.

References fCurrent, TObject::GetName(), TMap::GetValue(), kFALSE, and kTRUE.

Referenced by ExportXML(), GetGridResult(), and Status().

Bool_t TAlienCollection::IsSelected ( const char *  name = ""  )  [virtual]

Reimplemented from TGridCollection.

Definition at line 744 of file TAlienCollection.cxx.

References fCurrent, TObject::GetName(), TMap::GetValue(), kFALSE, and kTRUE.

Referenced by CheckIfOnline(), ExportXML(), GetGridResult(), InvertSelection(), LookupSUrls(), Stage(), and Status().

void TAlienCollection::Status (  )  [virtual]

Reimplemented from TGridCollection.

Definition at line 449 of file TAlienCollection.cxx.

References fc, fCurrent, fFileGroupList, TCollection::GetName(), GetSize(), TObject::Info(), IsOnline(), IsSelected(), kFALSE, kTRUE, Long64_t, TMap::MakeIterator(), TIterator::Next(), TIter::Next(), TIterator::Reset(), and TIter::Reset().

void TAlienCollection::SetTag ( const char *  tag,
const char *  value,
TMap tagmap 
) [virtual]

Reimplemented from TGridCollection.

Definition at line 541 of file TAlienCollection.cxx.

References TMap::Add(), TMap::FindObject(), and TMap::Remove().

Referenced by DeselectFile(), DownscaleSelection(), InvertSelection(), and SelectFile().

Bool_t TAlienCollection::SelectFile ( const char *  name,
Int_t  = -1,
Int_t  = -1 
) [virtual]

Reimplemented from TGridCollection.

Definition at line 559 of file TAlienCollection.cxx.

References xmlio::cnt, fHasSelection, TCollection::GetName(), TMap::GetValue(), kTRUE, TMap::MakeIterator(), TIterator::Next(), Next(), Reset(), TIterator::Reset(), and SetTag().

Bool_t TAlienCollection::DeselectFile ( const char *  name,
Int_t  = -1,
Int_t  = -1 
) [virtual]

Reimplemented from TGridCollection.

Definition at line 591 of file TAlienCollection.cxx.

References xmlio::cnt, TCollection::GetName(), TMap::GetValue(), kTRUE, TMap::MakeIterator(), TIterator::Next(), Next(), Reset(), TIterator::Reset(), and SetTag().

Bool_t TAlienCollection::InvertSelection (  )  [virtual]

Reimplemented from TGridCollection.

Definition at line 623 of file TAlienCollection.cxx.

References xmlio::cnt, fHasSelection, TCollection::GetName(), TMap::GetValue(), IsSelected(), kTRUE, TMap::MakeIterator(), TIterator::Next(), Next(), Reset(), TIterator::Reset(), and SetTag().

Bool_t TAlienCollection::DownscaleSelection ( UInt_t  scaler = 2  )  [virtual]

Reimplemented from TGridCollection.

Definition at line 650 of file TAlienCollection.cxx.

References xmlio::cnt, TCollection::GetName(), TMap::GetValue(), kTRUE, TMap::MakeIterator(), TIterator::Next(), Next(), Reset(), TIterator::Reset(), and SetTag().

Bool_t TAlienCollection::ExportXML ( const char *  exporturl,
Bool_t  selected,
Bool_t  online,
const char *  name,
const char *  comment 
) [virtual]

Reimplemented from TGridCollection.

Definition at line 1249 of file TAlienCollection.cxx.

References TFile::Close(), TString::Data(), TObject::Error(), ExportXML(), GetExportUrl(), TUrl::GetOptions(), TUrl::GetUrl(), kFALSE, TString::Length(), TFile::Open(), and TUrl::SetOptions().

const char* TAlienCollection::GetExportUrl (  )  [inline, virtual]

Reimplemented from TGridCollection.

Definition at line 96 of file TAlienCollection.h.

References fExportUrl, and TString::Length().

Referenced by ExportXML().

Bool_t TAlienCollection::SetExportUrl ( const char *  exporturl = 0  )  [virtual]

Reimplemented from TGridCollection.

Definition at line 1469 of file TAlienCollection.cxx.

References fExportUrl, TObject::Info(), kFALSE, and kTRUE.

Referenced by ParseXML().

void TAlienCollection::Print ( Option_t opt  )  const [virtual]

Reimplemented from TGridCollection.

Definition at line 820 of file TAlienCollection.cxx.

References fFileGroupList, TCollection::GetSize(), TObject::Info(), and TCollection::Print().

TFile * TAlienCollection::OpenFile ( const char *  filename  )  [virtual]

Reimplemented from TGridCollection.

Definition at line 136 of file TAlienCollection.cxx.

References GetTURL(), and TFile::Open().

TEntryList * TAlienCollection::GetEntryList ( const char *  name  )  [virtual]

Reimplemented from TGridCollection.

Definition at line 767 of file TAlienCollection.cxx.

References TObject::Error(), fCurrent, and TMap::GetValue().

TList* TAlienCollection::GetFileGroupList (  )  const [inline, virtual]

Reimplemented from TGridCollection.

Definition at line 107 of file TAlienCollection.h.

References fFileGroupList.

UInt_t TAlienCollection::GetNofGroups (  )  const [inline, virtual]

Reimplemented from TGridCollection.

Definition at line 109 of file TAlienCollection.h.

References fNofGroups.

Referenced by CheckIfOnline(), and Stage().

UInt_t TAlienCollection::GetNofGroupfiles (  )  const [inline, virtual]

Reimplemented from TGridCollection.

Definition at line 111 of file TAlienCollection.h.

References fNofGroupfiles.

Referenced by CheckIfOnline(), and Stage().

Bool_t TAlienCollection::OverlapCollection ( TGridCollection comparator  )  [virtual]

Reimplemented from TGridCollection.

Definition at line 890 of file TAlienCollection.cxx.

References GetLFN(), TGridCollection::GetLFN(), kFALSE, kTRUE, TGridCollection::Next(), Remove(), TGridCollection::Reset(), Reset(), s1, and s2.

void TAlienCollection::Add ( TGridCollection addcollection  )  [virtual]

Reimplemented from TGridCollection.

Definition at line 925 of file TAlienCollection.cxx.

References TList::Add(), TCollection::Clone(), TObject::Error(), fFileGroupList, GetLFN(), TGridCollection::GetLFN(), TGridCollection::Next(), Next(), TGridCollection::Reset(), Reset(), s1, and s2.

Referenced by CheckIfOnline(), and LookupSUrls().

Bool_t TAlienCollection::Stage ( Bool_t  bulk = kFALSE,
Option_t option = "" 
) [virtual]

Reimplemented from TGridCollection.

Definition at line 1015 of file TAlienCollection.cxx.

References TList::Add(), TObject::Error(), fc, fFileStager, fHasSelection, fHasSUrls, TList::First(), GetLFN(), TCollection::GetName(), TObject::GetName(), GetNofGroupfiles(), GetNofGroups(), GetSURL(), TObject::Info(), IsSelected(), kFALSE, kTRUE, TMap::MakeIterator(), TIterator::Next(), Next(), TFileStager::Open(), Reset(), and TCollection::SetOwner().

Referenced by Prepare().

Bool_t TAlienCollection::Prepare ( Bool_t  bulk = kFALSE  )  [inline, virtual]

Reimplemented from TGridCollection.

Definition at line 116 of file TAlienCollection.h.

References Stage().

Bool_t TAlienCollection::CheckIfOnline ( Bool_t  bulk = kFALSE  )  [virtual]

Reimplemented from TGridCollection.

Definition at line 1089 of file TAlienCollection.cxx.

References Add(), TObject::Error(), fc, fFileStager, fHasOnline, fHasSelection, fHasSUrls, TObject::FindObject(), GetLFN(), TCollection::GetName(), GetNofGroupfiles(), GetNofGroups(), TFileStager::GetStaged(), GetSURL(), TMap::GetValue(), TObject::Info(), IsSelected(), kFALSE, kTRUE, TMap::MakeIterator(), TIterator::Next(), Next(), TFileStager::Open(), Remove(), Reset(), SafeDelete, and TCollection::SetOwner().

TDSet * TAlienCollection::GetDataset ( const char *  type,
const char *  objname = "*",
const char *  dir = "/" 
) [virtual]

Reimplemented from TGridCollection.

Definition at line 836 of file TAlienCollection.cxx.

References TDSet::Add(), fCurrent, TObject::GetName(), TMap::GetValue(), Next(), and Reset().

TGridResult * TAlienCollection::GetGridResult ( const char *  filename = "",
Bool_t  onlyonline = kTRUE,
Bool_t  publicaccess = kFALSE 
) [virtual]

Reimplemented from TGridCollection.

Definition at line 858 of file TAlienCollection.cxx.

References TMap::Add(), TObject::Clone(), fCurrent, fHasOnline, fHasSelection, TMap::GetValue(), IsOnline(), IsSelected(), Next(), Reset(), and result().

Bool_t TAlienCollection::LookupSUrls ( Bool_t  verbose = kTRUE  )  [virtual]

Reimplemented from TGridCollection.

Definition at line 960 of file TAlienCollection.cxx.

References Add(), TString::Data(), fHasSelection, fHasSUrls, TObject::FindObject(), fNofGroupfiles, fNofGroups, TCollection::GetName(), GetTURL(), TMap::GetValue(), TObject::Info(), IsSelected(), kFALSE, kTRUE, TMap::MakeIterator(), TIterator::Next(), Next(), ok, Remove(), Reset(), and TAlienFile::SUrl().

TList* TAlienCollection::GetTagFilterList (  )  const [inline, virtual]

Reimplemented from TGridCollection.

Definition at line 127 of file TAlienCollection.h.

References fTagFilterList.

void TAlienCollection::SetTagFilterList ( TList filterlist  )  [inline, virtual]

Reimplemented from TGridCollection.

Definition at line 129 of file TAlienCollection.h.

References fTagFilterList.

Referenced by OpenQuery().

const char* TAlienCollection::GetCollectionName (  )  const [inline, virtual]

Reimplemented from TGridCollection.

Definition at line 133 of file TAlienCollection.h.

References TString::Data(), and fCollectionName.

const char* TAlienCollection::GetInfoComment (  )  const [inline, virtual]

Reimplemented from TGridCollection.

Definition at line 134 of file TAlienCollection.h.

References TString::Data(), and fInfoComment.

TGridCollection * TAlienCollection::Open ( const char *  collectionurl,
UInt_t  maxentries = 1000000 
) [static]

Definition at line 105 of file TAlienCollection.cxx.

References TUUID::AsString(), TFile::Cp(), TString::Data(), TObject::Error(), gSystem, TAlienCollection(), and TSystem::Unlink().

Referenced by TAlien::OpenCollection().

TGridCollection * TAlienCollection::OpenQuery ( TGridResult queryresult,
Bool_t  nogrouping = kFALSE 
) [static]

Definition at line 184 of file TAlienCollection.cxx.

References TMap::Add(), TList::Add(), TSystem::BaseName(), TString::Data(), TSystem::DirName(), filelist, TObject::GetName(), TMap::GetValue(), gSystem, TList::MakeIterator(), TIterator::Next(), SetTagFilterList(), and TAlienCollection().

Referenced by TAlien::OpenCollectionQuery().

TAlienCollection * TAlienCollection::OpenAlienCollection ( TGridResult queryresult,
Option_t option = "" 
) [static]

Definition at line 148 of file TAlienCollection.cxx.

References TMap::Add(), TSystem::BaseName(), TString::Data(), filelist, Form(), TObject::GetName(), TMap::GetValue(), gSystem, TList::MakeIterator(), TIterator::Next(), and TAlienCollection().

Referenced by TAlien::OpenCollection().

const char * TAlienCollection::GetOutputFileName ( const char *  infile,
Bool_t  rename = kTRUE,
const char *  suffix = "root" 
)

Definition at line 1485 of file TAlienCollection.cxx.

References TSystem::BaseName(), TSystem::ClosePipe(), TString::Data(), TSystem::DirName(), fLastOutFileName, fp, GetLFN(), gSystem, TObject::Info(), kFALSE, kTRUE, Next(), TSystem::OpenPipe(), TSystem::Rename(), Reset(), rootdir, s1, and s2.


Member Data Documentation

TString TAlienCollection::fXmlFile [private]

Definition at line 46 of file TAlienCollection.h.

Referenced by ParseXML().

TList* TAlienCollection::fFileGroupList [private]

Definition at line 47 of file TAlienCollection.h.

Referenced by Add(), ExportXML(), GetFileCollection(), GetFileGroupList(), ParseXML(), Print(), Remove(), Status(), TAlienCollection(), and ~TAlienCollection().

TIter* TAlienCollection::fFileGroupListIter [private]

Definition at line 48 of file TAlienCollection.h.

Referenced by Next(), Reset(), TAlienCollection(), and ~TAlienCollection().

TMap* TAlienCollection::fCurrent [private]

event file list iterator

Definition at line 49 of file TAlienCollection.h.

Referenced by ExportXML(), GetDataset(), GetEntryList(), GetGridResult(), GetLFN(), GetSize(), GetSURL(), GetTURL(), IsOnline(), IsSelected(), Next(), Reset(), Status(), and TAlienCollection().

UInt_t TAlienCollection::fNofGroups [private]

current event file map

Definition at line 50 of file TAlienCollection.h.

Referenced by GetNofGroups(), LookupSUrls(), ParseXML(), and TAlienCollection().

UInt_t TAlienCollection::fNofGroupfiles [private]

Definition at line 51 of file TAlienCollection.h.

Referenced by GetNofGroupfiles(), LookupSUrls(), ParseXML(), and TAlienCollection().

Bool_t TAlienCollection::fHasSUrls [private]

Definition at line 52 of file TAlienCollection.h.

Referenced by CheckIfOnline(), LookupSUrls(), ParseXML(), Stage(), and TAlienCollection().

Bool_t TAlienCollection::fHasSelection [private]

Definition at line 53 of file TAlienCollection.h.

Referenced by CheckIfOnline(), GetGridResult(), InvertSelection(), LookupSUrls(), ParseXML(), SelectFile(), Stage(), and TAlienCollection().

Bool_t TAlienCollection::fHasOnline [private]

Definition at line 54 of file TAlienCollection.h.

Referenced by CheckIfOnline(), GetGridResult(), and ParseXML().

TString TAlienCollection::fLastOutFileName [private]

Definition at line 55 of file TAlienCollection.h.

Referenced by GetOutputFileName().

TFileStager* TAlienCollection::fFileStager [private]

Definition at line 56 of file TAlienCollection.h.

Referenced by CheckIfOnline(), Stage(), and TAlienCollection().

TString TAlienCollection::fExportUrl [private]

pointer to the file stager object

Definition at line 57 of file TAlienCollection.h.

Referenced by GetExportUrl(), ParseXML(), SetExportUrl(), and TAlienCollection().

TString TAlienCollection::fInfoComment [private]

Definition at line 58 of file TAlienCollection.h.

Referenced by GetInfoComment(), ParseXML(), and TAlienCollection().

TString TAlienCollection::fCollectionName [private]

Definition at line 59 of file TAlienCollection.h.

Referenced by GetCollectionName(), ParseXML(), and TAlienCollection().

TList* TAlienCollection::fTagFilterList [private]

Definition at line 60 of file TAlienCollection.h.

Referenced by ExportXML(), GetTagFilterList(), SetTagFilterList(), TAlienCollection(), and ~TAlienCollection().


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