Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
TAlienCollection Class Reference

Definition at line 35 of file TAlienCollection.h.

Public Member Functions

 TAlienCollection ()
 
 TAlienCollection (const char *localCollectionFile, UInt_t maxentries)
 Create Alien event collection by reading collection from the specified XML file.
 
 TAlienCollection (TList *eventlist, UInt_t ngroups=0, UInt_t ngroupfiles=0)
 Create Alien event collection using an event list.
 
virtual ~TAlienCollection ()
 Clean up event file collection.
 
void Add (TGridCollection *addcollection)
 adds <addcollection> to this collection - equal elements are skipped
 
void AddFast (TGridCollection *addcollection)
 adds <addcollection> to this collection - NO check for identical elements
 
Bool_t CheckIfOnline (Bool_t bulk=kFALSE)
 Run an online check if files are currently accessible (staged) or offline (to be staged).
 
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>
 
Bool_t DownscaleSelection (UInt_t scaler=2)
 downscales the selection with scaler
 
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.
 
const char * GetCollectionName () const
 
TDSetGetDataset (const char *type, const char *objname="*", const char *dir="/")
 Return a TDSet from a collection.
 
TEntryListGetEntryList (const char *name)
 Get a file's event list. Returns 0 in case of error.
 
const char * GetExportUrl ()
 
TFileCollectionGetFileCollection (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
 
TListGetFileGroupList () const
 
TGridResultGetGridResult (const char *filename="", Bool_t onlyonline=kTRUE, Bool_t publicaccess=kFALSE)
 Return a TGridResult.
 
const char * GetInfoComment () const
 
const char * GetLFN (const char *name="")
 Get a file's LFN. Returns 0 in case of error.
 
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.
 
Long64_t GetSize (const char *name="")
 Get a file's LFN. Returns 0 in case of error.
 
const char * GetSURL (const char *name="")
 Get a file's storage URL (SURL). Returns 0 in case of error.
 
TListGetTagFilterList () const
 
const char * GetTURL (const char *name="")
 Get a file's transport URL (TURL). Returns 0 in case of error.
 
Bool_t InvertSelection ()
 Invert the selection.
 
virtual TClassIsA () const
 
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.
 
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 LookupSUrls (Bool_t verbose=kTRUE)
 retrieves all the SURLS for the LFNS
 
TMapNext ()
 Return next event file map.
 
TFileOpenFile (const char *filename)
 Open the file specified by <filename> from the currently active file group in the collection via its TURL.
 
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.
 
Bool_t Prepare (Bool_t bulk=kFALSE)
 
void Print (Option_t *opt) const
 Print event file collection.
 
Bool_t Remove (TMap *map)
 Return next event file map.
 
void Reset ()
 Reset file iterator.
 
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.
 
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("");.
 
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.
 
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).
 
void Status ()
 Prints statistics, selection and status about the loaded collection.
 
virtual void Streamer (TBuffer &)
 Stream an object of class TObject.
 
void StreamerNVirtual (TBuffer &ClassDef_StreamerNVirtual_b)
 
- Public Member Functions inherited from TGridCollection
 TGridCollection ()
 
virtual ~TGridCollection ()
 
TClassIsA () const override
 
void Streamer (TBuffer &) override
 Stream an object of class TObject.
 
void StreamerNVirtual (TBuffer &ClassDef_StreamerNVirtual_b)
 
- Public Member Functions inherited from TObject
 TObject ()
 TObject constructor.
 
 TObject (const TObject &object)
 TObject copy ctor.
 
virtual ~TObject ()
 TObject destructor.
 
void AbstractMethod (const char *method) const
 Use this method to implement an "abstract" method that you don't want to leave purely abstract.
 
virtual void AppendPad (Option_t *option="")
 Append graphics object to current pad.
 
virtual void Browse (TBrowser *b)
 Browse object. May be overridden for another default action.
 
ULong_t CheckedHash ()
 Check and record whether this class has a consistent Hash/RecursiveRemove setup (*) and then return the regular Hash value for this object.
 
virtual const char * ClassName () const
 Returns name of class to which the object belongs.
 
