library: libTree #include "TDSet.h"

# TDSetElement

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

## class TDSetElement : public TObject

| Inheritance Chart:

`TObject`

<-

`TDSetElement`

        public:

                           TDSetElement()
                           TDSetElement(const TDSet* set, const char* file, const char* objname = "0", const char* dir = "0", Long64_t first = 0, Long64_t num = -1)
                           TDSetElement(const TDSetElement&)
                   virtual ~TDSetElement()
                      void AddPfn(const char* pfn, const char* se = "0", Long64_t size = -1)
            static TClass* Class()
               const char* GetDirectory() const
               const char* GetFileName() const
                  Long64_t GetFirst() const
          TDSetElementPfn* GetFirstPfnElement() const
                  Long64_t GetNum() const
                     Int_t GetNumPfnList() const
               const char* GetObjName() const
           virtual TClass* IsA() const
          TDSetElementPfn* Next()
              virtual void Print(Option_t* options) const
                      void Reset()
                      void SetFirst(Long64_t first)
                      void SetNum(Long64_t num)
              virtual void ShowMembers(TMemberInspector& insp, char* parent)
              virtual void Streamer(TBuffer& b)
                      void StreamerNVirtual(TBuffer& b)

### 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
              const TDSet* fSet        set to which element belongs
                    TList* fPfnList    physical location information for Grid files
                    TIter* fIterator   ! iterator on fPfnList
          TDSetElementPfn* fCurrent    ! current element of fPfnList

## 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 TDSet *set, const char *file, const char *objname, const char *dir, Long64_t first, Long64_t num)

     Create a TDSet element.

~TDSetElement()

     Clean up the element.

void AddPfn(const char *pfn, const char *msn, Long64_t size)

     Add associated physical file name to this element.

const char* GetObjName() const

     Return object name.

const char* GetDirectory() const

     Return directory where to look for object.

void Reset()

     Reset PFN list iterator.

TDSetElementPfn* Next()

     Get next PFN element.

void Print(Option_t *opt) const

     Print a TDSetElement. When option="a" print full data.

### Inline Functions

                TDSetElement TDSetElement(const TDSet* set, const char* file, const char* objname = "0", const char* dir = "0", Long64_t first = 0, Long64_t num = -1)
                 const char* GetFileName() const
            TDSetElementPfn* GetFirstPfnElement() const
                    Long64_t GetFirst() const
                        void SetFirst(Long64_t first)
                    Long64_t GetNum() const
                        void SetNum(Long64_t num)
                       Int_t GetNumPfnList() const
                     TClass* Class()
                     TClass* IsA() const
                        void ShowMembers(TMemberInspector& insp, char* parent)
                        void Streamer(TBuffer& b)
                        void StreamerNVirtual(TBuffer& b)
                TDSetElement TDSetElement(const TDSetElement&)

Author: Fons Rademakers 11/01/02
Last update: root/tree:$Name: $:$Id: TDSet.cxx,v 1.12 2004/06/13 16:26:36 rdm Exp $
Copyright (C) 1995-2001, Rene Brun and Fons Rademakers. *