12 #ifndef ROOT_TAlienCollection 13 #define ROOT_TAlienCollection 57 const char *
name,
const char *comment);
61 fNofGroups(0), fNofGroupfiles(0), fHasSUrls(0), fHasSelection(0),
62 fHasOnline(0), fFileStager(0), fExportUrl(
""), fInfoComment(
""),
63 fCollectionName(
"unnamed"), fTagFilterList(0)
83 void SetTag(
const char *tag,
const char *value,
TMap * tagmap);
89 const char *name,
const char *comment);
91 if (fExportUrl.
Length())
return fExportUrl;
else return 0;
132 UInt_t maxentries = 1000000);
Long64_t GetSize(const char *name="")
Get a file's LFN. Returns 0 in case of error.
TMap * fCurrent
event file list iterator
virtual void ParseXML(UInt_t maxentries)
Parse event file collection XML file.
void AddFast(TGridCollection *addcollection)
adds <addcollection> to this collection - NO check for identical elements
const char * GetExportUrl()
Bool_t Prepare(Bool_t bulk=kFALSE)
Bool_t IsOnline(const char *name="")
Get a file's online tag. Returns false if not online or CheckIfOnline was never executed, true if online.
void Print(Option_t *opt) const
Print event file collection.
const char * GetLFN(const char *name="")
Get a file's LFN. Returns 0 in case of error.
This class implements a data set to be used for PROOF processing.
A ROOT file is a suite of consecutive data records (TKey instances) with a well defined format...
Bool_t IsSelected(const char *name="")
Get a file's online tag. Returns false if not online or CheckIfOnline was never executed, true if online.
Bool_t InvertSelection()
Invert the selection.
virtual ~TAlienCollection()
Clean up event file collection.
Bool_t DeselectFile(const char *name, Int_t=-1, Int_t=-1)
Deselects the file <filename> from the loaded collection All files can be deselected using "*" as <fi...
void SetTag(const char *tag, const char *value, TMap *tagmap)
Set's a key value pair in a tagmap. If it is existing, the existing tag is overwritten. If not, it is created.
TFileStager * fFileStager
Bool_t CheckIfOnline(Bool_t bulk=kFALSE)
Run an online check if files are currently accessible (staged) or offline (to be staged).
Bool_t SetExportUrl(const char *exporturl=0)
Set the 'default' export URL for an XML collection. A collection can be restored to the export URL us...
TDSet * GetDataset(const char *type, const char *objname="*", const char *dir="/")
Return a TDSet from a collection.
static TAlienCollection * OpenAlienCollection(TGridResult *queryresult, Option_t *option="")
Static method used to create an Alien event collection, by creating collection from a TGridResult Get...
#define ClassDef(name, id)
void Add(TGridCollection *addcollection)
adds <addcollection> to this collection - equal elements are skipped
static TGridCollection * Open(const char *collectionurl, UInt_t maxentries=1000000)
Static method used to create an Alien event collection, by reading an XML collection from the specifi...
Bool_t SelectFile(const char *name, Int_t=-1, Int_t=-1)
Selects all files with name <filename> in the collection All files can be selected using "*" as filen...
UInt_t fNofGroups
current event file map
const char * GetOutputFileName(const char *infile, Bool_t rename=kTRUE, const char *suffix="root")
Adds to a file given by infile the collection identification , f.e.
Bool_t Stage(Bool_t bulk=kFALSE, Option_t *option="")
Execute the 'stage' method for all files in this collection (trigger staging).
TIter * fFileGroupListIter
TEntryList * GetEntryList(const char *name)
Get a file's event list. Returns 0 in case of error.
TFileCollection * GetFileCollection(const char *name="", const char *title="") const
creates a TFileCollection objects and fills it with the information from this collection note that TF...
Bool_t OverlapCollection(TGridCollection *comparator)
return kTRUE if comparator overlaps with this all objects in this collection, which are not defined i...
static TGridCollection * OpenQuery(TGridResult *queryresult, Bool_t nogrouping=kFALSE)
Static method used to create an Alien event collection, by creating collection from a TGridResult Que...
const char * GetCollectionName() const
const char * GetInfoComment() const
void Status()
Prints statistics, selection and status about the loaded collection.
TList * GetFileGroupList() const
const char * GetSURL(const char *name="")
Get a file's storage URL (SURL). Returns 0 in case of error.
const char * GetTURL(const char *name="")
Get a file's transport URL (TURL). Returns 0 in case of error.
void SetTagFilterList(TList *filterlist)
Bool_t LookupSUrls(Bool_t verbose=kTRUE)
retrieves all the SURLS for the LFNS
UInt_t GetNofGroups() const
TMap implements an associative array of (key,value) pairs using a THashTable for efficient retrieval ...
Bool_t DownscaleSelection(UInt_t scaler=2)
downscales the selection with scaler
Bool_t ExportXML(TFile *file, Bool_t selected, Bool_t online, const char *name, const char *comment)
Internal Export function to write a collection as an XML file. See above.
TList * GetTagFilterList() const
TMap * Next()
Return next event file map.
Class that contains a list of TFileInfo's and accumulated meta data information about its entries...
void Reset()
Reset file iterator.
TString fExportUrl
pointer to the file stager object
Bool_t Remove(TMap *map)
Return next event file map.
UInt_t GetNofGroupfiles() const
TFile * OpenFile(const char *filename)
Open the file specified by <filename> from the currently active file group in the collection via its ...
TGridResult * GetGridResult(const char *filename="", Bool_t onlyonline=kTRUE, Bool_t publicaccess=kFALSE)
Return a TGridResult.
A List of entry numbers in a TTree or TChain.
const char * Data() const