virtual void Clear (Option_t *="")
 
virtual TObjectClone (const char *newname="") const
 Make a clone of an object using the Streamer facility.
 
virtual Int_t Compare (const TObject *obj) const
 Compare abstract method.
 
virtual void Copy (TObject &object) const
 Copy this to obj.
 
virtual void Delete (Option_t *option="")
 Delete this object.
 
virtual Int_t DistancetoPrimitive (Int_t px, Int_t py)
 Computes distance from point (px,py) to the object.
 
virtual void Draw (Option_t *option="")
 Default Draw method for all objects.
 
virtual void DrawClass () const
 Draw class inheritance tree of the class to which this object belongs.
 
virtual TObjectDrawClone (Option_t *option="") const
 Draw a clone of this object in the current selected pad with: gROOT->SetSelectedPad(c1).
 
virtual void Dump () const
 Dump contents of object on stdout.
 
virtual void Error (const char *method, const char *msgfmt,...) const
 Issue error message.
 
virtual void Execute (const char *method, const char *params, Int_t *error=nullptr)
 Execute method on this object with the given parameter string, e.g.
 
virtual void Execute (TMethod *method, TObjArray *params, Int_t *error=nullptr)
 Execute method on this object with parameters stored in the TObjArray.
 
virtual void ExecuteEvent (Int_t event, Int_t px, Int_t py)
 Execute action corresponding to an event at (px,py).
 
virtual void Fatal (const char *method, const char *msgfmt,...) const
 Issue fatal error message.
 
virtual TObjectFindObject (const char *name) const
 Must be redefined in derived classes.
 
virtual TObjectFindObject (const TObject *obj) const
 Must be redefined in derived classes.
 
virtual Option_tGetDrawOption () const
 Get option used by the graphics system to draw this object.
 
virtual const char * GetIconName () const
 Returns mime type name of object.
 
virtual const char * GetName () const
 Returns name of object.
 
virtual char * GetObjectInfo (Int_t px, Int_t py) const
 Returns string containing info about the object at position (px,py).
 
virtual Option_tGetOption () const
 
virtual const char * GetTitle () const
 Returns title of object.
 
virtual UInt_t GetUniqueID () const
 Return the unique object id.
 
virtual Bool_t HandleTimer (TTimer *timer)
 Execute action in response of a timer timing out.
 
virtual ULong_t Hash () const
 Return hash value for this object.
 
Bool_t HasInconsistentHash () const
 Return true is the type of this object is known to have an inconsistent setup for Hash and RecursiveRemove (i.e.
 
virtual void Info (const char *method, const char *msgfmt,...) const
 Issue info message.
 
virtual Bool_t InheritsFrom (const char *classname) const
 Returns kTRUE if object inherits from class "classname".
 
virtual Bool_t InheritsFrom (const TClass *cl) const
 Returns kTRUE if object inherits from TClass cl.
 
virtual void Inspect () const
 Dump contents of this object in a graphics canvas.
 
void InvertBit (UInt_t f)
 
Bool_t IsDestructed () const
 IsDestructed.
 
virtual Bool_t IsEqual (const TObject *obj) const
 Default equal comparison (objects are equal if they have the same address in memory).
 
virtual Bool_t IsFolder () const
 Returns kTRUE in case object contains browsable objects (like containers or lists of other objects).
 
R__ALWAYS_INLINE Bool_t IsOnHeap () const
 
virtual Bool_t IsSortable () const
 
R__ALWAYS_INLINE Bool_t IsZombie () const
 
virtual void ls (Option_t *option="") const
 The ls function lists the contents of a class on stdout.
 
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).
 
virtual Bool_t Notify ()
 This method must be overridden to handle object notification.
 
void Obsolete (const char *method, const char *asOfVers, const char *removedFromVers) const
 Use this method to declare a method obsolete.
 
void operator delete (void *ptr)
 Operator delete.
 
void operator delete[] (void *ptr)
 Operator delete [].
 
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)
 
TObjectoperator= (const TObject &rhs)
 TObject assignment operator.
 
virtual void Paint (Option_t *option="")
 This method must be overridden if a class wants to paint itself.
 
