library: libTree
#include "TDSet.h"

TDSetElement


class description - source file - inheritance tree (.pdf)

class TDSetElement : public TObject

Inheritance Chart:
TObject
<-
TDSetElement

    public:
TDSetElement() TDSetElement(const char* file, const char* objname = "0", const char* dir = "0", Long64_t first = 0, Long64_t num = -1, const char* msd = "0") TDSetElement(const TDSetElement& elem) virtual ~TDSetElement() virtual void AddFriend(TDSetElement* friendElement, const char* alias) static TClass* Class() virtual Int_t Compare(const TObject* obj) const virtual void DeleteFriends() const char* GetDirectory() const TEventList* GetEventList() const const char* GetFileName() const Long64_t GetFirst() const virtual TDSetElement::FriendsList_t* GetListOfFriends() const const char* GetMsd() const Long64_t GetNum() const const char* GetObjName() const Long64_t GetTDSetOffset() const Bool_t GetValid() const virtual TClass* IsA() const virtual Bool_t IsSortable() const TDSetElement& operator=(const TDSetElement&) virtual void Print(Option_t* options = "") const void SetEventList(TEventList* aList) void SetFirst(Long64_t first) void SetNum(Long64_t num) void SetTDSetOffset(Long64_t offset) virtual void ShowMembers(TMemberInspector& insp, char* parent) virtual void Streamer(TBuffer& b) void StreamerNVirtual(TBuffer& b) void Validate(Bool_t isTree) void Validate(TDSetElement* elem)

Data Members

    private:
TString fFileName physical or logical file name TString fObjName name of objects to be analyzed in this file TString fDirectory directory in file where to look for objects Long64_t fFirst first entry to process Long64_t fNum number of entries to process TString fMsd mass storage domain name Long64_t fTDSetOffset the global offset in the TDSet of the first TEventList* fEventList event list to be used in processing Bool_t fValid whether or not the input values are valid Long64_t fEntries total number of possible entries in file list<pair<TDSetElement*,TString>,allocator<pair<TDSetElement*,TString> > >* fFriends friend elements Bool_t fIsTree true if type is a TTree (or TTree derived)

Class Description

                                                                      
 TDSet                                                                
                                                                      
 This class implements a data set to be used for PROOF processing.    
 The TDSet defines the class of which objects will be processed,      
 the directory in the file where the objects of that type can be      
 found and the list of files to be processed. The files can be        
 specified as logical file names (LFN's) or as physical file names    
 (PFN's). In case of LFN's the resolution to PFN's will be done       
 according to the currently active GRID interface.                    
 Examples:                                                            
   TDSet treeset("TTree", "AOD");                                     
   treeset.Add("lfn:/alien.cern.ch/alice/prod2002/file1");            
   ...                                                                
   treeset.AddFriend(friendset);                                      
                                                                      
 or                                                                   
                                                                      
   TDSet objset("MyEvent", "*", "/events");                           
   objset.Add("root://cms.cern.ch/user/prod2002/hprod_1.root");       
   ...                                                                
   objset.Add(set2003);                                               
                                                                      
 Validity of file names will only be checked at processing time       
 (typically on the PROOF master server), not at creation time.        
                                                                      


TDSetElement(const char *file, const char *objname, const char *dir, Long64_t first, Long64_t num, const char *msd)
 Create a TDSet element.

TDSetElement(const TDSetElement& elem) : TObject()
 copy constructor

~TDSetElement()
 Clean up the element.

const char* GetObjName() const
 Return object name.

const char* GetDirectory() const
 Return directory where to look for object.

void Print(Option_t *opt) const
 Print a TDSetElement. When option="a" print full data.

void Validate(Bool_t isTree)
 Validate by opening the file.

void Validate(TDSetElement* elem)
 Validate by checking against another element.

Int_t Compare(const TObject *obj) const
Compare elements by filename (and the fFirst).

void AddFriend(TDSetElement *friendElement, const char* alias)
 Add friend TDSetElement to this set. The friend element will be copied to this object.

void DeleteFriends()
 Deletes the list of friends and all the friends on the list.



Inline Functions


                        TDSetElement TDSetElement(const TDSetElement& elem)
        TDSetElement::FriendsList_t* GetListOfFriends() const
                         const char* GetFileName() const
                            Long64_t GetFirst() const
                                void SetFirst(Long64_t first)
                            Long64_t GetNum() const
                         const char* GetMsd() const
                                void SetNum(Long64_t num)
                              Bool_t GetValid() const
                            Long64_t GetTDSetOffset() const
                                void SetTDSetOffset(Long64_t offset)
                         TEventList* GetEventList() const
                                void SetEventList(TEventList* aList)
                              Bool_t IsSortable() const
                             TClass* Class()
                             TClass* IsA() const
                                void ShowMembers(TMemberInspector& insp, char* parent)
                                void Streamer(TBuffer& b)
                                void StreamerNVirtual(TBuffer& b)
                       TDSetElement& operator=(const TDSetElement&)


Author: Fons Rademakers 11/01/02
Last update: root/tree:$Name: $:$Id: TDSet.cxx,v 1.25 2005/08/29 10:57:28 brun Exp $
Copyright (C) 1995-2001, Rene Brun and Fons Rademakers. *


ROOT page - Class index - Class Hierarchy - Top of the page

This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to ROOT support, or contact the developers with any questions or problems regarding ROOT.