Bool_t DeselectFile(const char *name, Int_t=-1, Int_t=-1)
Deselects the file
from the loaded collection All files can be deselected using "*" as
virtual const char * DirName(const char *pathname)
Return the directory name in pathname.
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.
virtual FILE * OpenPipe(const char *command, const char *mode)
Open a pipe.
TFileStager * fFileStager
const char * GetOptions() const
Bool_t CheckIfOnline(Bool_t bulk=kFALSE)
Run an online check if files are currently accessible (staged) or offline (to be staged).
Iterator abstract base class.
static TFile * Open(const char *name, Option_t *option="", const char *ftitle="", Int_t compress=1, Int_t netopt=0)
Create / open a file.
virtual Bool_t Cp(const char *dst, Bool_t progressbar=kTRUE, UInt_t buffersize=1000000)
Allows to copy this file to the dst URL.
This class defines a UUID (Universally Unique IDentifier), also known as GUIDs (Globally Unique IDent...
virtual int Rename(const char *from, const char *to)
Rename a file.
virtual TObject * Clone(const char *newname="") const
Make a clone of an collection using the Streamer facility.
const char * Data() const
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...
void Print(Option_t *opt) const
Print event file collection.
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...
static struct mg_connection * fc(struct mg_context *ctx)
Int_t Update(Long64_t avgsize=-1)
Update accumulated information about the elements of the collection (e.g.
virtual int Unlink(const char *name)
Unlink, i.e. remove, a file.
virtual TObject * Clone(const char *newname="") const
Make a clone of an object using the Streamer facility.
void Add(TGridCollection *addcollection)
adds
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 in the collection All files can be selected using "*" as filen...
UInt_t fNofGroups
current event file map
UInt_t GetNofGroups() const
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.
TObject * GetValue(const char *keyname) const
Returns a pointer to the value associated with keyname as name of the key.
Int_t Atoi() const
Return integer value of string.
Bool_t Stage(Bool_t bulk=kFALSE, Option_t *option="")
Execute the 'stage' method for all files in this collection (trigger staging).
virtual void Error(const char *method, const char *msgfmt,...) const
Issue error message.
const char * GetNodeName(XMLNodePointer_t xmlnode)
returns name of xmlnode
TIter * fFileGroupListIter
TObject * FindObject(const char *keyname) const
Check if a (key,value) pair exists with keyname as name of the key.
TEntryList * GetEntryList(const char *name)
Get a file's event list. Returns 0 in case of error.
R__EXTERN TSystem * gSystem
TObject * Remove(TObject *key)
Remove the (key,value) pair with key from the map.
Bool_t OverlapCollection(TGridCollection *comparator)
return kTRUE if comparator overlaps with this all objects in this collection, which are not defined i...
Int_t Add(TFileInfo *info)
Add TFileInfo to the collection.
virtual TObject * Remove(TObject *obj)
Remove object from the list.
TIterator * MakeIterator(Bool_t dir=kIterForward) const
Create an iterator for TMap.
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...
virtual Bool_t WriteBuffer(const char *buf, Int_t len)
Write a buffer to the file.
void Status()
Prints statistics, selection and status about the loaded collection.
char * Form(const char *fmt,...)
virtual Long64_t GetEntry(Int_t index)
Return the number of the entry #index of this TEntryList in the TTree or TChain See also Next()...
const char * AsString() const
Return UUID as string. Copy string immediately since it will be reused.
virtual int ClosePipe(FILE *pipe)
Close the pipe.
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.
const char * GetUrl(Bool_t withDeflt=kFALSE) const
Return full URL.
virtual void Print(Option_t *option="") const
Default print for collections, calls Print(option, 1).
XMLDocPointer_t ParseFile(const char *filename, Int_t maxbuf=100000)
Parses content of file and tries to produce xml structures.
Class used by TMap to store (key,value) pairs.
void SetTagFilterList(TList *filterlist)
virtual Int_t GetSize() const
Bool_t LookupSUrls(Bool_t verbose=kTRUE)
retrieves all the SURLS for the LFNS
virtual const char * GetName() const
Returns name of object.
const char * GetAttr(XMLNodePointer_t xmlnode, const char *name)
returns value of attribute for xmlnode
Long64_t Atoll() const
Return long long value of string.
TMap implements an associative array of (key,value) pairs using a THashTable for efficient retrieval ...
static TFileStager * Open(const char *stager)
Open a stager, after having loaded the relevant plug-in.
Int_t GetEntries() const
Return the number of objects in array (i.e.
Bool_t DownscaleSelection(UInt_t scaler=2)
downscales the selection with scaler
virtual Long64_t GetN() const
Mother of all ROOT objects.
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.
virtual TObject * First() const
Return the first object in the list. Returns 0 when list is empty.
virtual Bool_t Add(const char *file, const char *objname=0, const char *dir=0, Long64_t first=0, Long64_t num=-1, const char *msd=0)
Add file to list of files to be analyzed.
TMap * Next()
Return next event file map.
virtual void Add(TObject *obj)
XMLNodePointer_t GetChild(XMLNodePointer_t xmlnode, Bool_t realnode=kTRUE)
returns first child of xml node
Class that contains a list of TFileInfo's and accumulated meta data information about its entries...
Bool_t Contains(const char *pat, ECaseCompare cmp=kExact) const
virtual TObject * Next()=0
XMLNodePointer_t DocGetRootElement(XMLDocPointer_t xmldoc)
returns root node of document
void Reset()
Reset file iterator.
void SetOptions(const char *opt)
virtual TIterator * MakeIterator(Bool_t dir=kIterForward) const
Return a list iterator.
TString fExportUrl
pointer to the file stager object
Bool_t Remove(TMap *map)
Return next event file map.
Class describing a generic file including meta information.
TObject * At(Int_t idx) const
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...
TFile * OpenFile(const char *filename)
Open the file specified by 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.
virtual TObject * FindObject(const char *name) const
Must be redefined in derived classes.
A List of entry numbers in a TTree or TChain.
static TString SUrl(const char *lfn)
Get surl from lfn by asking AliEn catalog.
ClassImp(TAlienCollection) TAlienCollection
Create Alien event collection by reading collection from the specified XML file.
virtual const char * GetLFN(const char *="")
virtual void Close(Option_t *option="")
Close a file.