virtual void Pop ()
 Pop on object drawn in a pad to the top of the display list.
 
virtual Int_t Read (const char *name)
 Read contents of object with specified name from the current directory.
 
virtual void RecursiveRemove (TObject *obj)
 Recursively remove this object from a list.
 
void ResetBit (UInt_t f)
 
virtual void SaveAs (const char *filename="", Option_t *option="") const
 Save this object in the file specified by filename.
 
virtual void SavePrimitive (std::ostream &out, Option_t *option="")
 Save a primitive as a C++ statement(s) on output stream "out".
 
void SetBit (UInt_t f)
 
void SetBit (UInt_t f, Bool_t set)
 Set or unset the user status bits as specified in f.
 
virtual void SetDrawOption (Option_t *option="")
 Set drawing option for object.
 
virtual void SetUniqueID (UInt_t uid)
 Set the unique object id.
 
void StreamerNVirtual (TBuffer &ClassDef_StreamerNVirtual_b)
 
virtual void SysError (const char *method, const char *msgfmt,...) const
 Issue system error message.
 
R__ALWAYS_INLINE 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.
 
virtual void Warning (const char *method, const char *msgfmt,...) const
 Issue warning message.
 
virtual Int_t Write (const char *name=nullptr, Int_t option=0, Int_t bufsize=0)
 Write this object to the current directory.
 
virtual Int_t Write (const char *name=nullptr, Int_t option=0, Int_t bufsize=0) const
 Write this object to the current directory.
 

Static Public Member Functions

static TClassClass ()
 
static const char * Class_Name ()
 
static constexpr Version_t Class_Version ()
 
static const char * DeclFileName ()
 
