ROOT 6.10/09 Reference Guide |
Definition at line 35 of file TAlienCollection.h.
Public Member Functions | |
TAlienCollection () | |
TAlienCollection (TList *eventlist, UInt_t ngroups=0, UInt_t ngroupfiles=0) | |
Create Alien event collection using an event list. More... | |
TAlienCollection (const char *localCollectionFile, UInt_t maxentries) | |
Create Alien event collection by reading collection from the specified XML file. More... | |
virtual | ~TAlienCollection () |
Clean up event file collection. More... | |
void | Add (TGridCollection *addcollection) |
adds <addcollection> to this collection - equal elements are skipped More... | |
void | AddFast (TGridCollection *addcollection) |
adds <addcollection> to this collection - NO check for identical elements More... | |
Bool_t | CheckIfOnline (Bool_t bulk=kFALSE) |
Run an online check if files are currently accessible (staged) or offline (to be staged). More... | |
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 <filename> More... | |
Bool_t | DownscaleSelection (UInt_t scaler=2) |
downscales the selection with scaler More... | |
Bool_t | ExportXML (const char *exporturl, Bool_t selected, Bool_t online, const char *name, const char *comment) |
Exports the contens of the TAlienCollection into an XML formatted file. More... | |
const char * | GetCollectionName () const |
TDSet * | GetDataset (const char *type, const char *objname="*", const char *dir="/") |
Return a TDSet from a collection. More... | |
TEntryList * | GetEntryList (const char *name) |
Get a file's event list. Returns 0 in case of error. More... | |
const char * | GetExportUrl () |
TFileCollection * | GetFileCollection (const char *name="", const char *title="") const |
creates a TFileCollection objects and fills it with the information from this collection note that TFileCollection has a flat structure and no groups –> all files are filles on a flat level the TFileInfo of each file in the TFileCollection is filled with turl, size, md5, guid More... | |
TList * | GetFileGroupList () const |
TGridResult * | GetGridResult (const char *filename="", Bool_t onlyonline=kTRUE, Bool_t publicaccess=kFALSE) |
Return a TGridResult. More... | |
const char * | GetInfoComment () const |
const char * | GetLFN (const char *name="") |
Get a file's LFN. Returns 0 in case of error. More... | |
UInt_t | GetNofGroupfiles () const |
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. More... | |
Long64_t | GetSize (const char *name="") |
Get a file's LFN. Returns 0 in case of error. More... | |
const char * | GetSURL (const char *name="") |
Get a file's storage URL (SURL). Returns 0 in case of error. More... | |
TList * | GetTagFilterList () const |
const char * | GetTURL (const char *name="") |
Get a file's transport URL (TURL). Returns 0 in case of error. More... | |
Bool_t | InvertSelection () |
Invert the selection. More... | |
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. More... | |
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. More... | |
Bool_t | LookupSUrls (Bool_t verbose=kTRUE) |
retrieves all the SURLS for the LFNS More... | |
TMap * | Next () |
Return next event file map. More... | |
TFile * | OpenFile (const char *filename) |
Open the file specified by <filename> from the currently active file group in the collection via its TURL. More... | |
Bool_t | OverlapCollection (TGridCollection *comparator) |
return kTRUE if comparator overlaps with this all objects in this collection, which are not defined in the <comparator> collection are removed. More... | |
Bool_t | Prepare (Bool_t bulk=kFALSE) |
void | Print (Option_t *opt) const |
Print event file collection. More... | |
Bool_t | Remove (TMap *map) |
Return next event file map. More... | |
void | Reset () |
Reset file iterator. More... | |
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 filename. More... | |
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 using ExportXML("");. More... | |
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. More... | |
void | SetTagFilterList (TList *filterlist) |
Bool_t | Stage (Bool_t bulk=kFALSE, Option_t *option="") |
Execute the 'stage' method for all files in this collection (trigger staging). More... | |
void | Status () |
Prints statistics, selection and status about the loaded collection. More... | |
Public Member Functions inherited from TGridCollection | |
TGridCollection () | |
virtual | ~TGridCollection () |
Public Member Functions inherited from TObject | |
TObject () | |
TObject constructor. More... | |
TObject (const TObject &object) | |
TObject copy ctor. More... | |
virtual | ~TObject () |
TObject destructor. More... | |
void | AbstractMethod (const char *method) const |
Use this method to implement an "abstract" method that you don't want to leave purely abstract. More... | |
virtual void | AppendPad (Option_t *option="") |
Append graphics object to current pad. More... | |
virtual void | Browse (TBrowser *b) |
Browse object. May be overridden for another default action. More... | |
virtual const char * | ClassName () const |
Returns name of class to which the object belongs. More... | |
virtual void | Clear (Option_t *="") |
virtual TObject * | Clone (const char *newname="") const |
Make a clone of an object using the Streamer facility. More... | |
virtual Int_t | Compare (const TObject *obj) const |
Compare abstract method. More... | |
virtual void | Copy (TObject &object) const |
Copy this to obj. More... | |
virtual void | Delete (Option_t *option="") |
Delete this object. More... | |
virtual Int_t | DistancetoPrimitive (Int_t px, Int_t py) |
Computes distance from point (px,py) to the object. More... | |
virtual void | Draw (Option_t *option="") |
Default Draw method for all objects. More... | |
virtual void | DrawClass () const |
Draw class inheritance tree of the class to which this object belongs. More... | |
virtual TObject * | DrawClone (Option_t *option="") const |
Draw a clone of this object in the current selected pad for instance with: gROOT->SetSelectedPad(gPad) . More... | |
virtual void | Dump () const |
Dump contents of object on stdout. More... | |
virtual void | Error (const char *method, const char *msgfmt,...) const |
Issue error message. More... | |
virtual void | Execute (const char *method, const char *params, Int_t *error=0) |
Execute method on this object with the given parameter string, e.g. More... | |
virtual void | Execute (TMethod *method, TObjArray *params, Int_t *error=0) |
Execute method on this object with parameters stored in the TObjArray. More... | |
virtual void | ExecuteEvent (Int_t event, Int_t px, Int_t py) |
Execute action corresponding to an event at (px,py). More... | |
virtual void | Fatal (const char *method, const char *msgfmt,...) const |
Issue fatal error message. More... | |
virtual TObject * | FindObject (const char *name) const |
Must be redefined in derived classes. More... | |
virtual TObject * | FindObject (const TObject *obj) const |
Must be redefined in derived classes. More... | |
virtual Option_t * | GetDrawOption () const |
Get option used by the graphics system to draw this object. More... | |
virtual const char * | GetIconName () const |
Returns mime type name of object. More... | |
virtual const char * | GetName () const |
Returns name of object. More... | |
virtual char * | GetObjectInfo (Int_t px, Int_t py) const |
Returns string containing info about the object at position (px,py). More... | |
virtual Option_t * | GetOption () const |
virtual const char * | GetTitle () const |
Returns title of object. More... | |
virtual UInt_t | GetUniqueID () const |
Return the unique object id. More... | |
virtual Bool_t | HandleTimer (TTimer *timer) |
Execute action in response of a timer timing out. More... | |
virtual ULong_t | Hash () const |
Return hash value for this object. More... | |
virtual void | Info (const char *method, const char *msgfmt,...) const |
Issue info message. More... | |
virtual Bool_t | InheritsFrom (const char *classname) const |
Returns kTRUE if object inherits from class "classname". More... | |
virtual Bool_t | InheritsFrom (const TClass *cl) const |
Returns kTRUE if object inherits from TClass cl. More... | |
virtual void | Inspect () const |
Dump contents of this object in a graphics canvas. More... | |
void | InvertBit (UInt_t f) |
virtual Bool_t | IsEqual (const TObject *obj) const |
Default equal comparison (objects are equal if they have the same address in memory). More... | |
virtual Bool_t | IsFolder () const |
Returns kTRUE in case object contains browsable objects (like containers or lists of other objects). More... | |
Bool_t | IsOnHeap () const |
virtual Bool_t | IsSortable () const |
Bool_t | IsZombie () const |
virtual void | ls (Option_t *option="") const |
The ls function lists the contents of a class on stdout. More... | |
void | MayNotUse (const char *method) const |
Use this method to signal that a method (defined in a base class) may not be called in a derived class (in principle against good design since a child class should not provide less functionality than its parent, however, sometimes it is necessary). More... | |
virtual Bool_t | Notify () |
This method must be overridden to handle object notification. More... | |
void | Obsolete (const char *method, const char *asOfVers, const char *removedFromVers) const |
Use this method to declare a method obsolete. More... | |
void | operator delete (void *ptr) |
Operator delete. More... | |
void | operator delete[] (void *ptr) |
Operator delete []. More... | |
void * | operator new (size_t sz) |
void * | operator new (size_t sz, void *vp) |
void * | operator new[] (size_t sz) |
void * | operator new[] (size_t sz, void *vp) |
TObject & | operator= (const TObject &rhs) |
TObject assignment operator. More... | |
virtual void | Paint (Option_t *option="") |
This method must be overridden if a class wants to paint itself. More... | |
virtual void | Pop () |
Pop on object drawn in a pad to the top of the display list. More... | |
virtual Int_t | Read (const char *name) |
Read contents of object with specified name from the current directory. More... | |
virtual void | RecursiveRemove (TObject *obj) |
Recursively remove this object from a list. More... | |
void | ResetBit (UInt_t f) |
virtual void | SaveAs (const char *filename="", Option_t *option="") const |
Save this object in the file specified by filename. More... | |
virtual void | SavePrimitive (std::ostream &out, Option_t *option="") |
Save a primitive as a C++ statement(s) on output stream "out". More... | |
void | SetBit (UInt_t f, Bool_t set) |
Set or unset the user status bits as specified in f. More... | |
void | SetBit (UInt_t f) |
virtual void | SetDrawOption (Option_t *option="") |
Set drawing option for object. More... | |
virtual void | SetUniqueID (UInt_t uid) |
Set the unique object id. More... | |
virtual void | SysError (const char *method, const char *msgfmt,...) const |
Issue system error message. More... | |
Bool_t | TestBit (UInt_t f) const |
Int_t | TestBits (UInt_t f) const |
virtual void | UseCurrentStyle () |
Set current style settings in this object This function is called when either TCanvas::UseCurrentStyle or TROOT::ForceStyle have been invoked. More... | |
virtual void | Warning (const char *method, const char *msgfmt,...) const |
Issue warning message. More... | |
virtual Int_t | Write (const char *name=0, Int_t option=0, Int_t bufsize=0) |
Write this object to the current directory. More... | |
virtual Int_t | Write (const char *name=0, Int_t option=0, Int_t bufsize=0) const |
Write this object to the current directory. More... | |
Static Public Member Functions | |
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 specified url. More... | |
static TAlienCollection * | OpenAlienCollection (TGridResult *queryresult, Option_t *option="") |
Static method used to create an Alien event collection, by creating collection from a TGridResult GetCollection result (TAlien::GetCollection) More... | |
static TGridCollection * | OpenQuery (TGridResult *queryresult, Bool_t nogrouping=kFALSE) |
Static method used to create an Alien event collection, by creating collection from a TGridResult Query result (TAlien::Query) nogrouping means that files in the same directory are treated as not belonging to a file group. More... | |
Static Public Member Functions inherited from TObject | |
static Long_t | GetDtorOnly () |
Return destructor only flag. More... | |
static Bool_t | GetObjectStat () |
Get status of object stat flag. More... | |
static void | SetDtorOnly (void *obj) |
Set destructor only flag. More... | |
static void | SetObjectStat (Bool_t stat) |
Turn on/off tracking of objects in the TObjectTable. More... | |
Private Member Functions | |
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. More... | |
virtual void | ParseXML (UInt_t maxentries) |
Parse event file collection XML file. More... | |
Private Attributes | |
TString | fCollectionName |
TMap * | fCurrent |
event file list iterator More... | |
TString | fExportUrl |
pointer to the file stager object More... | |
TList * | fFileGroupList |
TIter * | fFileGroupListIter |
TFileStager * | fFileStager |
Bool_t | fHasOnline |
Bool_t | fHasSelection |
Bool_t | fHasSUrls |
TString | fInfoComment |
TString | fLastOutFileName |
UInt_t | fNofGroupfiles |
UInt_t | fNofGroups |
current event file map More... | |
TList * | fTagFilterList |
TString | fXmlFile |
Additional Inherited Members | |
Public Types inherited from TObject | |
enum | { kIsOnHeap = 0x01000000, kNotDeleted = 0x02000000, kZombie = 0x04000000, kBitMask = 0x00ffffff } |
enum | { kSingleKey = BIT(0), kOverwrite = BIT(1), kWriteDelete = BIT(2) } |
enum | EStatusBits { kCanDelete = BIT(0), kMustCleanup = BIT(3), kObjInCanvas = BIT(3), kIsReferenced = BIT(4), kHasUUID = BIT(5), kCannotPick = BIT(6), kNoContextMenu = BIT(8), kInvalidObject = BIT(13) } |
Protected Member Functions inherited from TObject | |
virtual void | DoError (int level, const char *location, const char *fmt, va_list va) const |
Interface to ErrorHandler (protected). More... | |
void | MakeZombie () |
#include <TAlienCollection.h>
|
inline |
Definition at line 60 of file TAlienCollection.h.
TAlienCollection::TAlienCollection | ( | TList * | eventlist, |
UInt_t | ngroups = 0 , |
||
UInt_t | ngroupfiles = 0 |
||
) |
Create Alien event collection using an event list.
Definition at line 72 of file TAlienCollection.cxx.
TAlienCollection::TAlienCollection | ( | const char * | localcollectionfile, |
UInt_t | maxentries | ||
) |
Create Alien event collection by reading collection from the specified XML file.
You can restrict the number of importet entries using the maxentries value.
Definition at line 46 of file TAlienCollection.cxx.
|
virtual |
Clean up event file collection.
Definition at line 94 of file TAlienCollection.cxx.
|
virtual |
adds <addcollection> to this collection - equal elements are skipped
Reimplemented from TGridCollection.
Definition at line 934 of file TAlienCollection.cxx.
void TAlienCollection::AddFast | ( | TGridCollection * | addcollection | ) |
adds <addcollection> to this collection - NO check for identical elements
Definition at line 968 of file TAlienCollection.cxx.
Run an online check if files are currently accessible (staged) or offline (to be staged).
The <bulk> check is currently not working.
Reimplemented from TGridCollection.
Definition at line 1114 of file TAlienCollection.cxx.
|
virtual |
Deselects the file <filename> from the loaded collection All files can be deselected using "*" as <filename>
Reimplemented from TGridCollection.
Definition at line 600 of file TAlienCollection.cxx.
downscales the selection with scaler
Reimplemented from TGridCollection.
Definition at line 659 of file TAlienCollection.cxx.
|
private |
Internal Export function to write a collection as an XML file. See above.
Definition at line 1314 of file TAlienCollection.cxx.
|
virtual |
Exports the contens of the TAlienCollection into an XML formatted file.
By default exports only selected files. By default exports only accessible (online) files. You can change this behaviour by specifying online=kFALSE or selected=kFALSE. <name> specifies a name you want to assign to this collection. <comment> can be a user comment to this collection. If <exporturl>="" the collection is exported to the URL which was stored inside the collection or was specified by the ExportUrl(const char* url) method.
Reimplemented from TGridCollection.
Definition at line 1279 of file TAlienCollection.cxx.
|
inlinevirtual |
Reimplemented from TGridCollection.
Definition at line 128 of file TAlienCollection.h.
|
virtual |
Return a TDSet from a collection.
Filter, Selections and online tags are not taken into account.
Reimplemented from TGridCollection.
Definition at line 848 of file TAlienCollection.cxx.
|
virtual |
Get a file's event list. Returns 0 in case of error.
Reimplemented from TGridCollection.
Definition at line 778 of file TAlienCollection.cxx.
|
inlinevirtual |
Reimplemented from TGridCollection.
Definition at line 90 of file TAlienCollection.h.
|
virtual |
creates a TFileCollection objects and fills it with the information from this collection note that TFileCollection has a flat structure and no groups –> all files are filles on a flat level the TFileInfo of each file in the TFileCollection is filled with turl, size, md5, guid
the object has to be deleted by the user
Reimplemented from TGridCollection.
Definition at line 1594 of file TAlienCollection.cxx.
|
inlinevirtual |
Reimplemented from TGridCollection.
Definition at line 101 of file TAlienCollection.h.
|
virtual |
Return a TGridResult.
If files have been selected in this collection, only the selected files are returned. If <onlyonline> is set to kTRUE, only files which are 'online' (staged) are included. If no online check was done, TGridResult will be empty. <publicaccess> adds the publicaccess option to the TGridResult entries
Reimplemented from TGridCollection.
Definition at line 872 of file TAlienCollection.cxx.
|
inlinevirtual |
Reimplemented from TGridCollection.
Definition at line 129 of file TAlienCollection.h.
|
virtual |
Get a file's LFN. Returns 0 in case of error.
Reimplemented from TGridCollection.
Definition at line 795 of file TAlienCollection.cxx.
|
inlinevirtual |
Reimplemented from TGridCollection.
Definition at line 105 of file TAlienCollection.h.
|
inlinevirtual |
Reimplemented from TGridCollection.
Definition at line 103 of file TAlienCollection.h.
const char * TAlienCollection::GetOutputFileName | ( | const char * | infile, |
Bool_t | rename = kTRUE , |
||
const char * | suffix = "root" |
||
) |
Adds to a file given by infile the collection identification , f.e.
for collection files sitting in directories like 100/1/AliESD.root ... 110/1/AliESD.root "./histo.root" will be converted to "./histo.100_1-110_1.230.root
The name syntax is <oldname>.<first run>="">_<first event>-<last run>="">.<last event>="">.<nevents>.root
By default the found files are renamed on the local disk example:
Definition at line 1517 of file TAlienCollection.cxx.
|
virtual |
Get a file's LFN. Returns 0 in case of error.
Reimplemented from TGridCollection.
Definition at line 812 of file TAlienCollection.cxx.
|
virtual |
Get a file's storage URL (SURL). Returns 0 in case of error.
Reimplemented from TGridCollection.
Definition at line 715 of file TAlienCollection.cxx.
|
inlinevirtual |
Reimplemented from TGridCollection.
Definition at line 122 of file TAlienCollection.h.
|
virtual |
Get a file's transport URL (TURL). Returns 0 in case of error.
Reimplemented from TGridCollection.
Definition at line 698 of file TAlienCollection.cxx.
|
virtual |
Invert the selection.
Reimplemented from TGridCollection.
Definition at line 632 of file TAlienCollection.cxx.
|
virtual |
Get a file's online tag. Returns false if not online or CheckIfOnline was never executed, true if online.
Reimplemented from TGridCollection.
Definition at line 732 of file TAlienCollection.cxx.
|
virtual |
Get a file's online tag. Returns false if not online or CheckIfOnline was never executed, true if online.
Reimplemented from TGridCollection.
Definition at line 755 of file TAlienCollection.cxx.
retrieves all the SURLS for the LFNS
Reimplemented from TGridCollection.
Definition at line 984 of file TAlienCollection.cxx.
|
virtual |
Return next event file map.
Reimplemented from TGridCollection.
Definition at line 446 of file TAlienCollection.cxx.
|
static |
Static method used to create an Alien event collection, by reading an XML collection from the specified url.
All ROOT URLs are supported. You can restrict the number of importet entries using the maxentries value
Definition at line 111 of file TAlienCollection.cxx.
|
static |
Static method used to create an Alien event collection, by creating collection from a TGridResult GetCollection result (TAlien::GetCollection)
Definition at line 157 of file TAlienCollection.cxx.
|
virtual |
Open the file specified by <filename> from the currently active file group in the collection via its TURL.
Reimplemented from TGridCollection.
Definition at line 144 of file TAlienCollection.cxx.
|
static |
Static method used to create an Alien event collection, by creating collection from a TGridResult Query result (TAlien::Query) nogrouping means that files in the same directory are treated as not belonging to a file group.
Definition at line 194 of file TAlienCollection.cxx.
|
virtual |
return kTRUE if comparator overlaps with this all objects in this collection, which are not defined in the <comparator> collection are removed.
Reimplemented from TGridCollection.
Definition at line 900 of file TAlienCollection.cxx.
Parse event file collection XML file.
<maxentries> stops the parsing after <maxentries>.
Definition at line 287 of file TAlienCollection.cxx.
Reimplemented from TGridCollection.
Definition at line 111 of file TAlienCollection.h.
Print event file collection.
Reimplemented from TGridCollection.
Definition at line 831 of file TAlienCollection.cxx.
Return next event file map.
Reimplemented from TGridCollection.
Definition at line 686 of file TAlienCollection.cxx.
Reset file iterator.
Reimplemented from TGridCollection.
Definition at line 277 of file TAlienCollection.cxx.
|
virtual |
Selects all files with name <filename> in the collection All files can be selected using "*" as filename.
Reimplemented from TGridCollection.
Definition at line 567 of file TAlienCollection.cxx.
|
virtual |
Set the 'default' export URL for an XML collection. A collection can be restored to the export URL using ExportXML("");.
Reimplemented from TGridCollection.
Definition at line 1490 of file TAlienCollection.cxx.
Set's a key value pair in a tagmap. If it is existing, the existing tag is overwritten. If not, it is created.
Reimplemented from TGridCollection.
Definition at line 548 of file TAlienCollection.cxx.
Reimplemented from TGridCollection.
Definition at line 124 of file TAlienCollection.h.
Execute the 'stage' method for all files in this collection (trigger staging).
The <bulk> stage method is currently not working.
Reimplemented from TGridCollection.
Definition at line 1040 of file TAlienCollection.cxx.
|
virtual |
Prints statistics, selection and status about the loaded collection.
Reimplemented from TGridCollection.
Definition at line 455 of file TAlienCollection.cxx.
|
private |
Definition at line 52 of file TAlienCollection.h.
|
private |
event file list iterator
Definition at line 41 of file TAlienCollection.h.
|
private |
pointer to the file stager object
Definition at line 50 of file TAlienCollection.h.
|
private |
Definition at line 39 of file TAlienCollection.h.
|
private |
Definition at line 40 of file TAlienCollection.h.
|
private |
Definition at line 49 of file TAlienCollection.h.
|
private |
Definition at line 47 of file TAlienCollection.h.
|
private |
Definition at line 45 of file TAlienCollection.h.
|
private |
Definition at line 44 of file TAlienCollection.h.
|
private |
Definition at line 51 of file TAlienCollection.h.
|
private |
Definition at line 48 of file TAlienCollection.h.
|
private |
Definition at line 43 of file TAlienCollection.h.
|
private |
current event file map
Definition at line 42 of file TAlienCollection.h.
|
private |
Definition at line 53 of file TAlienCollection.h.
|
private |
Definition at line 38 of file TAlienCollection.h.