class TDSetElement: public TNamed


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.


Function Members (Methods)

public:
TDSetElement()
TDSetElement(const TDSetElement& elem)
TDSetElement(const char* file, const char* objname = 0, const char* dir = 0, Long64_t first = 0, Long64_t num = -1, const char* msd = 0)
virtual~TDSetElement()
voidTObject::AbstractMethod(const char* method) const
virtual voidAddFriend(TDSetElement* friendElement, const char* alias)
virtual voidTObject::AppendPad(Option_t* option = "")
virtual voidTObject::Browse(TBrowser* b)
static TClass*Class()
virtual const char*TObject::ClassName() const
virtual voidTNamed::Clear(Option_t* option = "")
virtual TObject*TNamed::Clone(const char* newname = "") const
virtual Int_tCompare(const TObject* obj) const
virtual voidTNamed::Copy(TObject& named) const
virtual voidTObject::Delete(Option_t* option = "")MENU
virtual voidDeleteFriends()
virtual Int_tTObject::DistancetoPrimitive(Int_t px, Int_t py)
virtual voidTObject::Draw(Option_t* option = "")
virtual voidTObject::DrawClass() constMENU
virtual TObject*TObject::DrawClone(Option_t* option = "") constMENU
virtual voidTObject::Dump() constMENU
virtual voidTObject::Error(const char* method, const char* msgfmt) const
virtual voidTObject::Execute(const char* method, const char* params, Int_t* error = 0)
virtual voidTObject::Execute(TMethod* method, TObjArray* params, Int_t* error = 0)
virtual voidTObject::ExecuteEvent(Int_t event, Int_t px, Int_t py)
virtual voidTObject::Fatal(const char* method, const char* msgfmt) const
virtual voidTNamed::FillBuffer(char*& buffer)
virtual TObject*TObject::FindObject(const char* name) const
virtual TObject*TObject::FindObject(const TObject* obj) const
const char*GetDirectory() const
virtual Option_t*TObject::GetDrawOption() const
static Long_tTObject::GetDtorOnly()
Long64_tGetEntries(Bool_t istree = kTRUE, Bool_t openfile = kTRUE)
TObject*GetEntryList() const
TFileInfo*GetFileInfo(const char* type = "TTree")
const char*GetFileName() const
Long64_tGetFirst() const
virtual const char*TObject::GetIconName() const
virtual TList*GetListOfFriends() const
const char*GetMsd() const
virtual const char*TNamed::GetName() const
Long64_tGetNum() const
virtual char*TObject::GetObjectInfo(Int_t px, Int_t py) const
static Bool_tTObject::GetObjectStat()
const char*GetObjName() const
virtual Option_t*TObject::GetOption() const
Long64_tGetTDSetOffset() const
virtual const char*TNamed::GetTitle() const
virtual UInt_tTObject::GetUniqueID() const
Bool_tGetValid() const
virtual Bool_tTObject::HandleTimer(TTimer* timer)
virtual ULong_tTNamed::Hash() const
virtual voidTObject::Info(const char* method, const char* msgfmt) const
virtual Bool_tTObject::InheritsFrom(const char* classname) const
virtual Bool_tTObject::InheritsFrom(const TClass* cl) const
virtual voidTObject::Inspect() constMENU
voidInvalidate()
voidTObject::InvertBit(UInt_t f)
virtual TClass*IsA() const
virtual Bool_tTObject::IsEqual(const TObject* obj) const
virtual Bool_tTObject::IsFolder() const
Bool_tTObject::IsOnHeap() const
virtual Bool_tIsSortable() const
Bool_tTObject::IsZombie() const
Int_tLookup(Bool_t force = kFALSE)
virtual voidTNamed::ls(Option_t* option = "") const
voidTObject::MayNotUse(const char* method) const
virtual Bool_tTObject::Notify()
static voidTObject::operator delete(void* ptr)
static voidTObject::operator delete(void* ptr, void* vp)
static voidTObject::operator delete[](void* ptr)
static voidTObject::operator delete[](void* ptr, void* vp)
void*TObject::operator new(size_t sz)
void*TObject::operator new(size_t sz, void* vp)
void*TObject::operator new[](size_t sz)
void*TObject::operator new[](size_t sz, void* vp)
virtual voidTObject::Paint(Option_t* option = "")
virtual voidTObject::Pop()
virtual voidPrint(Option_t* options = "") const
virtual Int_tTObject::Read(const char* name)
virtual voidTObject::RecursiveRemove(TObject* obj)
voidTObject::ResetBit(UInt_t f)
virtual voidTObject::SaveAs(const char* filename = "", Option_t* option = "") constMENU
virtual voidTObject::SavePrimitive(basic_ostream<char,char_traits<char> >& out, Option_t* option = "")
voidTObject::SetBit(UInt_t f)
voidTObject::SetBit(UInt_t f, Bool_t set)
virtual voidTObject::SetDrawOption(Option_t* option = "")MENU
static voidTObject::SetDtorOnly(void* obj)
voidSetEntries(Long64_t ent)
voidSetEntryList(TObject* aList, Long64_t first = -1, Long64_t num = -1)
voidSetFirst(Long64_t first)
voidSetLookedUp()
virtual voidTNamed::SetName(const char* name)MENU
virtual voidTNamed::SetNameTitle(const char* name, const char* title)
voidSetNum(Long64_t num)
static voidTObject::SetObjectStat(Bool_t stat)
voidSetTDSetOffset(Long64_t offset)
virtual voidTNamed::SetTitle(const char* title = "")MENU
virtual voidTObject::SetUniqueID(UInt_t uid)
voidSetValid()
virtual voidShowMembers(TMemberInspector& insp, char* parent)
virtual Int_tTNamed::Sizeof() const
virtual voidStreamer(TBuffer& b)
voidStreamerNVirtual(TBuffer& b)
virtual voidTObject::SysError(const char* method, const char* msgfmt) const
Bool_tTObject::TestBit(UInt_t f) const
Int_tTObject::TestBits(UInt_t f) const
virtual voidTObject::UseCurrentStyle()
voidValidate(Bool_t isTree)
voidValidate(TDSetElement* elem)
virtual voidTObject::Warning(const char* method, const char* msgfmt) const
virtual Int_tTObject::Write(const char* name = 0, Int_t option = 0, Int_t bufsize = 0)
virtual Int_tTObject::Write(const char* name = 0, Int_t option = 0, Int_t bufsize = 0) const
protected:
virtual voidTObject::DoError(int level, const char* location, const char* fmt, va_list va) const
voidTObject::MakeZombie()
private:
Bool_tHasBeenLookedUp() const
TDSetElement&operator=(const TDSetElement&)