static TGridCollectionOpen (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.
 
static TAlienCollectionOpenAlienCollection (TGridResult *queryresult, Option_t *option="")
 Static method used to create an Alien event collection, by creating collection from a TGridResult GetCollection result (TAlien::GetCollection)
 
static TGridCollectionOpenQuery (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.
 
- Static Public Member Functions inherited from TGridCollection
static TClassClass ()
 
static const char * Class_Name ()
 
static constexpr Version_t Class_Version ()
 
static const char * DeclFileName ()
 
- Static Public Member Functions inherited from TObject
static TClassClass ()
 
static const char * Class_Name ()
 
static constexpr Version_t Class_Version ()
 
static const char * DeclFileName ()
 
static Longptr_t GetDtorOnly ()
 Return destructor only flag.
 
static Bool_t GetObjectStat ()
 Get status of object stat flag.
 
static void SetDtorOnly (void *obj)
 Set destructor only flag.
 
static void SetObjectStat (Bool_t stat)
 Turn on/off tracking of objects in the TObjectTable.
 

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.
 
virtual void ParseXML (UInt_t maxentries)
 Parse event file collection XML file.
 

Private Attributes

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

Additional Inherited Members

- Public Types inherited from TObject
enum  {
  kIsOnHeap = 0x01000000 , kNotDeleted = 0x02000000 , kZombie = 0x04000000 , kInconsistent = 0x08000000 ,
  kBitMask = 0x00ffffff
}
 
enum  { kSingleKey = (1ULL << ( 0 )) , kOverwrite = (1ULL << ( 1 )) , kWriteDelete = (1ULL << ( 2 )) }
 
enum  EDeprecatedStatusBits { kObjInCanvas = (1ULL << ( 3 )) }
 
enum  EStatusBits {
  kCanDelete = (1ULL << ( 0 )) , kMustCleanup = (1ULL << ( 3 )) , kIsReferenced = (1ULL << ( 4 )) , kHasUUID = (1ULL << ( 5 )) ,
  kCannotPick = (1ULL << ( 6 )) , kNoContextMenu = (1ULL << ( 8 )) , kInvalidObject = (1ULL << ( 13 ))
}
 
- Protected Types inherited from TObject
enum  { kOnlyPrepStep = (1ULL << ( 3 )) }
 
- 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).
 
void MakeZombie ()
 

#include <TAlienCollection.h>

Inheritance diagram for TAlienCollection:
[legend]

Constructor & Destructor Documentation

◆ TAlienCollection() [1/3]

TAlienCollection::TAlienCollection ( )
inline

Definition at line 60 of file TAlienCollection.h.

◆ TAlienCollection() [2/3]

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

Create Alien event collection using an event list.

Definition at line 73 of file TAlienCollection.cxx.

◆ TAlienCollection() [3/3]

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 47 of file TAlienCollection.cxx.

◆ ~TAlienCollection()

TAlienCollection::~TAlienCollection ( )
virtual

Clean up event file collection.

Definition at line 95 of file TAlienCollection.cxx.

Member Function Documentation

◆ Add()

void TAlienCollection::Add ( TGridCollection addcollection)
virtual

adds <addcollection> to this collection - equal elements are skipped

Reimplemented from TGridCollection.

Definition at line 935 of file TAlienCollection.cxx.

◆ AddFast()

void TAlienCollection::AddFast ( TGridCollection addcollection)

adds <addcollection> to this collection - NO check for identical elements

Definition at line 969 of file TAlienCollection.cxx.

◆ CheckIfOnline()

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

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 1115 of file TAlienCollection.cxx.

◆ Class()

static TClass * TAlienCollection::Class ( )
static
Returns
TClass describing this class

◆ Class_Name()

static const char * TAlienCollection::Class_Name ( )
static
Returns
Name of this class

◆ Class_Version()

static constexpr Version_t TAlienCollection::Class_Version ( )
inlinestaticconstexpr
Returns
Version of this class

Definition at line 140 of file TAlienCollection.h.

◆ DeclFileName()

static const char * TAlienCollection::DeclFileName ( )
inlinestatic
Returns
Name of the file containing the class declaration

Definition at line 140 of file TAlienCollection.h.

◆ DeselectFile()

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

Deselects the file <filename> from the loaded collection All files can be deselected using "*" as <filename>

Reimplemented from TGridCollection.

Definition at line 601 of file TAlienCollection.cxx.

◆ DownscaleSelection()

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

downscales the selection with scaler

Reimplemented from TGridCollection.

Definition at line 660 of file TAlienCollection.cxx.

◆ ExportXML() [1/2]

Bool_t TAlienCollection::ExportXML ( const char *  exporturl,
Bool_t  selected,
Bool_t  online,
const char *  name,
const char *  comment 
)
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 1282 of file TAlienCollection.cxx.

◆ ExportXML() [2/2]

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

Internal Export function to write a collection as an XML file. See above.

Definition at line 1317 of file TAlienCollection.cxx.

◆ GetCollectionName()

const char * TAlienCollection::GetCollectionName ( ) const
inlinevirtual

Reimplemented from TGridCollection.

Definition at line 128 of file TAlienCollection.h.

◆ GetDataset()

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

Return a TDSet from a collection.

Filter, Selections and online tags are not taken into account.

Reimplemented from TGridCollection.

Definition at line 849 of file TAlienCollection.cxx.

◆ GetEntryList()

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

Get a file's event list. Returns 0 in case of error.

Reimplemented from TGridCollection.

Definition at line 779 of file TAlienCollection.cxx.

◆ GetExportUrl()

const char * TAlienCollection::GetExportUrl ( )
inlinevirtual

Reimplemented from TGridCollection.

Definition at line 90 of file TAlienCollection.h.

◆ GetFileCollection()

TFileCollection * TAlienCollection::GetFileCollection ( const char *  name = "",
const char *  title = "" 
) const
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 1597 of file TAlienCollection.cxx.

◆ GetFileGroupList()

TList * TAlienCollection::GetFileGroupList ( ) const
inlinevirtual

Reimplemented from TGridCollection.

Definition at line 101 of file TAlienCollection.h.

◆ GetGridResult()

TGridResult * TAlienCollection::GetGridResult ( const char *  filename = "",
Bool_t  onlyonline = kTRUE,
Bool_t  publicaccess = kFALSE 
)
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 873 of file TAlienCollection.cxx.

◆ GetInfoComment()

const char * TAlienCollection::GetInfoComment ( ) const
inlinevirtual

Reimplemented from TGridCollection.

Definition at line 129 of file TAlienCollection.h.

◆ GetLFN()

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

Get a file's LFN. Returns 0 in case of error.

Reimplemented from TGridCollection.

Definition at line 796 of file TAlienCollection.cxx.

◆ GetNofGroupfiles()

UInt_t TAlienCollection::GetNofGroupfiles ( ) const
inlinevirtual

Reimplemented from TGridCollection.

Definition at line 105 of file TAlienCollection.h.

◆ GetNofGroups()

UInt_t TAlienCollection::GetNofGroups ( ) const
inlinevirtual

Reimplemented from TGridCollection.

Definition at line 103 of file TAlienCollection.h.

◆ GetOutputFileName()

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: - you specify f.e. as arguments GetOutputFileName("*.root",kTRUE); —>> this renames all ROOT files corresponding to the collection contents

Definition at line 1520 of file TAlienCollection.cxx.

◆ GetSize()

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

Get a file's LFN. Returns 0 in case of error.

Reimplemented from TGridCollection.

Definition at line 813 of file TAlienCollection.cxx.

◆ GetSURL()

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

Get a file's storage URL (SURL). Returns 0 in case of error.

Reimplemented from TGridCollection.

Definition at line 716 of file TAlienCollection.cxx.

◆ GetTagFilterList()

TList * TAlienCollection::GetTagFilterList ( ) const
inlinevirtual

Reimplemented from TGridCollection.

Definition at line 122 of file TAlienCollection.h.

◆ GetTURL()

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

Get a file's transport URL (TURL). Returns 0 in case of error.

Reimplemented from TGridCollection.

Definition at line 699 of file TAlienCollection.cxx.

◆ InvertSelection()

Bool_t TAlienCollection::InvertSelection ( )
virtual

Invert the selection.

Reimplemented from TGridCollection.

Definition at line 633 of file TAlienCollection.cxx.

◆ IsA()

virtual TClass * TAlienCollection::IsA ( ) const
inlinevirtual
Returns
TClass describing current object

Reimplemented from TObject.

Definition at line 140 of file TAlienCollection.h.

◆ IsOnline()

Bool_t TAlienCollection::IsOnline ( const char *  name = "")
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 733 of file TAlienCollection.cxx.

◆ IsSelected()

Bool_t TAlienCollection::IsSelected ( const char *  name = "")
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 756 of file TAlienCollection.cxx.

◆ LookupSUrls()

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

retrieves all the SURLS for the LFNS

Reimplemented from TGridCollection.

Definition at line 985 of file TAlienCollection.cxx.

◆ Next()

TMap * TAlienCollection::Next ( )
virtual

Return next event file map.

Reimplemented from TGridCollection.

Definition at line 447 of file TAlienCollection.cxx.

◆ Open()

TGridCollection * TAlienCollection::Open ( const char *  collectionurl,
UInt_t  maxentries = 1000000 
)
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 112 of file TAlienCollection.cxx.

◆ OpenAlienCollection()

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

Static method used to create an Alien event collection, by creating collection from a TGridResult GetCollection result (TAlien::GetCollection)

Definition at line 158 of file TAlienCollection.cxx.

◆ OpenFile()

TFile * TAlienCollection::OpenFile ( const char *  filename)
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 145 of file TAlienCollection.cxx.

◆ OpenQuery()

TGridCollection * TAlienCollection::OpenQuery ( TGridResult queryresult,
Bool_t  nogrouping = kFALSE 
)
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 195 of file TAlienCollection.cxx.

◆ OverlapCollection()

Bool_t TAlienCollection::OverlapCollection ( TGridCollection comparator)
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 901 of file TAlienCollection.cxx.

◆ ParseXML()

void TAlienCollection::ParseXML ( UInt_t  maxentries)
privatevirtual

Parse event file collection XML file.

<maxentries> stops the parsing after <maxentries>.

Definition at line 288 of file TAlienCollection.cxx.

◆ Prepare()

Bool_t TAlienCollection::Prepare ( Bool_t  bulk = kFALSE)
inlinevirtual

Reimplemented from TGridCollection.

Definition at line 111 of file TAlienCollection.h.

◆ Print()

void TAlienCollection::Print ( Option_t opt) const
virtual

Print event file collection.

Reimplemented from TGridCollection.

Definition at line 832 of file TAlienCollection.cxx.

◆ Remove()

Bool_t TAlienCollection::Remove ( TMap map)
virtual

Return next event file map.

Reimplemented from TGridCollection.

Definition at line 687 of file TAlienCollection.cxx.

◆ Reset()

void TAlienCollection::Reset ( )
virtual

Reset file iterator.

Reimplemented from TGridCollection.

Definition at line 278 of file TAlienCollection.cxx.

◆ SelectFile()

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

Selects all files with name <filename> in the collection All files can be selected using "*" as filename.

Reimplemented from TGridCollection.

Definition at line 568 of file TAlienCollection.cxx.

◆ SetExportUrl()

Bool_t TAlienCollection::SetExportUrl ( const char *  exporturl = 0)
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 1493 of file TAlienCollection.cxx.

◆ SetTag()

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

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 549 of file TAlienCollection.cxx.

◆ SetTagFilterList()

void TAlienCollection::SetTagFilterList ( TList filterlist)
inlinevirtual

Reimplemented from TGridCollection.

Definition at line 124 of file TAlienCollection.h.

◆ Stage()

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

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 1041 of file TAlienCollection.cxx.

◆ Status()

void TAlienCollection::Status ( )
virtual

Prints statistics, selection and status about the loaded collection.

Reimplemented from TGridCollection.

Definition at line 456 of file TAlienCollection.cxx.

◆ Streamer()

virtual void TAlienCollection::Streamer ( TBuffer R__b)
virtual

Stream an object of class TObject.

Reimplemented from TObject.

◆ StreamerNVirtual()

void TAlienCollection::StreamerNVirtual ( TBuffer ClassDef_StreamerNVirtual_b)
inline

Definition at line 140 of file TAlienCollection.h.

Member Data Documentation

◆ fCollectionName

TString TAlienCollection::fCollectionName
private

Definition at line 52 of file TAlienCollection.h.

◆ fCurrent

TMap* TAlienCollection::fCurrent
private

event file list iterator

Definition at line 41 of file TAlienCollection.h.

◆ fExportUrl

TString TAlienCollection::fExportUrl
private

pointer to the file stager object

Definition at line 50 of file TAlienCollection.h.

◆ fFileGroupList

TList* TAlienCollection::fFileGroupList
private

Definition at line 39 of file TAlienCollection.h.

◆ fFileGroupListIter

TIter* TAlienCollection::fFileGroupListIter
private

Definition at line 40 of file TAlienCollection.h.

◆ fFileStager

TFileStager* TAlienCollection::fFileStager
private

Definition at line 49 of file TAlienCollection.h.

◆ fHasOnline

Bool_t TAlienCollection::fHasOnline
private

Definition at line 47 of file TAlienCollection.h.

◆ fHasSelection

Bool_t TAlienCollection::fHasSelection
private

Definition at line 45 of file TAlienCollection.h.

◆ fHasSUrls

Bool_t TAlienCollection::fHasSUrls
private

Definition at line 44 of file TAlienCollection.h.

◆ fInfoComment

TString TAlienCollection::fInfoComment
private

Definition at line 51 of file TAlienCollection.h.

◆ fLastOutFileName

TString TAlienCollection::fLastOutFileName
private

Definition at line 48 of file TAlienCollection.h.

◆ fNofGroupfiles

UInt_t TAlienCollection::fNofGroupfiles
private

Definition at line 43 of file TAlienCollection.h.

◆ fNofGroups

UInt_t TAlienCollection::fNofGroups
private

current event file map

Definition at line 42 of file TAlienCollection.h.

◆ fTagFilterList

TList* TAlienCollection::fTagFilterList
private

Definition at line 53 of file TAlienCollection.h.

◆ fXmlFile

TString TAlienCollection::fXmlFile
private

Definition at line 38 of file TAlienCollection.h.

  • net/alien/inc/TAlienCollection.h
  • net/alien/src/TAlienCollection.cxx