Data Members

public:
enum EStatusBits { kHasBeenLookedUp
kWriteV3
kEmpty
kCorrupted
};
enum TObject::EStatusBits { kCanDelete
kMustCleanup
kObjInCanvas
kIsReferenced
kHasUUID
kCannotPick
kNoContextMenu
kInvalidObject
};
enum TObject::[unnamed] { kIsOnHeap
kNotDeleted
kZombie
kBitMask
kSingleKey
kOverwrite
kWriteDelete
};
protected:
TStringTNamed::fNameobject identifier
TStringTNamed::fTitleobject title
private:
TStringfDirectorydirectory in file where to look for objects
Long64_tfEntriestotal number of possible entries in file
TObject*fEntryListentry (or event) list to be used in processing
Long64_tfFirstfirst entry to process
TList*fFriendsfriend elements
TStringfMsdmass storage domain name
Long64_tfNumnumber of entries to process
Long64_tfTDSetOffsetthe global offset in the TDSet of the first
Bool_tfValidwhether or not the input values are valid

Class Charts

Inheritance Inherited Members Includes Libraries
Class Charts

Function documentation

TDSetElement(const TDSetElement& elem)
 Default constructor
TDSetElement(const char* file, const char* objname = 0, const char* dir = 0, Long64_t first = 0, Long64_t num = -1, const char* msd = 0)
 Create a TDSet element.
TDSetElement(const TDSetElement& elem)
 copy constructor
~TDSetElement()
 Clean up the element.
TFileInfo * GetFileInfo(const char* type = "TTree")
 Return the content of this element in the form of a TFileInfo
const char * GetDirectory()
 Return directory where to look for object.
void Print(Option_t* options = "") 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.
Long64_t GetEntries(Bool_t istree = kTRUE, Bool_t openfile = kTRUE)
 Returns number of entries in tree or objects in file.
 If not yet defined and 'openfile' is TRUE, get the number from the file
 (may considerably slow down the application).
 Returns -1 in case of error.
Int_t Lookup(Bool_t force = kFALSE)
 Resolve end-point URL for this element
 Return 0 on success and -1 otherwise
void SetEntryList(TObject* aList, Long64_t first = -1, Long64_t num = -1)
 Set entry (or event) list for this element
void Streamer(TBuffer& b)
 Stream an object of class TDSetElement.
Bool_t HasBeenLookedUp()
{ return TestBit(kHasBeenLookedUp); }
TDSetElement& operator=(const TDSetElement& )
TList * GetListOfFriends()
{ return fFriends; }
const char * GetFileName()
{ return GetName(); }
Long64_t GetFirst()
{ return fFirst; }
void SetFirst(Long64_t first)
{ fFirst = first; }
Long64_t GetNum()
{ return fNum; }
void SetEntries(Long64_t ent)
{ fEntries = ent; }
const char * GetMsd()
{ return fMsd; }
void SetNum(Long64_t num)
{ fNum = num; }
Bool_t GetValid()
{ return fValid; }
const char * GetObjName()
{ return GetTitle(); }
Long64_t GetTDSetOffset()
{ return fTDSetOffset; }
void SetTDSetOffset(Long64_t offset)
{ fTDSetOffset = offset; }
TObject * GetEntryList()
{ return fEntryList; }
void Invalidate()
{ fValid = kFALSE; }
void SetValid()
{ fValid = kTRUE; }
Bool_t IsSortable()
{ return kTRUE; }
void SetLookedUp()
{ SetBit(kHasBeenLookedUp); }

Author: Fons Rademakers 11/01/02
Last change: root/proof:$Id: TDSet.h 23075 2008-04-09 09:10:25Z ganis $
Last generated: 2008-06-25 08:36
Copyright (C) 1995-2001, Rene Brun and Fons Rademakers. *

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.